Cancellablepublic class EntityAirChangeEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor | Description |
|---|---|
EntityAirChangeEvent(Entity what,
int amount) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getAmount() |
Gets the amount of air the entity has left (measured in ticks).
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
void |
setAmount(int amount) |
Sets the amount of air remaining for the entity (measured in ticks.
|
void |
setCancelled(boolean cancelled) |
Sets the cancellation state of this event.
|
getEntity, getEntityTypegetEventName, isAsynchronouspublic EntityAirChangeEvent(@NotNull
Entity what,
int amount)
public int getAmount()
public void setAmount(int amount)
amount - amount of air remainingpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.