public class BlockPhysicsEvent extends BlockEvent implements Cancellable
Event.Result
block
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.
|
getBlock
callEvent, 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()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.