public static class FluidEvent.FluidFillingEvent extends FluidEvent
IFluidTank.fill(FluidStack, boolean)
their tank implementation. FluidTank
does.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 |
---|
FluidFillingEvent(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 FluidFillingEvent(FluidStack fluid, World world, BlockPos pos, IFluidTank tank, int amount)
public IFluidTank getTank()
public int getAmount()