Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.phoenixcrates.api crate events
com.phoenixplugins.phoenixcrates.api.crate.events

Class CrateRerollEvent

  • java.lang.Object
    • org.bukkit.event.Event
      • com.phoenixplugins.phoenixcrates.api.crate.events.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

      Modifier and Type Field and Description
      protected CrateInstance crate
      The crate instance that is being rerolled.
      protected org.bukkit.entity.Player player
      The player who triggered the crate reroll.
      protected BaseReward reward
      The reward that was selected during the reroll.
    • Constructor Summary

      Constructor and Description
      CrateRerollEvent(CrateInstance crate, BaseReward reward, org.bukkit.entity.Player player)
      Constructs a new CrateRerollEvent.
    • Method Summary

      Modifier and Type Method and Description
      static org.bukkit.event.HandlerList getHandlerList()
      Returns the static handler list for this event type.
      org.bukkit.event.HandlerList getHandlers()
      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 Detail

      • 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 Detail

      • 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 Detail

      • 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 about 3 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more