public class RepairItemTickAction extends java.lang.Object implements ITickAction<TileBloodChest>
ITickAction that can repair items using blood.| Constructor and Description |
|---|
RepairItemTickAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTick(TileBloodChest tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
If this action can tick for the given conditions.
|
float |
getRequiredTicks(TileBloodChest tile,
int slot,
int tick)
Get the required conditions for the given conditions.
|
void |
onTick(TileBloodChest tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
Add one tick.
|
public boolean canTick(TileBloodChest tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActioncanTick in interface ITickAction<TileBloodChest>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.public void onTick(TileBloodChest tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActiononTick in interface ITickAction<TileBloodChest>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.public float getRequiredTicks(TileBloodChest tile, int slot, int tick)
ITickActiongetRequiredTicks in interface ITickAction<TileBloodChest>tile - The tile entity that ticks.slot - The slot ID for the ticker.tick - The current tick.