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 |
---|---|
FluidStack |
fluid |
World |
world |
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
FluidEvent(FluidStack fluid,
World world,
int x,
int y,
int z) |
Modifier and Type | Method and Description |
---|---|
static void |
fireEvent(FluidEvent event)
A handy shortcut for firing the various fluid events.
|
getListenerList, getResult, hasResult, isCancelable, isCanceled, setCanceled, setResult, setup
public final FluidStack fluid
public final int x
public final int y
public final int z
public final World world
public FluidEvent(FluidStack fluid, World world, int x, int y, int z)
public static final void fireEvent(FluidEvent event)
event
-