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

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

    • VanillaCampfireWorker

      public VanillaCampfireWorker(net.minecraft.world.level.block.entity.CampfireBlockEntity campfire)
  • 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.