Class SpawnerDropEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.SpawnerDropEvent
- All Implemented Interfaces:
ArenaEvent
,Cancellable
Gets called whenever a spawner drops something.
This event is getting called very frequently, so make sure that anything that you're doing isn't causing a huge CPU usage.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Returns theArena
that is involved in this event.Returns all the DropTypes a spawner should drop.static HandlerList
Returns the spawner that's about to drop something.boolean
void
setCancelled
(boolean cancel) void
setDroppingMaterials
(ItemStack[] droppingMaterials) Change the materials that the spawner should dropMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SpawnerDropEvent
-
-
Method Details
-
getSpawner
Returns the spawner that's about to drop something.- Returns:
- The spawner involved in this event
-
getDroppingMaterials
Returns all the DropTypes a spawner should drop.- Returns:
- An array of all the ItemStacks the spawner will drop
-
setDroppingMaterials
Change the materials that the spawner should drop- Parameters:
droppingMaterials
- The materials the spawner will drop
-
getArena
Description copied from interface:ArenaEvent
Returns theArena
that is involved in this event.- Specified by:
getArena
in interfaceArenaEvent
- Returns:
- The arena that is involved
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-