Class RepairItemTickAction
java.lang.Object
org.cyclops.evilcraft.blockentity.tickaction.bloodchest.RepairItemTickAction
- All Implemented Interfaces:
ITickAction<BlockEntityBloodChest>
ITickAction that can repair items using blood.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTick(BlockEntityBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick) If this action can tick for the given conditions.floatgetRequiredTicks(BlockEntityBloodChest tile, int slot, int tick) Get the required conditions for the given conditions.voidonTick(BlockEntityBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick) Add one tick.
-
Constructor Details
-
RepairItemTickAction
public RepairItemTickAction()
-
-
Method Details
-
canTick
public boolean canTick(BlockEntityBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick) Description copied from interface:ITickActionIf this action can tick for the given conditions.- Specified by:
canTickin interfaceITickAction<BlockEntityBloodChest>- 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(BlockEntityBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick) Description copied from interface:ITickActionAdd one tick.- Specified by:
onTickin interfaceITickAction<BlockEntityBloodChest>- 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
Description copied from interface:ITickActionGet the required conditions for the given conditions.- Specified by:
getRequiredTicksin interfaceITickAction<BlockEntityBloodChest>- 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.
-