Class ClientEmoteAPI

java.lang.Object
io.github.kosmx.emotes.api.events.client.ClientEmoteAPI
All Implemented Interfaces:
IEmotecraftService

public abstract class ClientEmoteAPI extends Object implements IEmotecraftService
  • Field Details

  • Constructor Details

    • ClientEmoteAPI

      public ClientEmoteAPI()
  • Method Details

    • stopEmote

      public static boolean stopEmote()
      Stop play an emote.
    • playEmote

      public static boolean playEmote(@Nullable @Nullable com.zigythebird.playeranimcore.animation.Animation animation)
      Start playing an emote.
      Parameters:
      animation - animation, null to stop playing.
      Returns:
      Can the emote be played: this doesn't check server-side verification
    • playEmote

      public static boolean playEmote(@Nullable @Nullable com.zigythebird.playeranimcore.animation.Animation animation, float tick)
      Start playing an emote.
      Parameters:
      animation - animation, null to stop playing.
      tick - First tick
      Returns:
      Can the emote be played: this doesn't check server-side verification
    • clientEmoteList

      public static Collection<com.zigythebird.playeranimcore.animation.Animation> clientEmoteList()
      A list of client-side active emotes. You can not modify the list.
      Returns:
      Client-side active emotes
    • playEmoteImpl

      protected abstract boolean playEmoteImpl(com.zigythebird.playeranimcore.animation.Animation animation, float tick)
    • clientEmoteListImpl

      protected abstract Collection<com.zigythebird.playeranimcore.animation.Animation> clientEmoteListImpl()
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface IEmotecraftService