public static class FluidEvent.FluidDrainingEvent extends FluidEvent
IFluidTank.drain(int, boolean)
from their
tank.FluidEvent.FluidDrainingEvent, FluidEvent.FluidFillingEvent, FluidEvent.FluidMotionEvent, FluidEvent.FluidSpilledEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private int |
amount |
private IFluidTank |
tank |
Constructor and Description |
---|
FluidDrainingEvent(FluidStack fluid,
World world,
BlockPos pos,
IFluidTank tank,
int amount) |
Modifier and Type | Method and Description |
---|---|
int |
getAmount() |
IFluidTank |
getTank() |
fireEvent, getFluid, getPos, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final IFluidTank tank
private final int amount
public FluidDrainingEvent(FluidStack fluid, World world, BlockPos pos, IFluidTank tank, int amount)
public IFluidTank getTank()
public int getAmount()