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 -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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:
getHandlersin classorg.bukkit.event.Event
-