public class BlockExplodeEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor and Description | 
|---|
BlockExplodeEvent(@NotNull Block what,
                 @NotNull List<Block> blocks,
                 float yield)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull List<Block> | 
blockList()
Returns the list of blocks that would have been removed or were removed
 from the explosion event. 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull 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 
 | 
getBlockgetEventName, isAsynchronouspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public @NotNull List<Block> blockList()
public float getYield()
public void setYield(float yield)
yield - The new yield percentage@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.