Class FluidFlowEvent
java.lang.Object
com.welcome234.pluginsystem.events.FluidFlowEvent
Called when a water or lava flows
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the dimension of the fluid flowgetFluid()Gets the block type of the fluidintgetX()Gets the X coordinate where the fluid has flowedintgetY()Gets the Y coordinate where the fluid has flowedbooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
FluidFlowEvent
-
-
Method Details
-
getX
public int getX()Gets the X coordinate where the fluid has flowed- Returns:
- X-coordinate
-
getY
public int getY()Gets the Y coordinate where the fluid has flowed- Returns:
- Y-coordinate
-
getDimension
public boolean getDimension()Gets the dimension of the fluid flow- Returns:
- Dimension (false = Overworld, true = End)
-
getFluid
Gets the block type of the fluid- Returns:
- Block type
-
isCancelled
public boolean isCancelled()Gets whether this event is cancelled- Returns:
- Whether cancelled
-
setCancelled
public void setCancelled(boolean cancelled)Sets the cancellation status of this event- Parameters:
cancelled- Whether cancelled
-