Package org.bukkit.event.entity
Class ItemSpawnEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.entity.EntityEvent
-
- org.bukkit.event.entity.EntitySpawnEvent
-
- org.bukkit.event.entity.ItemSpawnEvent
-
- All Implemented Interfaces:
Cancellable
public class ItemSpawnEvent extends EntitySpawnEvent
Called when an item is spawned into a world
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Field Summary
-
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
-
Constructor Summary
Constructors Constructor Description ItemSpawnEvent(Item spawnee)
ItemSpawnEvent(Item spawnee, Location loc)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Item
getEntity()
Returns the Entity involved in this event-
Methods inherited from class org.bukkit.event.entity.EntitySpawnEvent
getHandlerList, getHandlers, getLocation, isCancelled, setCancelled
-
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntityType
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
ItemSpawnEvent
@Deprecated public ItemSpawnEvent(@NotNull Item spawnee, Location loc)
Deprecated.
-
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 classEntityEvent
- Returns:
- Entity who is involved in this event
-
-