Class VanillaAbstractFurnaceWorker

java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.work.VanillaAbstractFurnaceWorker
All Implemented Interfaces:
IWorker

public class VanillaAbstractFurnaceWorker extends Object implements IWorker
Worker capability for the vanilla furnace tile entities.
  • Constructor Details

    • VanillaAbstractFurnaceWorker

      public VanillaAbstractFurnaceWorker(net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity furnace)
  • Method Details

    • hasWork

      public boolean hasWork()
      Specified by:
      hasWork in interface IWorker
      Returns:
      If the target has a valid input for things to process. In case of the vanilla furnace, this will return true if there is a valid smeltable in its input slot.
    • canWork

      public boolean canWork()
      Specified by:
      canWork in interface IWorker
      Returns:
      If the target is able to start working in its current state, and if it is not being blocked by some external or internal factor. In case of the vanilla furnace, this will return true if there is enough fuel in its fuel slot.