Class ClientEmoteEvent

java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.bedrock.ClientEmoteEvent
All Implemented Interfaces:
org.geysermc.event.Cancellable, org.geysermc.event.Event

public final class ClientEmoteEvent extends ConnectionEvent implements org.geysermc.event.Cancellable
Called whenever a Bedrock player performs an emote on their end, before it is broadcasted to the rest of the server.
  • Constructor Details

    • ClientEmoteEvent

      public ClientEmoteEvent(@NonNull GeyserConnection connection, @NonNull String emoteId)
  • Method Details

    • emoteId

      public @NonNull String emoteId()
      Returns:
      the emote ID that the Bedrock player is attempting to perform.
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.geysermc.event.Cancellable
      Returns:
      the cancel status of this event. A Bedrock player will still play this emote on its end even if this event is cancelled, but other Bedrock players will not see.
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.geysermc.event.Cancellable