Class ClientEmoteAPI
java.lang.Object
io.github.kosmx.emotes.api.events.client.ClientEmoteAPI
- All Implemented Interfaces:
IEmotecraftService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<com.zigythebird.playeranimcore.animation.Animation> A list of client-side active emotes.protected abstract Collection<com.zigythebird.playeranimcore.animation.Animation> booleanisActive()static booleanplayEmote(@Nullable com.zigythebird.playeranimcore.animation.Animation animation) Start playing an emote.static booleanplayEmote(@Nullable com.zigythebird.playeranimcore.animation.Animation animation, float tick) Start playing an emote.protected abstract booleanplayEmoteImpl(com.zigythebird.playeranimcore.animation.Animation animation, float tick) static booleanStop play an emote.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.kosmx.emotes.api.services.IEmotecraftService
getName, getPriority
-
Field Details
-
INSTANCE
-
-
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,nullto 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,nullto stop playing.tick- First tick- Returns:
- Can the emote be played: this doesn't check server-side verification
-
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:
isActivein interfaceIEmotecraftService
-