Class ItemSpawnEvent

All Implemented Interfaces:
Cancellable

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

    • ItemSpawnEvent

      @Internal @Deprecated(since="1.13.2", forRemoval=true) public ItemSpawnEvent(@NotNull @NotNull Item spawnee, Location loc)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ItemSpawnEvent

      @Internal public ItemSpawnEvent(@NotNull @NotNull Item spawnee)
  • Method Details

    • getEntity

      @NotNull public @NotNull 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