endstone::PlayerEmoteEvent
Called when a player uses an emote.
Bases: endstone::Cancellable< PlayerEvent >
Attributes:
Name | Description |
---|---|
NAME |
Functions:
Name | Description |
---|---|
PlayerEmoteEvent | |
getEmoteId | Gets the emote piece ID. |
getEventName | |
isMuted | Gets the muted state for the emote. |
setMuted | Sets the muted state for the emote. |
NAME
const std::string endstone::PlayerEmoteEvent::NAME;
PlayerEmoteEvent
PlayerEmoteEvent(Player &player, std::string emote_id, bool muted)
getEmoteId
std::string getEmoteId() const
Gets the emote piece ID.
Returns:
The emote piece ID
getEventName
std::string getEventName() override const
Gets a user-friendly identifier for this event.
Returns:
name of this event
isMuted
bool isMuted() const
Gets the muted state for the emote.
This method determines whether the emote is being executed without sending a chat message about the emote.
Returns:
true if the emote is muted, false otherwise.
setMuted
void setMuted(bool muted)
Sets the muted state for the emote.
Note:
If set to true, the emote will be executed silently, and no chat messages will be sent.
Parameters:
muted
true to mute the emote and disable chat messages, false to unmute it.
Last updated on