Class VanillaBrewingStandWorker

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

public class VanillaBrewingStandWorker extends Object implements IWorker
Worker capability for the vanilla brewing stand tile entity.
  • Constructor Details

    • VanillaBrewingStandWorker

      public VanillaBrewingStandWorker(net.minecraft.world.level.block.entity.BrewingStandBlockEntity brewingStand)
  • 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.