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

    Constructors
    Constructor
    Description
    PlayerGeneratorCollectEvent(org.bukkit.entity.Player player, org.bukkit.entity.Item item, IArena arena)
    Triggered when players collect from generators.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Item
    Get the item entity involved
    org.bukkit.inventory.ItemStack
    Get the itemStack involved
    org.bukkit.entity.Player
    Get the player
    boolean
    Cancel this event
    void
    setCancelled(boolean cancelled)
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public IArena 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 class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()