NPCEntitySpawnEvent

public class NPCEntitySpawnEvent extends Event implements Cancellable

Constructors

Link copied to clipboard
public void NPCEntitySpawnEvent(LivingEntity livingEntity, NPCEntity npcEntity)
Cancelling this event will prevent the NPC 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
Link copied to clipboard
public final LivingEntity livingEntity
Link copied to clipboard
public final NPCEntity npcEntity

Functions

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 LivingEntity getLivingEntity()
Returns the entity being converted to an EliteMobEntity
Link copied to clipboard
Returns the EliteMobEntity currently being formed
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)