Package org.spongepowered.api.adventure
Interface ChatType
- All Superinterfaces:
ChatType,DataPackSerializable,DefaultedRegistryValue<ChatType>,net.kyori.examination.Examinable,Keyed
@CatalogedBy(ChatTypes.class)
public interface ChatType
extends DefaultedRegistryValue<ChatType>, ChatType, DataPackSerializable
A type of chat
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.kyori.adventure.chat.ChatType
ChatType.Bound -
Field Summary
Fields inherited from interface net.kyori.adventure.chat.ChatType
CHAT, EMOTE_COMMAND, MSG_COMMAND_INCOMING, MSG_COMMAND_OUTGOING, SAY_COMMAND, TEAM_MSG_COMMAND_INCOMING, TEAM_MSG_COMMAND_OUTGOING -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatType.Builderbuilder()Creates a newChatType.Builderto create aChatType.style()Gets the style that would be used to display the chat message.Gets the translation key that would be used to display the chat message.Methods inherited from interface net.kyori.adventure.chat.ChatType
bind, bind, examinablePropertiesMethods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
toDataPackMethods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Method Details
-
builder
Creates a newChatType.Builderto create aChatType.- Returns:
- The new builder
-
translationKey
String translationKey()Gets the translation key that would be used to display the chat message.- Returns:
- The translation key
-
style
Style style()Gets the style that would be used to display the chat message.- Returns:
- The style
-