Class PlayerGeneratorCollectEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerGeneratorCollectEvent
public class PlayerGeneratorCollectEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerGeneratorCollectEvent
(org.bukkit.entity.Player player, org.bukkit.entity.Item item, IArena arena) Triggered when players collect from generators. -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Item
getItem()
Get the item entity involvedorg.bukkit.inventory.ItemStack
Get the itemStack involvedorg.bukkit.entity.Player
Get the playerboolean
Cancel this eventvoid
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerGeneratorCollectEvent
public PlayerGeneratorCollectEvent(org.bukkit.entity.Player player, org.bukkit.entity.Item item, IArena arena) Triggered when players collect from generators. This is not hired when player will receive items in inv from gen-split feature. This feature can be disabled in bw config.
-
-
Method Details
-
getArena
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player -
getItem
public org.bukkit.entity.Item getItem()Get the item entity involved -
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()Get the itemStack involved -
isCancelled
public boolean isCancelled()Cancel this event -
setCancelled
public void setCancelled(boolean cancelled) -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-