Module net.minestom.server
Package net.minestom.server.event.player
Class PlayerConfigCustomClickEvent
java.lang.Object
net.minestom.server.event.player.PlayerConfigCustomClickEvent
- All Implemented Interfaces:
Event
,EntityEvent
,PlayerEvent
Triggered when we receive a custom click packet from the client during the configuration state.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerConfigCustomClickEvent
(Player player, net.kyori.adventure.key.Key key, @Nullable net.kyori.adventure.nbt.BinaryTag payload) -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.key.Key
getKey()
@Nullable net.kyori.adventure.nbt.BinaryTag
Gets the player.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
PlayerConfigCustomClickEvent
public PlayerConfigCustomClickEvent(Player player, net.kyori.adventure.key.Key key, @Nullable @Nullable net.kyori.adventure.nbt.BinaryTag payload)
-
-
Method Details
-
getPlayer
Description copied from interface:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-
getKey
public net.kyori.adventure.key.Key getKey() -
getPayload
@Nullable public @Nullable net.kyori.adventure.nbt.BinaryTag getPayload()
-