Class ViaFacet.Chat<V>

  • All Implemented Interfaces:
    net.kyori.adventure.platform.facet.Facet<V>, net.kyori.adventure.platform.facet.Facet.Chat<V,​java.lang.String>, net.kyori.adventure.platform.facet.Facet.ChatPacket<V,​java.lang.String>, net.kyori.adventure.platform.facet.Facet.Message<V,​java.lang.String>
    Direct Known Subclasses:
    ViaFacet.ActionBar
    Enclosing class:
    ViaFacet<V>

    public static class ViaFacet.Chat<V>
    extends ViaFacet.ProtocolBased<V>
    implements net.kyori.adventure.platform.facet.Facet.ChatPacket<V,​java.lang.String>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet

        net.kyori.adventure.platform.facet.Facet.ActionBar<V extends java.lang.Object,​M extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.Book<V extends java.lang.Object,​M extends java.lang.Object,​B extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.BossBar<V extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.BossBarEntity<V extends java.lang.Object,​P extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.BossBarPacket<V extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.Chat<V extends java.lang.Object,​M extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.ChatPacket<V extends java.lang.Object,​M extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.EntitySound<V extends java.lang.Object,​M extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.FakeEntity<V extends java.lang.Object,​P extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.Message<V extends java.lang.Object,​M extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.Pointers<V extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.Position<V extends java.lang.Object,​P extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.Sound<V extends java.lang.Object,​P extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.TabList<V extends java.lang.Object,​M extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.Title<V extends java.lang.Object,​M extends java.lang.Object,​C extends java.lang.Object,​T extends java.lang.Object>, net.kyori.adventure.platform.facet.Facet.TitlePacket<V extends java.lang.Object,​M extends java.lang.Object,​C extends java.lang.Object,​T extends java.lang.Object>
    • Field Summary

      • Fields inherited from class net.kyori.adventure.platform.facet.FacetBase

        viewerClass
      • Fields inherited from interface net.kyori.adventure.platform.facet.Facet.ChatPacket

        TYPE_ACTION_BAR, TYPE_CHAT, TYPE_SYSTEM
      • Fields inherited from interface net.kyori.adventure.platform.facet.Facet.Message

        PROTOCOL_HEX_COLOR, PROTOCOL_JSON
    • Constructor Summary

      Constructors 
      Constructor Description
      Chat​(@NotNull java.lang.Class<? extends V> viewerClass, @NotNull java.util.function.Function<V,​com.viaversion.viaversion.api.connection.UserConnection> connectionFunction)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sendMessage​(V viewer, @NotNull Identity source, @NotNull java.lang.String message, @NotNull java.lang.Object type)  
      • 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
    • Constructor Detail

      • Chat

        public Chat​(@NotNull
                    @NotNull java.lang.Class<? extends V> viewerClass,
                    @NotNull
                    @NotNull java.util.function.Function<V,​com.viaversion.viaversion.api.connection.UserConnection> connectionFunction)
    • Method Detail

      • sendMessage

        public void sendMessage​(@NotNull
                                V viewer,
                                @NotNull
                                @NotNull Identity source,
                                @NotNull
                                @NotNull java.lang.String message,
                                @NotNull
                                @NotNull java.lang.Object type)
        Specified by:
        sendMessage in interface net.kyori.adventure.platform.facet.Facet.Chat<V,​java.lang.String>