Class PacketBlockInteractEvent

java.lang.Object
org.bukkit.event.Event
org.aincraft.events.PacketBlockInteractEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class PacketBlockInteractEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PacketBlockInteractEvent(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.block.Block block, @NotNull org.bukkit.event.block.Action action, @Nullable org.bukkit.inventory.EquipmentSlot hand, @Nullable org.bukkit.block.BlockFace face, @Nullable org.bukkit.inventory.ItemStack item, @NotNull String resourceKey)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.event.block.Action
     
    @NotNull org.bukkit.block.Block
     
    @Nullable org.bukkit.block.BlockFace
     
    @Nullable org.bukkit.inventory.EquipmentSlot
     
    static @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    @Nullable org.bukkit.inventory.ItemStack
     
    @NotNull org.bukkit.entity.Player
     
    @NotNull String
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
    setCancelled(boolean cancel)
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PacketBlockInteractEvent

      @Internal public PacketBlockInteractEvent(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.event.block.Action action, @Nullable @Nullable org.bukkit.inventory.EquipmentSlot hand, @Nullable @Nullable org.bukkit.block.BlockFace face, @Nullable @Nullable org.bukkit.inventory.ItemStack item, @NotNull @NotNull String resourceKey)
  • Method Details

    • getPlayer

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

      @NotNull public @NotNull org.bukkit.block.Block getBlock()
    • getAction

      @NotNull public @NotNull org.bukkit.event.block.Action getAction()
    • getHand

      @Nullable public @Nullable org.bukkit.inventory.EquipmentSlot getHand()
    • getFace

      @Nullable public @Nullable org.bukkit.block.BlockFace getFace()
    • getItem

      @Nullable public @Nullable org.bukkit.inventory.ItemStack getItem()
    • getResourceKey

      @NotNull public @NotNull String getResourceKey()
    • isLeftClick

      public boolean isLeftClick()
    • isRightClick

      public boolean isRightClick()
    • isPhysical

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

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

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