Class EmptyFluidContainerInTankTickAction<T extends BlockEntityTickingTankInventory<T>>
java.lang.Object
org.cyclops.evilcraft.blockentity.tickaction.EmptyInTankTickAction<T>
org.cyclops.evilcraft.blockentity.tickaction.EmptyFluidContainerInTankTickAction<T>
- Type Parameters:
T-BlockEntityTickingTankInventoryto drain to.
- All Implemented Interfaces:
ITickAction<T>
public class EmptyFluidContainerInTankTickAction<T extends BlockEntityTickingTankInventory<T>>
extends EmptyInTankTickAction<T>
ITickAction for emptying fluid containers in a tank.-
Field Summary
Fields inherited from class org.cyclops.evilcraft.blockentity.tickaction.EmptyInTankTickAction
MB_PER_TICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf this action can tick for the given conditions.static intgetRequiredTicks(BlockEntityTankInventory tile, net.minecraft.world.item.ItemStack itemStack) Get the required ticks for a given item.floatgetRequiredTicks(T tile, int slot, int tick) Get the required conditions for the given conditions.voidAdd one tick.
-
Constructor Details
-
EmptyFluidContainerInTankTickAction
public EmptyFluidContainerInTankTickAction()
-
-
Method Details
-
onTick
Description copied from interface:ITickActionAdd one tick.- Parameters:
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.
-
getRequiredTicks
Description copied from interface:ITickActionGet the required conditions for the given conditions.- Parameters:
tile- The tile entity that ticks.slot- The slot ID for the ticker.tick- The current tick.- Returns:
- Get the required ticks for the given slot for the given tile.
-
getRequiredTicks
public static int getRequiredTicks(BlockEntityTankInventory tile, net.minecraft.world.item.ItemStack itemStack) Get the required ticks for a given item.- Parameters:
tile- TheBlockEntityto drain to.itemStack- The item to get the required ticks for.- Returns:
- The required ticks.
-
canTick
Description copied from interface:ITickActionIf this action can tick for the given conditions.- Specified by:
canTickin interfaceITickAction<T extends BlockEntityTickingTankInventory<T>>- Overrides:
canTickin classEmptyInTankTickAction<T extends BlockEntityTickingTankInventory<T>>- Parameters:
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.- Returns:
- If the action can tick for the given parameters.
-