Packages com.phoenixplugins.phoenixcrates.api crate events

Class CrateRerollEvent


public class CrateRerollEvent extends org.bukkit.event.Event
Event triggered when a crate is rerolled for a player.

Contains information about the crate being rerolled, the reward selected, and the player who triggered the reroll.

  • 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 that is being rerolled.
    protected final org.bukkit.entity.Player
    The player who triggered the crate reroll.
    protected final BaseReward
    The reward that was selected during the reroll.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrateRerollEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player)
    Constructs a new CrateRerollEvent.
  • 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
    Returns 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 that is being rerolled.
    • reward

      protected final BaseReward reward
      The reward that was selected during the reroll.
    • player

      protected final org.bukkit.entity.Player player
      The player who triggered the crate reroll.
  • Constructor Details

    • CrateRerollEvent

      public CrateRerollEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player)
      Constructs a new CrateRerollEvent.
      Parameters:
      crate - the crate instance being rerolled
      reward - the reward selected during the reroll
      player - the player who triggered the reroll
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Returns the list of handlers for this event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the handler list for this event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns the static handler list for this event type.

      Required by Bukkit to register event handlers.

      Returns:
      the handler list for this event type
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