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.Result
block
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) |
getBlock
getEventName, isAsynchronous
public 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 Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface Cancellable
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.