Package net.minestom.server.event.player
Class PlayerCustomClickEvent
java.lang.Object
net.minestom.server.event.player.PlayerCustomClickEvent
- All Implemented Interfaces:
Event,EntityEvent,EntityInstanceEvent,InstanceEvent,PlayerEvent,PlayerInstanceEvent
Triggered when we receive a custom click packet from the client during the play state.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerCustomClickEvent(@NotNull Player player, @NotNull net.kyori.adventure.key.Key key, @Nullable net.kyori.adventure.nbt.BinaryTag payload) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minestom.server.event.trait.EntityInstanceEvent
getInstanceMethods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
PlayerCustomClickEvent
public PlayerCustomClickEvent(@NotNull @NotNull Player player, @NotNull @NotNull net.kyori.adventure.key.Key key, @Nullable @Nullable net.kyori.adventure.nbt.BinaryTag payload)
-
-
Method Details
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-
getKey
@NotNull public @NotNull net.kyori.adventure.key.Key getKey() -
getPayload
@Nullable public @Nullable net.kyori.adventure.nbt.BinaryTag getPayload()
-