public class EntityCombustEvent extends EntityEvent implements Cancellable
If an Entity Combust event is cancelled, the entity will not combust.
Event.Resultentity| コンストラクタと説明 |
|---|
EntityCombustEvent(Entity combustee,
int duration) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
getDuration() |
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setDuration(int duration)
The number of seconds the combustee should be alight for.
|
getEntity, getEntityTypegetEventName, isAsynchronouspublic EntityCombustEvent(Entity combustee, int duration)
public boolean isCancelled()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventpublic int getDuration()
public void setDuration(int duration)
This value will only ever increase the combustion time, not decrease existing combustion times.
duration - the time in seconds to be alight for.public HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.