Class PlayerCustomClickEvent

java.lang.Object
net.minestom.server.event.player.PlayerCustomClickEvent
All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent

public class PlayerCustomClickEvent extends Object implements PlayerInstanceEvent
Triggered when we receive a custom click packet from the client during the play state.
See Also:
  • 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

      @NotNull public @NotNull Player getPlayer()
      Description copied from interface: PlayerEvent
      Gets the player.
      Specified by:
      getPlayer in interface PlayerEvent
      Returns:
      the player
    • getKey

      @NotNull public @NotNull net.kyori.adventure.key.Key getKey()
    • getPayload

      @Nullable public @Nullable net.kyori.adventure.nbt.BinaryTag getPayload()