public class EnderDragonChangePhaseEvent extends EntityEvent implements Cancellable
Event.Resultentity| Constructor and Description | 
|---|
EnderDragonChangePhaseEvent(@NotNull EnderDragon enderDragon,
                           EnderDragon.Phase currentPhase,
                           EnderDragon.Phase newPhase)  | 
| Modifier and Type | Method and Description | 
|---|---|
EnderDragon.Phase | 
getCurrentPhase()
Gets the current phase that the dragon is in. 
 | 
@NotNull EnderDragon | 
getEntity()
Returns the Entity involved in this event 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull 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(@NotNull
                                   @NotNull EnderDragon enderDragon,
                                   @Nullable
                                   EnderDragon.Phase currentPhase,
                                   @NotNull
                                   EnderDragon.Phase newPhase)
@NotNull public @NotNull EnderDragon getEntity()
EntityEventgetEntity in class EntityEvent@Nullable public EnderDragon.Phase getCurrentPhase()
@NotNull public EnderDragon.Phase getNewPhase()
public void setNewPhase(@NotNull
                        EnderDragon.Phase newPhase)
newPhase - the new dragon phasepublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - 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.