Class ClientEmoteEvents
java.lang.Object
io.github.kosmx.emotes.api.events.client.ClientEmoteEvents
This API will be used on logical CLIENT SIDE
Server-side events are in
ServerEmoteEvents-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmotePlayEvent> Invoked when someone is starting an emote (can be the main player) For checking and cancelling, useEMOTE_VERIFICATIONstatic final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmoteStopEvent> A player is stopping the played emote by commandstatic final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmoteVerifier> Client verify emote if it can be played, or it has to be cancelled.
Return withEventResult.PASSif you allow it andEventResult.FAILif you deny it.
Invoking this event does not mean the emote will be played even if the event wasn't cancelled.static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.LocalEmoteStopEvent> The client player is stopping its own emote It will trigger only if the command is from the client -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EMOTE_VERIFICATION
public static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmoteVerifier> EMOTE_VERIFICATIONClient verify emote if it can be played, or it has to be cancelled.
Return withEventResult.PASSif you allow it andEventResult.FAILif you deny it.
Invoking this event does not mean the emote will be played even if the event wasn't cancelled. -
EMOTE_PLAY
public static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmotePlayEvent> EMOTE_PLAYInvoked when someone is starting an emote (can be the main player) For checking and cancelling, useEMOTE_VERIFICATION -
EMOTE_STOP
public static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmoteStopEvent> EMOTE_STOPA player is stopping the played emote by commandNOTE: Emote ending won't trigger any events
-
LOCAL_EMOTE_STOP
public static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.LocalEmoteStopEvent> LOCAL_EMOTE_STOPThe client player is stopping its own emote It will trigger only if the command is from the client
-
-
Constructor Details
-
ClientEmoteEvents
public ClientEmoteEvents()
-