Interface Facet.Chat<V,M>
- Type Parameters:
V
- a viewer typeM
- a message type
- All Superinterfaces:
Facet<V>
,Facet.Message<V,
M>
- All Known Subinterfaces:
Facet.ChatPacket<V,
M>
A facet that sends chat messages.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
Facet.ActionBar<V,
M>, Facet.Book<V, M, B>, Facet.BossBar<V>, Facet.BossBarEntity<V, P>, Facet.BossBarPacket<V>, Facet.Chat<V, M>, Facet.ChatPacket<V, M>, Facet.EntitySound<V, M>, Facet.FakeEntity<V, P>, Facet.Message<V, M>, Facet.Pointers<V>, Facet.Position<V, P>, Facet.Sound<V, P>, Facet.TabList<V, M>, Facet.Title<V, M, C, T>, Facet.TitlePacket<V, M, C, T> -
Field Summary
Fields inherited from interface net.kyori.adventure.platform.facet.Facet.Message
PROTOCOL_HEX_COLOR, PROTOCOL_JSON
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendMessage
(V viewer, @NotNull Identity source, M message, @NotNull MessageType type) Sends a chat message.Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
Methods inherited from interface net.kyori.adventure.platform.facet.Facet.Message
createMessage
-
Method Details
-
sendMessage
void sendMessage(@NotNull V viewer, @NotNull @NotNull Identity source, @NotNull M message, @NotNull @NotNull MessageType type) Sends a chat message.- Parameters:
viewer
- a viewersource
- the sender's identitymessage
- a messagetype
- a message type- Since:
- 4.0.0
-