public class EnderDragonChangePhaseEvent extends EntityEvent implements Cancellable
Event.Resultentity| コンストラクタと説明 |
|---|
EnderDragonChangePhaseEvent(EnderDragon enderDragon,
EnderDragon.Phase currentPhase,
EnderDragon.Phase newPhase) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
EnderDragon.Phase |
getCurrentPhase()
Gets the current phase that the dragon is in.
|
EnderDragon |
getEntity()
Returns the Entity involved in this event
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
EnderDragon.Phase |
getNewPhase()
Gets the new phase that the dragon will switch to.
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setNewPhase(EnderDragon.Phase newPhase)
Sets the new phase for the ender dragon.
|
getEntityTypegetEventName, isAsynchronouspublic EnderDragonChangePhaseEvent(EnderDragon enderDragon, EnderDragon.Phase currentPhase, EnderDragon.Phase newPhase)
public EnderDragon getEntity()
EntityEventgetEntity クラス内 EntityEventpublic EnderDragon.Phase getCurrentPhase()
public EnderDragon.Phase getNewPhase()
public void setNewPhase(EnderDragon.Phase newPhase)
newPhase - the new dragon phasepublic boolean isCancelled()
CancellableisCancelled インタフェース内 Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled インタフェース内 Cancellablecancel - true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers クラス内 Eventpublic static HandlerList getHandlerList()
Copyright © 2016. All rights reserved.