Class CrateGiveEvent

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

    public class CrateGiveEvent
    extends org.bukkit.event.Event
    implements org.bukkit.event.Cancellable
    Represents an event that is called when a user gives a crate to a player.
    • Constructor Detail

      • CrateGiveEvent

        public CrateGiveEvent​(org.bukkit.command.CommandSender sender,
                              org.bukkit.OfflinePlayer player,
                              Crate crate,
                              int amount,
                              boolean sendAll)
    • Method Detail

      • getSender

        public org.bukkit.command.CommandSender getSender()
      • getTarget

        public org.bukkit.OfflinePlayer getTarget()
      • getCrate

        public Crate getCrate()
      • getAmount

        public int getAmount()
      • isSentToAll

        public boolean isSentToAll()
      • 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
      • getHandlers

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

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