Class ItemSpawnEvent

  • All Implemented Interfaces:
    Cancellable

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

      • ItemSpawnEvent

        public ItemSpawnEvent​(@NotNull
                              Item spawnee)
    • Method Detail

      • 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