Class Emotes
java.lang.Object
com.zhamty.emoteschat.api.Emotes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds and emote to the list.getEmoteByCode(String code) Returns an emote by its code from the list.getEmoteByName(String name) Returns an emote by its name from the list.Returns all the emotes in a list.booleanisEmotePresent(Emote emote) Checks if an emote is in the list.booleanisEmotePresentByCode(String code) Checks if an emote is in the list by its code.booleanisEmotePresentByName(String name) Checks if an emote is in the list by its name.voidCalled when emoteschat is reloaded (only internal use)booleanremoveEmote(Emote emote) Removes and emote from the list.booleanremoveEmoteByCode(String code) Removes and emote from the list by its code.booleanremoveEmoteByName(String name) Removes and emote from the list by its name.
-
Field Details
-
instance
-
-
Constructor Details
-
Emotes
Do not use unless you are only using the API and not the plugin.
Instantiates the emotes class.
- Parameters:
emotes- List of emotes to preload.- Since:
- 1.2
-
-
Method Details
-
addEmote
Adds and emote to the list.- Parameters:
emote- Emote to add.- Returns:
- True if the emote was added successfully, and it wasn't already in the list.
- Since:
- 1.2
-
reload
Called when emoteschat is reloaded (only internal use)- Parameters:
emotes- List of emotes that are in the config.- Since:
- 1.3
-
removeEmote
Removes and emote from the list.- Parameters:
emote- Emote to remove.- Returns:
- True if the emote was removed successfully, false it wasn't in the list.
- Since:
- 1.2
-
removeEmoteByName
Removes and emote from the list by its name.- Parameters:
name- Name of the emote to remove.- Returns:
- True if the emote was removed successfully, false it wasn't in the list.
- Since:
- 1.2
-
removeEmoteByCode
Removes and emote from the list by its code.- Parameters:
code- Code of the emote to remove.- Returns:
- True if the emote was removed successfully, false it wasn't in the list.
- Since:
- 1.2
-
isEmotePresent
Checks if an emote is in the list.- Parameters:
emote- Emote to check.- Returns:
- True if the emote was in the list.
- Since:
- 1.2
-
isEmotePresentByName
Checks if an emote is in the list by its name.- Parameters:
name- Name of the emote to check.- Returns:
- True if the emote was in the list.
- Since:
- 1.2
-
isEmotePresentByCode
Checks if an emote is in the list by its code.- Parameters:
code- Code of the emote to check.- Returns:
- True if the emote was in the list.
- Since:
- 1.2
-
getEmoteByName
-
getEmoteByCode
-
getEmotesList
-