Package net.kyori.adventure.chat
Interface ChatType
- All Superinterfaces:
net.kyori.examination.Examinable
,Keyed
A type of chat.
- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ChatType
A chat message from a player.static final ChatType
A message sent as a result of using the/me
command.static final ChatType
A message received as a result of using the/msg
command.static final ChatType
A message sent as a result of using the/msg
command.static final ChatType
A message send as a result of using the/say
command.static final ChatType
A message received as a result of using the/teammsg
command.static final ChatType
A message sent as a result of using the/teammsg
command. -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull ChatType.Bound
bind
(@NotNull ComponentLike name) Creates a bound chat type with a nameComponent
.default @NotNull ChatType.Bound
bind
(@NotNull ComponentLike name, @Nullable ComponentLike target) Creates a bound chat type with a name and targetComponent
.static @NotNull ChatType
Creates a new chat type with a given key.default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Field Details
-
CHAT
A chat message from a player.- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
SAY_COMMAND
A message send as a result of using the/say
command.- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
MSG_COMMAND_INCOMING
A message received as a result of using the/msg
command.- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
MSG_COMMAND_OUTGOING
A message sent as a result of using the/msg
command.- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
TEAM_MSG_COMMAND_INCOMING
A message received as a result of using the/teammsg
command.- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
TEAM_MSG_COMMAND_OUTGOING
A message sent as a result of using the/teammsg
command.- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
EMOTE_COMMAND
A message sent as a result of using the/me
command.- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
-
Method Details
-
chatType
Creates a new chat type with a given key.- Parameters:
key
- the key- Returns:
- the chat type
- Since:
- 4.12.0
-
bind
@Contract(value="_ -> new", pure=true) default @NotNull ChatType.Bound bind(@NotNull @NotNull ComponentLike name) Creates a bound chat type with a nameComponent
.- Parameters:
name
- the name component- Returns:
- a new bound chat type
- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
bind
@Contract(value="_, _ -> new", pure=true) default @NotNull ChatType.Bound bind(@NotNull @NotNull ComponentLike name, @Nullable @Nullable ComponentLike target) Creates a bound chat type with a name and targetComponent
.- Parameters:
name
- the name componenttarget
- the optional target component- Returns:
- a new bound chat type
- Since:
- 4.12.0
- Since Minecraft:
- 1.19
-
examinableProperties
@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-