Cancellable
public class BlockExplodeEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor | Description |
---|---|
BlockExplodeEvent(Block what,
java.util.List<Block> blocks,
float yield) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<Block> |
blockList() |
Returns the list of blocks that would have been removed or were removed
from the explosion event.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
float |
getYield() |
Returns the percentage of blocks to drop from this explosion
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
void |
setYield(float yield) |
Sets the percentage of blocks to drop from this explosion
|
getBlock
getEventName, isAsynchronous
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic java.util.List<Block> blockList()
public float getYield()
public void setYield(float yield)
yield
- The new yield percentagepublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.