public class LiquidEvent extends Event
| Modifier and Type | Class and Description |
|---|---|
static class |
LiquidEvent.LiquidDrainingEvent
Mods should fire this event when a liquid is
ILiquidTank.drain(int, boolean) from their tank. |
static class |
LiquidEvent.LiquidFillingEvent
Mods should fire this event when a liquid is
ILiquidTank.fill(LiquidStack, boolean) their tank implementation. |
static class |
LiquidEvent.LiquidMotionEvent
Mods should fire this event when they move liquids around (pipe networks etc)
|
static class |
LiquidEvent.LiquidSpilledEvent
Mods should fire this event when a liquid "spills", for example, if a block containing liquid is broken.
|
Event.HasResult, Event.Result| Modifier and Type | Field and Description |
|---|---|
LiquidStack |
liquid |
World |
world |
int |
x |
int |
y |
int |
z |
| Constructor and Description |
|---|
LiquidEvent(LiquidStack liquid,
World world,
int x,
int y,
int z) |
| Modifier and Type | Method and Description |
|---|---|
static void |
fireEvent(LiquidEvent event)
A handy shortcut for firing the various liquid events
|
getListenerList, getResult, hasResult, isCancelable, isCanceled, setCanceled, setResultpublic final LiquidStack liquid
public final int x
public final int y
public final int z
public LiquidEvent(LiquidStack liquid, World world, int x, int y, int z)
public static final void fireEvent(LiquidEvent event)
event -