T - Subclass of TileEntitypublic interface ITickAction<T extends net.minecraft.tileentity.TileEntity>
TickingTankInventoryTileEntityTickComponent| 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.
|
boolean canTick(T tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
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.void onTick(T tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
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.float getRequiredTicks(T tile, int slot, int tick)
tile - The tile entity that ticks.slot - The slot ID for the ticker.tick - The current tick.