Cancellablepublic class BatToggleSleepEvent extends EntityEvent implements Cancellable
If a Bat Toggle Sleep event is cancelled, the Bat will not toggle its sleep state.
Event.Resultentity| Constructor | Description | 
|---|---|
| BatToggleSleepEvent(Bat what,
                   boolean awake) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| boolean | isAwake() | Get whether or not the bat is attempting to awaken. | 
| boolean | isCancelled() | Gets the cancellation state of this event. | 
| void | setCancelled(boolean cancel) | Sets the cancellation state of this event. | 
getEntity, getEntityTypegetEventName, isAsynchronouspublic BatToggleSleepEvent(@NotNull
                           Bat what,
                           boolean awake)
public boolean isAwake()
public void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this eventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellable@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.