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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTick(BlockEntityColossalBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick) If this action can tick for the given conditions.protected intgetRequiredFluid(BlockEntityColossalBloodChest tile, float usageMultiplier, int tick) floatgetRequiredTicks(BlockEntityColossalBloodChest tile, int slot, int tick) Get the required conditions for the given conditions.voidonTick(BlockEntityColossalBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick) Add one tick.
-
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:ITickActionIf this action can tick for the given conditions.- Specified by:
canTickin interfaceITickAction<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
-
onTick
public void onTick(BlockEntityColossalBloodChest tile, net.minecraft.world.item.ItemStack itemStack, int slot, int tick) Description copied from interface:ITickActionAdd one tick.- Specified by:
onTickin interfaceITickAction<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
Description copied from interface:ITickActionGet the required conditions for the given conditions.- Specified by:
getRequiredTicksin interfaceITickAction<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.
-