public class EntityAirChangeEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description | 
|---|
EntityAirChangeEvent(@NotNull Entity what,
                    int amount)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getAmount()
Gets the amount of air the entity has left (measured in ticks). 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull 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
                            @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 @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.