Cancellablepublic class BellRingEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor | Description |
|---|---|
BellRingEvent(Block block,
Entity entity) |
| Modifier and Type | Method | Description |
|---|---|---|
Entity |
getEntity() |
Gets the entity that rang the bell.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancelled) |
Sets the cancellation state of this event.
|
getBlockcallEvent, getEventName, isAsynchronouspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this event@Nullable public Entity getEntity()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.