public class BlockReceiveGameEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor and Description |
---|
BlockReceiveGameEvent(GameEvent event,
Block block,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity()
Get the entity which triggered this event, if present.
|
GameEvent |
getEvent()
Get the underlying event.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
getBlock
getEventName, isAsynchronous
@NotNull public GameEvent getEvent()
@Nullable public Entity getEntity()
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.