Class PlayerPickupDropEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerPickupDropEvent
- All Implemented Interfaces:
- ArenaEvent,- Cancellable
Gets called whenever a player picks up a spawner item.
 
Note that this even gets called when an item is being picked up that hasn't been dropped by a spawner, but instead by e.g. a player.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerPickupDropEvent(Player who, Arena arena, DropType dropType, Item item, boolean fromSpawner) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the potentialDropTypeof the spawner that dropped this item.static HandlerListgetItem()Returns the item that the player is trying to pick up.booleanGet whether it has never picked up before or whether a player just dropped it and picked it up again.Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEventgetArenaMethods inherited from interface org.bukkit.event.CancellableisCancelled, setCancelled
- 
Constructor Details- 
PlayerPickupDropEvent
 
- 
- 
Method Details- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getDropTypeReturns the potentialDropTypeof the spawner that dropped this item.- Returns:
- The drop type of the item
 
- 
getItemReturns the item that the player is trying to pick up.- Returns:
- The item that is being picked up
 
- 
isFromSpawnerpublic boolean isFromSpawner()Get whether it has never picked up before or whether a player just dropped it and picked it up again.- Returns:
- trueif it has been dropped by a spawner (and nobody picked it up before),- falseif it has been dropped by something else.
 
- 
getHandlerList
 
-