Class ViaFacet.ProtocolBased<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>
-
- All Implemented Interfaces:
net.kyori.adventure.platform.facet.Facet<V>
,net.kyori.adventure.platform.facet.Facet.Message<V,java.lang.String>
- Direct Known Subclasses:
ViaFacet.ActionBarTitle
,ViaFacet.BossBar
,ViaFacet.Chat
,ViaFacet.TabList
,ViaFacet.Title
public static class ViaFacet.ProtocolBased<V> extends ViaFacet<V>
-
-
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.TabList<V>, ViaFacet.Title<V>
-
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
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.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.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.TitlePacket<V extends java.lang.Object,M extends java.lang.Object,C extends java.lang.Object,T extends java.lang.Object>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProtocolBased(@NotNull java.lang.String fromProtocol, @NotNull java.lang.String toProtocol, int minProtocol, @NotNull java.lang.String packetName, @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 com.viaversion.viaversion.api.protocol.packet.PacketWrapper
createPacket(V viewer)
boolean
isSupported()
@NotNull com.viaversion.viaversion.libs.gson.JsonElement
parse(@NotNull java.lang.String message)
void
sendPacket(@NotNull com.viaversion.viaversion.api.protocol.packet.PacketWrapper packet)
-
Methods inherited from class net.kyori.adventure.platform.viaversion.ViaFacet
createMessage, findConnection, findProtocol, isApplicable
-
-
-
-
Constructor Detail
-
ProtocolBased
protected ProtocolBased(@NotNull @NotNull java.lang.String fromProtocol, @NotNull @NotNull java.lang.String toProtocol, int minProtocol, @NotNull @NotNull java.lang.String packetName, @NotNull @NotNull java.lang.Class<? extends V> viewerClass, @NotNull @NotNull java.util.function.Function<V,com.viaversion.viaversion.api.connection.UserConnection> connectionFunction)
-
-
Method Detail
-
isSupported
public boolean isSupported()
- Specified by:
isSupported
in interfacenet.kyori.adventure.platform.facet.Facet<V>
- Overrides:
isSupported
in classViaFacet<V>
-
createPacket
public com.viaversion.viaversion.api.protocol.packet.PacketWrapper createPacket(@NotNull V viewer)
-
sendPacket
public void sendPacket(@NotNull @NotNull com.viaversion.viaversion.api.protocol.packet.PacketWrapper packet)
-
parse
@NotNull public @NotNull com.viaversion.viaversion.libs.gson.JsonElement parse(@NotNull @NotNull java.lang.String message)
-
-