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