Class NBTLegacyHoverEventSerializer
java.lang.Object
net.kyori.adventure.platform.fabric.impl.NBTLegacyHoverEventSerializer
- All Implemented Interfaces:
net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer
public final class NBTLegacyHoverEventSerializer
extends Object
implements net.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.event.HoverEvent.ShowEntitydeserializeShowEntity(@NotNull net.kyori.adventure.text.Component input, net.kyori.adventure.util.Codec.Decoder<net.kyori.adventure.text.Component, String, ? extends RuntimeException> componentCodec) @NotNull net.kyori.adventure.text.event.HoverEvent.ShowItemdeserializeShowItem(@NotNull net.kyori.adventure.text.Component input) @NotNull net.kyori.adventure.text.ComponentserializeShowEntity(@NotNull net.kyori.adventure.text.event.HoverEvent.ShowEntity input, net.kyori.adventure.util.Codec.Encoder<net.kyori.adventure.text.Component, String, ? extends RuntimeException> componentCodec) @NotNull net.kyori.adventure.text.ComponentserializeShowItem(@NotNull net.kyori.adventure.text.event.HoverEvent.ShowItem input)
-
Field Details
-
INSTANCE
-
-
Method Details
-
deserializeShowItem
public @NotNull net.kyori.adventure.text.event.HoverEvent.ShowItem deserializeShowItem(@NotNull @NotNull net.kyori.adventure.text.Component input) throws IOException - Specified by:
deserializeShowItemin interfacenet.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer- Throws:
IOException
-
deserializeShowEntity
public @NotNull net.kyori.adventure.text.event.HoverEvent.ShowEntity deserializeShowEntity(@NotNull @NotNull net.kyori.adventure.text.Component input, net.kyori.adventure.util.Codec.Decoder<net.kyori.adventure.text.Component, String, throws IOException? extends RuntimeException> componentCodec) - Specified by:
deserializeShowEntityin interfacenet.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer- Throws:
IOException
-
serializeShowItem
@NotNull public @NotNull net.kyori.adventure.text.Component serializeShowItem(@NotNull net.kyori.adventure.text.event.HoverEvent.ShowItem input) throws IOException - Specified by:
serializeShowItemin interfacenet.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer- Throws:
IOException
-
serializeShowEntity
@NotNull public @NotNull net.kyori.adventure.text.Component serializeShowEntity(@NotNull net.kyori.adventure.text.event.HoverEvent.ShowEntity input, net.kyori.adventure.util.Codec.Encoder<net.kyori.adventure.text.Component, String, throws IOException? extends RuntimeException> componentCodec) - Specified by:
serializeShowEntityin interfacenet.kyori.adventure.text.serializer.gson.LegacyHoverEventSerializer- Throws:
IOException
-