T - Extension of TickingTankInventoryTileEntity that has a tank.public class EmptyItemBucketInTankTickAction<T extends TickingTankInventoryTileEntity<T>> extends EmptyInTankTickAction<T>
ITickAction that can empty buckets in tanks.MB_PER_TICK| Constructor and Description |
|---|
EmptyItemBucketInTankTickAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTick(T tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
If this action can tick for the given conditions.
|
float |
getRequiredTicks(T tile,
int slot,
int tick)
Get the required conditions for the given conditions.
|
void |
onTick(T tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
Add one tick.
|
public void onTick(T tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActiontile - 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 boolean canTick(T tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActioncanTick in interface ITickAction<T extends TickingTankInventoryTileEntity<T>>canTick in class EmptyInTankTickAction<T extends TickingTankInventoryTileEntity<T>>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(T tile, int slot, int tick)
ITickActiontile - The tile entity that ticks.slot - The slot ID for the ticker.tick - The current tick.