Packages com.phoenixplugins.phoenixcrates.api crate events

Class CrateRewardPlayerEvent


public class CrateRewardPlayerEvent extends org.bukkit.event.Event
Represents an event triggered when a player receives a reward from opening a crate. This event contains information about the crate, the reward, and the player receiving the reward.
  • 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 from which the reward was obtained.
    protected final org.bukkit.entity.Player
    The player who received the reward.
    protected BaseReward
    The reward given to thNe player.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrateRewardPlayerEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player)
    Constructor for the CrateRewardPlayerEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Retrieves the handler list for this event.
    org.bukkit.event.HandlerList
    Gets the list of handlers for this event.

    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 from which the reward was obtained.

      Represents the specific crate that generated this reward.

    • reward

      protected BaseReward reward
      The reward given to thNe player.

      Represents the reward instance that the player received from the crate.

    • player

      protected final org.bukkit.entity.Player player
      The player who received the reward.

      Represents the recipient of the crate reward.

  • Constructor Details

    • CrateRewardPlayerEvent

      public CrateRewardPlayerEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player)
      Constructor for the CrateRewardPlayerEvent. Initializes the event with the crate, reward, and player involved.
      Parameters:
      crate - the crate instance the player opened
      reward - the reward the player received
      player - the player who received the reward
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Gets the list of handlers for this event. This is used by the Bukkit event system to manage event listeners.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the list of event handlers
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Retrieves the handler list for this event. This is a static method to allow external access to the handler list.
      Returns:
      the HandlerList for this event
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