Class PacketBlockInteractEvent

java.lang.Object
org.bukkit.event.Event
net.bitbylogic.packetblocks.event.PacketBlockInteractEvent

public class PacketBlockInteractEvent extends org.bukkit.event.Event
Called when a player interacts with a PacketBlockHolder.

This event is fired by the PacketBlocks plugin whenever a player right or left-clicks a PacketBlockHolder instance in the world.

Handlers may choose to listen to this event to add custom interaction behavior to packet blocks.

The event provides access to the player, the interaction action, the hand used, the hit block face and the packet block that was interacted with.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     

    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

      public PacketBlockInteractEvent()
  • Method Details

    • getHandlerList

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

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