public class EntityAirChangeEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description |
|---|
EntityAirChangeEvent(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 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(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 eventpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.