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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Returns theArenathat is involved in this event.Returns all the DropTypes a spawner should drop.static HandlerListReturns the spawner that's about to drop something.booleanvoidsetCancelled(boolean cancel) voidsetDroppingMaterials(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:ArenaEventReturns theArenathat is involved in this event.- Specified by:
getArenain interfaceArenaEvent- Returns:
- The arena that is involved
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-