Class CrateInteractEvent

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

    public class CrateInteractEvent
    extends org.bukkit.event.Event
    implements org.bukkit.event.Cancellable
    Called when a player interacts with a crate.
    • Field Detail

      • player

        protected org.bukkit.entity.Player player
      • crate

        protected Crate crate
      • location

        protected org.bukkit.Location location
      • rootAction

        protected org.bukkit.event.block.Action rootAction
    • Constructor Detail

      • CrateInteractEvent

        public CrateInteractEvent​(Crate crate,
                                  org.bukkit.entity.Player player,
                                  CrateAction action,
                                  org.bukkit.event.block.Action rootAction)
      • CrateInteractEvent

        public CrateInteractEvent​(Crate crate,
                                  org.bukkit.entity.Player player,
                                  org.bukkit.Location location,
                                  CrateAction action,
                                  org.bukkit.event.block.Action rootAction)
    • Method Detail

      • getPlayer

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

        public Crate getCrate()
      • getLocation

        public org.bukkit.Location getLocation()
      • getRootAction

        public org.bukkit.event.block.Action getRootAction()
      • 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