public class FluidEvent extends Event
Modifier and Type | Class and Description |
---|---|
static class |
FluidEvent.FluidDrainingEvent
Mods should fire this event when a fluid is
IFluidTank.drain(int, boolean) from their
tank. |
static class |
FluidEvent.FluidFillingEvent
Mods should fire this event when a fluid is
IFluidTank.fill(FluidStack, boolean)
their tank implementation. |
static class |
FluidEvent.FluidMotionEvent
Mods should fire this event when they move fluids around.
|
static class |
FluidEvent.FluidSpilledEvent
Mods should fire this event when a fluid "spills", for example, if a block containing fluid
is broken.
|
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private FluidStack |
fluid |
private BlockPos |
pos |
private World |
world |
Constructor and Description |
---|
FluidEvent(FluidStack fluid,
World world,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
static void |
fireEvent(FluidEvent event)
A handy shortcut for firing the various fluid events.
|
FluidStack |
getFluid() |
BlockPos |
getPos() |
World |
getWorld() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final FluidStack fluid
private final World world
private final BlockPos pos
public FluidEvent(FluidStack fluid, World world, BlockPos pos)
public FluidStack getFluid()
public World getWorld()
public BlockPos getPos()
public static final void fireEvent(FluidEvent event)
event
-