Package org.spongepowered.api.adventure
Interface ChatType
- All Superinterfaces:
ChatType
,DataPackSerializable
,DefaultedRegistryValue
,net.kyori.examination.Examinable
,Keyed
@CatalogedBy(ChatTypes.class)
public interface ChatType
extends DefaultedRegistryValue, 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.Builder
builder()
Creates a newChatType.Builder
to 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, examinableProperties
Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
toDataPack
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Method Details
-
builder
Creates a newChatType.Builder
to 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
-