Class BulkRepairItemTickAction

java.lang.Object
org.cyclops.evilcraft.blockentity.tickaction.bloodchest.BulkRepairItemTickAction
All Implemented Interfaces:
ITickAction<BlockEntityColossalBloodChest>

public class BulkRepairItemTickAction extends Object implements ITickAction<BlockEntityColossalBloodChest>
ITickAction that can repair items using blood.
  • Constructor Details

    • BulkRepairItemTickAction

      public BulkRepairItemTickAction()
  • Method Details

    • canTick

      public boolean canTick(BlockEntityColossalBloodChest 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<BlockEntityColossalBloodChest>
      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.
    • getRequiredFluid

      protected int getRequiredFluid(BlockEntityColossalBloodChest tile, float usageMultiplier, int tick)
    • onTick

      public void onTick(BlockEntityColossalBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick)
      Description copied from interface: ITickAction
      Add one tick.
      Specified by:
      onTick in interface ITickAction<BlockEntityColossalBloodChest>
      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.
    • getRequiredTicks

      public float getRequiredTicks(BlockEntityColossalBloodChest tile, int slot, int tick)
      Description copied from interface: ITickAction
      Get the required conditions for the given conditions.
      Specified by:
      getRequiredTicks in interface ITickAction<BlockEntityColossalBloodChest>
      Parameters:
      tile - The tile entity that ticks.
      slot - The slot ID for the ticker.
      tick - The current tick.
      Returns:
      Get the required ticks for the given slot for the given tile.