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 Summary
ConstructorsConstructorDescriptionClientEmoteEvent(@NonNull GeyserConnection connection, @NonNull String emoteId) -
Method Summary
Modifier and TypeMethodDescription@NonNull StringemoteId()booleanvoidsetCancelled(boolean cancelled) Methods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent
connection
-
Constructor Details
-
ClientEmoteEvent
-
-
Method Details
-
emoteId
- Returns:
- the emote ID that the Bedrock player is attempting to perform.
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.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:
setCancelledin interfaceorg.geysermc.event.Cancellable
-