Class CrateRewardEvent

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    public class CrateRewardEvent
    extends org.bukkit.event.Event
    implements org.bukkit.event.Cancellable
    Called when a player opens a crate.
    • Constructor Detail

      • CrateRewardEvent

        public CrateRewardEvent​(Crate crate,
                                org.bukkit.entity.Player player,
                                org.bukkit.Location location,
                                List<Reward> rewards)
    • Method Detail

      • getPlayer

        public org.bukkit.entity.Player getPlayer()
      • getCrate

        public Crate getCrate()
      • getLocation

        public org.bukkit.Location getLocation()
      • getHandlers

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

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

        public boolean isCancelled()
        Specified by:
        isCancelled in interface org.bukkit.event.Cancellable
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Specified by:
        setCancelled in interface org.bukkit.event.Cancellable