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.
- Since:
- 2.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this event is cancelled.voidcancelled(boolean cancelled) Sets the cancel status of this event.emoteId()The emote ID that the Bedrock player is attempting to perform.booleansilent()Whether the emote should be played silently, or announced in the server chatvoidsilent(boolean silent) Whether the emote should be played silently, or announced in the server chatMethods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent
connectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
ClientEmoteEvent
-
-
Method Details
-
emoteId
The emote ID that the Bedrock player is attempting to perform. It is sent directly by the client, and is not guaranteed to be a valid emote ID.- Returns:
- the emote ID requested by the player
- Since:
- 2.1.0
-
silent
public boolean silent()Whether the emote should be played silently, or announced in the server chat- Returns:
- whether the emote should be played silently
- Since:
- 2.9.6
-
silent
public void silent(boolean silent) Whether the emote should be played silently, or announced in the server chat- Parameters:
silent- if true, the emote will not be announced in the server chat- Since:
- 2.9.6
- See Also:
-
cancelled
public boolean cancelled()Whether this event is cancelled. A Bedrock player will still play this emote on its end even if this event is cancelled, but other Bedrock players will not see.- Specified by:
cancelledin interfaceorg.geysermc.event.Cancellable- Returns:
- the cancel status of this event
- Since:
- 3.0.0
-
cancelled
public void cancelled(boolean cancelled) Sets the cancel status of this event. If this event is canceled, the emote will not be played to other players.- Specified by:
cancelledin interfaceorg.geysermc.event.Cancellable- Parameters:
cancelled- whether this event is cancelled- Since:
- 3.0.0
-