Class ViaFacet<V>
java.lang.Object
net.kyori.adventure.platform.facet.FacetBase<V>
net.kyori.adventure.platform.viaversion.ViaFacet<V>
- All Implemented Interfaces:
net.kyori.adventure.platform.facet.Facet<V>,net.kyori.adventure.platform.facet.Facet.Message<V,String>
- Direct Known Subclasses:
ViaFacet.BossBar.Builder,ViaFacet.BossBar.Builder1_9_To_1_15,ViaFacet.ProtocolBased
public class ViaFacet<V>
extends net.kyori.adventure.platform.facet.FacetBase<V>
implements net.kyori.adventure.platform.facet.Facet.Message<V,String>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic final classstatic classstatic classstatic final classstatic classNested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
net.kyori.adventure.platform.facet.Facet.Book<V,M, B>, net.kyori.adventure.platform.facet.Facet.BossBarEntity<V, P>, net.kyori.adventure.platform.facet.Facet.BossBarPacket<V>, net.kyori.adventure.platform.facet.Facet.ChatPacket<V, M>, net.kyori.adventure.platform.facet.Facet.EntitySound<V, M>, net.kyori.adventure.platform.facet.Facet.FakeEntity<V, P>, net.kyori.adventure.platform.facet.Facet.Message<V, M>, net.kyori.adventure.platform.facet.Facet.Pointers<V>, net.kyori.adventure.platform.facet.Facet.Position<V, P>, net.kyori.adventure.platform.facet.Facet.Sound<V, P>, net.kyori.adventure.platform.facet.Facet.TitlePacket<V, M, C, T> -
Field Summary
Fields inherited from class net.kyori.adventure.platform.facet.FacetBase
viewerClassFields inherited from interface net.kyori.adventure.platform.facet.Facet.Message
PROTOCOL_HEX_COLOR, PROTOCOL_JSON, VERSION_HEX_COLOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringcreateMessage(V viewer, @NotNull Component message) @Nullable com.viaversion.viaversion.api.connection.UserConnectionfindConnection(V viewer) com.viaversion.viaversion.api.protocol.version.ProtocolVersionfindProtocol(V viewer) booleanisApplicable(V viewer) boolean
-
Constructor Details
-
ViaFacet
-
-
Method Details
-
isSupported
public boolean isSupported() -
isApplicable
-
findConnection
@Nullable public @Nullable com.viaversion.viaversion.api.connection.UserConnection findConnection(@NotNull V viewer) -
findProtocol
public com.viaversion.viaversion.api.protocol.version.ProtocolVersion findProtocol(@NotNull V viewer) -
createMessage
-