Class CratePlaceEvent

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

    public class CratePlaceEvent
    extends org.bukkit.event.Event
    implements org.bukkit.event.Cancellable
    Called when a player places a Supply Crate. CrateType.SUPPLY
    • Constructor Detail

      • CratePlaceEvent

        public CratePlaceEvent​(Crate crate,
                               org.bukkit.entity.Player player,
                               org.bukkit.block.Block block)
    • Method Detail

      • getCrate

        public Crate getCrate()
      • getPlayer

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

        public org.bukkit.block.Block getBlock()
      • isCancelled

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

        public void setCancelled​(boolean cancel)
        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()