public class BlockPhysicsEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor and Description | 
|---|
BlockPhysicsEvent(@NotNull Block block,
                 @NotNull BlockData changed)  | 
BlockPhysicsEvent(@NotNull Block block,
                 @NotNull BlockData changed,
                 @NotNull Block sourceBlock)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Material | 
getChangedType()
Gets the type of block that changed, causing this event 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
@NotNull Block | 
getSourceBlock()
Gets the source block that triggered this event. 
 | 
boolean | 
isCancelled()
Gets the cancellation state of this event. 
 | 
void | 
setCancelled(boolean cancel)
Sets the cancellation state of this event. 
 | 
getBlockgetEventName, isAsynchronouspublic BlockPhysicsEvent(@NotNull
                         @NotNull Block block,
                         @NotNull
                         @NotNull BlockData changed)
@NotNull public @NotNull Block getSourceBlock()
@NotNull public @NotNull Material getChangedType()
public 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 HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.