EliteMobSpawnEvent

public class EliteMobSpawnEvent extends Event implements Cancellable

Constructors

Link copied to clipboard
public void EliteMobSpawnEvent(EliteEntity eliteEntity)
Cancelling this event will prevent the Elite Mob from being constructed by removing it and the entity it would've converted

Properties

Link copied to clipboard
public final static HandlerList handlers
Link copied to clipboard
public boolean isCancelled

Functions

Link copied to clipboard
Returns the EliteMobEntity currently being formed
Link copied to clipboard
public LivingEntity getEntity()
Returns the entity being converted to an EliteMobEntity
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
public HandlerList getHandlers()
Returns a list of handlers
Link copied to clipboard
public CreatureSpawnEvent.SpawnReason getReason()
Gets the reason for the Entity getting spawned
Link copied to clipboard
public boolean isCancelled()
Returns if the event is cancelled
Link copied to clipboard
public void setCancelled(boolean cancel)
Cancels the event.

Inherited functions

Link copied to clipboard
public String getEventName()
Link copied to clipboard
public abstract HandlerList getHandlers()
Link copied to clipboard
public final boolean isAsynchronous()
Link copied to clipboard
public abstract boolean isCancelled()
Link copied to clipboard
public abstract void setCancelled(boolean p)