Class ItemSpawnEvent

All Implemented Interfaces:
Cancellable

public class ItemSpawnEvent extends EntitySpawnEvent
Called when an item is spawned into a world
  • Constructor Details Link icon

    • ItemSpawnEvent Link icon

      @Deprecated(since="1.13.2") public ItemSpawnEvent(@NotNull Item spawnee, Location loc)
      Deprecated.
    • ItemSpawnEvent Link icon

      public ItemSpawnEvent(@NotNull Item spawnee)
  • Method Details Link icon

    • getEntity Link icon

      @NotNull public Item getEntity()
      Description copied from class: EntityEvent
      Returns the Entity involved in this event
      Overrides:
      getEntity in class EntityEvent
      Returns:
      Entity who is involved in this event