public class BlockPhysicsEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor and Description |
|---|
BlockPhysicsEvent(Block block,
int changed)
Deprecated.
Magic value
|
BlockPhysicsEvent(Block block,
int changed,
int sourceX,
int sourceY,
int sourceZ)
Deprecated.
Magic value
|
| Modifier and Type | Method and Description |
|---|---|
Material |
getChangedType()
Gets the type of block that changed, causing this event
|
int |
getChangedTypeId()
Deprecated.
Magic value
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Block |
getSourceBlock()
Gets the source block, causing this event
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getBlockcallEvent, getEventName, isAsynchronous@Deprecated public BlockPhysicsEvent(Block block, int changed, int sourceX, int sourceY, int sourceZ)
block - the block involved in this eventchanged - the changed block's type idsourceX - the x of the source blocksourceY - the y of the source blocksourceZ - the z of the source block@Deprecated public BlockPhysicsEvent(Block block, int changed)
block - the block involved in this eventchanged - the changed block's type idpublic Block getSourceBlock()
@Deprecated public int getChangedTypeId()
public Material getChangedType()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.