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
(@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, wait
Methods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
PlayerConfigCustomClickEvent
public PlayerConfigCustomClickEvent(@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:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-
getKey
@NotNull public @NotNull net.kyori.adventure.key.Key getKey() -
getPayload
@Nullable public @Nullable net.kyori.adventure.nbt.BinaryTag getPayload()
-