Class InfuseItemTickAction

java.lang.Object
org.cyclops.evilcraft.blockentity.tickaction.bloodinfuser.BloodInfuserTickAction
org.cyclops.evilcraft.blockentity.tickaction.bloodinfuser.InfuseItemTickAction
All Implemented Interfaces:
ITickAction<BlockEntityBloodInfuser>

public class InfuseItemTickAction extends BloodInfuserTickAction
ITickAction that can infuse items with blood.
  • Constructor Details

    • InfuseItemTickAction

      public InfuseItemTickAction()
  • Method Details

    • canTick

      public boolean canTick(BlockEntityBloodInfuser tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick)
      Description copied from interface: ITickAction
      If this action can tick for the given conditions.
      Specified by:
      canTick in interface ITickAction<BlockEntityBloodInfuser>
      Overrides:
      canTick in class BloodInfuserTickAction
      Parameters:
      tile - The tile entity that ticks.
      itemStack - The ItemStack that is in the slot for which this ticker runs.
      slot - The slot ID for the ticker.
      tick - The current tick.
      Returns:
      If the action can tick for the given parameters.
    • onTick

      public void onTick(BlockEntityBloodInfuser tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick)
      Description copied from interface: ITickAction
      Add one tick.
      Parameters:
      tile - The tile entity that ticks.
      itemStack - The ItemStack that is in the slot for which this ticker runs.
      slot - The slot ID for the ticker.
      tick - The current tick.
    • getRequiredFluidAmount

      protected int getRequiredFluidAmount(BlockEntityBloodInfuser tile, Optional<RecipeBloodInfuser> recipe)
    • getUnmodifiedRequiredTicks

      public int getUnmodifiedRequiredTicks(BlockEntityBloodInfuser tile, int slot)
      Description copied from class: BloodInfuserTickAction
      Get the unmodified required conditions for the given conditions.
      Specified by:
      getUnmodifiedRequiredTicks in class BloodInfuserTickAction
      Parameters:
      tile - The tile entity that ticks.
      slot - The slot ID for the ticker.
      Returns:
      Get the required ticks for the given slot for the given tile.
    • willProduceItem

      public net.minecraft.world.item.ItemStack willProduceItem(BlockEntityBloodInfuser tile)
      Description copied from class: BloodInfuserTickAction
      Get the item of the item that will be produced after infusion.
      Specified by:
      willProduceItem in class BloodInfuserTickAction
      Parameters:
      tile - The tile that performs the infusion.
      Returns:
      The item.