public class SweepAwayEvent extends BlockEvent implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
SweepAwayEvent.FluidType
The types of fluids altered by WaterProof.
|
Event.Resultblock| Constructor and Description |
|---|
SweepAwayEvent(Block block,
SweepAwayEvent.FluidType fluid)
Instantiate a new SweepAwayEvent.
|
| Modifier and Type | Method and Description |
|---|---|
SweepAwayEvent.FluidType |
getFluidType()
Get the fluid type which broke the block.
|
static HandlerList |
getHandlerList()
Used by Bukkit.
|
HandlerList |
getHandlers() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getBlockgetEventName, isAsynchronouspublic SweepAwayEvent(Block block, SweepAwayEvent.FluidType fluid)
block - The affected Block.fluid - The type of fluid that broke the block.public SweepAwayEvent.FluidType getFluidType()
public boolean isCancelled()
isCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
setCancelled in interface Cancellablepublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.