Class PacketBlockInteractEvent

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

@AvailableSince("1.0.2") public final class PacketBlockInteractEvent extends PacketBlockEvent 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
     
    @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
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
    setCancelled(boolean cancel)
     

    Methods inherited from class org.aincraft.events.PacketBlockEvent

    getBlock, getPlayer, getResourceKey

    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

    • 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()
    • 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()
      Overrides:
      getHandlers in class PacketBlockEvent
    • getHandlerList

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