Class ItemSpawnEvent

All Implemented Interfaces:
Cancellable

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

    • ItemSpawnEvent

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

      public ItemSpawnEvent(@NotNull Item spawnee)
  • Method Details

    • getEntity

      @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