Class ViaFacet.Title<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.Title<V>
-
- All Implemented Interfaces:
net.kyori.adventure.platform.facet.Facet<V>,net.kyori.adventure.platform.facet.Facet.Message<V,java.lang.String>,net.kyori.adventure.platform.facet.Facet.Title<V,java.lang.String,java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>>,java.util.function.Consumer<V>>,net.kyori.adventure.platform.facet.Facet.TitlePacket<V,java.lang.String,java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>>,java.util.function.Consumer<V>>
public static class ViaFacet.Title<V> extends ViaFacet.ProtocolBased<V> implements net.kyori.adventure.platform.facet.Facet.TitlePacket<V,java.lang.String,java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>>,java.util.function.Consumer<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.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>
-
-
Constructor Summary
Constructors Modifier Constructor Description Title(@NotNull java.lang.Class<? extends V> viewerClass, @NotNull java.util.function.Function<V,com.viaversion.viaversion.api.connection.UserConnection> connectionFunction)protectedTitle(@NotNull java.lang.String fromProtocol, @NotNull java.lang.String toProtocol, int minProtocol, @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 voidclearTitle(V viewer)@Nullable java.util.function.Consumer<V>completeTitle(@NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll)voidcontributeSubtitle(@NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll, @NotNull java.lang.String subtitle)voidcontributeTimes(@NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll, int inTicks, int stayTicks, int outTicks)voidcontributeTitle(@NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll, @NotNull java.lang.String title)@NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>>createTitleCollection()voidresetTitle(V viewer)voidshowTitle(V viewer, @NotNull java.util.function.Consumer<V> title)-
Methods inherited from class net.kyori.adventure.platform.viaversion.ViaFacet.ProtocolBased
createPacket, isSupported, parse, sendPacket
-
Methods inherited from class net.kyori.adventure.platform.viaversion.ViaFacet
createMessage, findConnection, findProtocol, isApplicable
-
-
-
-
Constructor Detail
-
Title
protected Title(@NotNull @NotNull java.lang.String fromProtocol, @NotNull @NotNull java.lang.String toProtocol, int minProtocol, @NotNull @NotNull java.lang.Class<? extends V> viewerClass, @NotNull @NotNull java.util.function.Function<V,com.viaversion.viaversion.api.connection.UserConnection> connectionFunction)
-
-
Method Detail
-
createTitleCollection
@NotNull public @NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> createTitleCollection()
-
contributeTitle
public void contributeTitle(@NotNull @NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll, @NotNull @NotNull java.lang.String title)
-
contributeSubtitle
public void contributeSubtitle(@NotNull @NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll, @NotNull @NotNull java.lang.String subtitle)
-
contributeTimes
public void contributeTimes(@NotNull @NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll, int inTicks, int stayTicks, int outTicks)
-
completeTitle
@Nullable public @Nullable java.util.function.Consumer<V> completeTitle(@NotNull @NotNull java.util.List<java.util.function.Consumer<com.viaversion.viaversion.api.protocol.packet.PacketWrapper>> coll)
-
showTitle
public void showTitle(@NotNull V viewer, @NotNull @NotNull java.util.function.Consumer<V> title)
-
clearTitle
public void clearTitle(@NotNull V viewer)
-
-