java.lang.Object
org.cyclops.commoncapabilities.api.capability.work.DefaultWorker
All Implemented Interfaces:
IWorker

public class DefaultWorker extends Object implements IWorker
Default implementation of an IWorker
  • Constructor Details

    • DefaultWorker

      public DefaultWorker()
  • 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.