T - TickingTankInventoryTileEntity to drain to.public class EmptyFluidContainerInTankTickAction<T extends TickingTankInventoryTileEntity<T>> extends EmptyInTankTickAction<T>
ITickAction for emptying fluid containers in a tank.MB_PER_TICK| Constructor and Description |
|---|
EmptyFluidContainerInTankTickAction() |
| 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.
|
static int |
getRequiredTicks(org.cyclops.cyclopscore.tileentity.TankInventoryTileEntity tile,
net.minecraft.item.ItemStack itemStack)
Get the required ticks for a given item.
|
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 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.public static int getRequiredTicks(org.cyclops.cyclopscore.tileentity.TankInventoryTileEntity tile,
net.minecraft.item.ItemStack itemStack)
tile - The TileEntity to drain to.itemStack - The item to get the required ticks for.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.