Class ClientEmoteAPI
java.lang.Object
io.github.kosmx.emotes.api.events.client.ClientEmoteAPI
- All Implemented Interfaces:
org.redlance.common.services.AdvancedService
public abstract class ClientEmoteAPI
extends Object
implements org.redlance.common.services.AdvancedService
-
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> booleanstatic 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.redlance.common.services.AdvancedService
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() -
isServiceActive
public boolean isServiceActive()- Specified by:
isServiceActivein interfaceorg.redlance.common.services.AdvancedService
-