Class ViaFacet.Chat<V>
- java.lang.Object
-
- net.kyori.adventure.platform.facet.FacetBase<V>
-
- net.kyori.adventure.platform.viaversion.ViaFacet<V>
-
- net.kyori.adventure.platform.viaversion.ViaFacet.ProtocolBased<V>
-
- net.kyori.adventure.platform.viaversion.ViaFacet.Chat<V>
-
- All Implemented Interfaces:
Facet<V>,Facet.Chat<V,java.lang.String>,Facet.ChatPacket<V,java.lang.String>,Facet.Message<V,java.lang.String>
- Direct Known Subclasses:
ViaFacet.ActionBar
public static class ViaFacet.Chat<V> extends ViaFacet.ProtocolBased<V> implements Facet.ChatPacket<V,java.lang.String>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.kyori.adventure.platform.viaversion.ViaFacet
ViaFacet.ActionBar<V>, ViaFacet.ActionBarTitle<V>, ViaFacet.BossBar<V>, ViaFacet.Chat<V>, ViaFacet.ProtocolBased<V>, ViaFacet.Title<V>
-
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.FakeEntity<V,P>, Facet.Message<V,M>, Facet.Position<V,P>, Facet.Sound<V,P>, Facet.Title<V,M,T>, Facet.TitlePacket<V,M,T>
-
-
Field Summary
-
Fields inherited from class net.kyori.adventure.platform.facet.FacetBase
viewerClass
-
Fields inherited from interface net.kyori.adventure.platform.facet.Facet.ChatPacket
SENDER_NULL, TYPE_ACTION_BAR, TYPE_CHAT, TYPE_SYSTEM
-
Fields inherited from interface net.kyori.adventure.platform.facet.Facet.Message
PROTOCOL_HEX_COLOR, PROTOCOL_JSON
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendMessage(@NonNull V viewer, @NonNull java.lang.String message, @NonNull net.kyori.adventure.audience.MessageType type)Sends a chat message.-
Methods inherited from class net.kyori.adventure.platform.viaversion.ViaFacet.ProtocolBased
createPacket, isSupported, sendPacket
-
Methods inherited from class net.kyori.adventure.platform.viaversion.ViaFacet
createMessage, findConnection, findProtocol, isApplicable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupported
-
Methods inherited from interface net.kyori.adventure.platform.facet.Facet.ChatPacket
createMessageType
-
Methods inherited from interface net.kyori.adventure.platform.facet.Facet.Message
createMessage
-
-
-
-
Method Detail
-
sendMessage
public void sendMessage(@NonNull V viewer, @NonNull java.lang.String message, @NonNull net.kyori.adventure.audience.MessageType type)
Description copied from interface:Facet.ChatSends a chat message.- Specified by:
sendMessagein interfaceFacet.Chat<V,java.lang.String>- Parameters:
viewer- a viewermessage- a messagetype- a message type
-
-