Class ItemSpawnEvent

All Implemented Interfaces:
Cancellable

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

    • ItemSpawnEvent

      @Deprecated 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