Class ClientEmoteEvents

java.lang.Object
io.github.kosmx.emotes.api.events.client.ClientEmoteEvents

public final class ClientEmoteEvents extends Object
This API will be used on logical CLIENT SIDE Server-side events are in ServerEmoteEvents
  • Field Details

    • EMOTE_VERIFICATION

      public static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmoteVerifier> EMOTE_VERIFICATION
      Client verify emote if it can be played, or it has to be cancelled.
      Return with EventResult.PASS if you allow it and EventResult.FAIL if 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_PLAY
      Invoked when someone is starting an emote (can be the main player) For checking and cancelling, use EMOTE_VERIFICATION
    • EMOTE_STOP

      public static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.EmoteStopEvent> EMOTE_STOP
      A player is stopping the played emote by command

      NOTE: Emote ending won't trigger any events

    • LOCAL_EMOTE_STOP

      public static final com.zigythebird.playeranimcore.event.Event<ClientEmoteEvents.LocalEmoteStopEvent> LOCAL_EMOTE_STOP
      The client player is stopping its own emote It will trigger only if the command is from the client
  • Constructor Details

    • ClientEmoteEvents

      public ClientEmoteEvents()