Class ViaFacet.ActionBar<V>

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

    public static class ViaFacet.ActionBar<V>
    extends ViaFacet.Chat<V>
    implements net.kyori.adventure.platform.facet.Facet.ActionBar<V,​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 Object,​M extends Object>, net.kyori.adventure.platform.facet.Facet.Book<V extends Object,​M extends Object,​B extends Object>, net.kyori.adventure.platform.facet.Facet.BossBar<V extends Object>, net.kyori.adventure.platform.facet.Facet.BossBarEntity<V extends Object,​P extends Object>, net.kyori.adventure.platform.facet.Facet.BossBarPacket<V extends Object>, net.kyori.adventure.platform.facet.Facet.Chat<V extends Object,​M extends Object>, net.kyori.adventure.platform.facet.Facet.ChatPacket<V extends Object,​M extends Object>, net.kyori.adventure.platform.facet.Facet.EntitySound<V extends Object,​M extends Object>, net.kyori.adventure.platform.facet.Facet.FakeEntity<V extends Object,​P extends Object>, net.kyori.adventure.platform.facet.Facet.Message<V extends Object,​M extends Object>, net.kyori.adventure.platform.facet.Facet.Pointers<V extends Object>, net.kyori.adventure.platform.facet.Facet.Position<V extends Object,​P extends Object>, net.kyori.adventure.platform.facet.Facet.Sound<V extends Object,​P extends Object>, net.kyori.adventure.platform.facet.Facet.TabList<V extends Object,​M extends Object>, net.kyori.adventure.platform.facet.Facet.Title<V extends Object,​M extends Object,​C extends Object,​T extends Object>, net.kyori.adventure.platform.facet.Facet.TitlePacket<V extends Object,​M extends Object,​C extends Object,​T extends 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
      ActionBar​(@NotNull Class<? extends V> viewerClass, @NotNull Function<V,​com.viaversion.viaversion.api.connection.UserConnection> connectionFunction)  
    • Constructor Detail

      • ActionBar

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

      • createMessageType

        public byte createMessageType​(@NotNull
                                      @NotNull net.kyori.adventure.audience.MessageType type)
        Specified by:
        createMessageType in interface net.kyori.adventure.platform.facet.Facet.ChatPacket<V,​String>
      • sendMessage

        public void sendMessage​(@NotNull
                                V viewer,
                                @NotNull
                                @NotNull String message)
        Specified by:
        sendMessage in interface net.kyori.adventure.platform.facet.Facet.ActionBar<V,​String>