Packages com.phoenixplugins.phoenixcrates.api crate events

Class CrateRewardWinItemsEvent


public class CrateRewardWinItemsEvent extends org.bukkit.event.Event
Represents an event triggered right before reward items are given to a player. This allows listeners to mutate or replace the final item list per player.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final CrateInstance
    The crate instance associated with this reward win.
    protected final org.bukkit.entity.Player
    The player who won the reward.
    protected final BaseReward
    The reward that was won.
    protected List<org.bukkit.inventory.ItemStack>
    The list of items that will be given to the player.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrateRewardWinItemsEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player, List<org.bukkit.inventory.ItemStack> winItems)
    Constructs a new CrateRewardWinItemsEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Returns the static handler list for this event type.
    org.bukkit.event.HandlerList
     

    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
  • Field Details

    • crate

      protected final CrateInstance crate
      The crate instance associated with this reward win.
    • reward

      protected final BaseReward reward
      The reward that was won.
    • player

      protected final org.bukkit.entity.Player player
      The player who won the reward.
    • winItems

      protected List<org.bukkit.inventory.ItemStack> winItems
      The list of items that will be given to the player.
  • Constructor Details

    • CrateRewardWinItemsEvent

      public CrateRewardWinItemsEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player, List<org.bukkit.inventory.ItemStack> winItems)
      Constructs a new CrateRewardWinItemsEvent.
      Parameters:
      crate - the crate instance involved in this event
      reward - the reward that was won
      player - the player receiving the items
      winItems - the items to be given to the player
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns the static handler list for this event type.
      Returns:
      the handler list
Last updated 10 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping