Class EntityAddToWorldEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
com.destroystokyo.paper.event.entity.EntityAddToWorldEvent

@NullMarked public class EntityAddToWorldEvent extends EntityEvent
Fired any time an entity is being added to the world for any reason (including a chunk loading).

Not to be confused with CreatureSpawnEvent

  • Constructor Details

  • Method Details

    • getWorld

      public World getWorld()
      Returns:
      The world that the entity is being added to
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()