Class MinecraftComponentSerializer
- java.lang.Object
-
- net.kyori.adventure.text.serializer.craftbukkit.MinecraftComponentSerializer
-
- All Implemented Interfaces:
ComponentSerializer<Component,Component,java.lang.Object>
@Deprecated public final class MinecraftComponentSerializer extends java.lang.Object implements ComponentSerializer<Component,Component,java.lang.Object>
Deprecated.for removal, useMinecraftComponentSerializer
instead.A component serializer fornet.minecraft.server.<version>.IChatBaseComponent
.Due to Bukkit version namespaces, the return type does not reflect the actual type.
Color downsampling will be performed as necessary for the running server version.
If not
isSupported()
, anUnsupportedOperationException
will be thrown on any serialize or deserialize operations.- Since:
- 4.0.0
- See Also:
get()
-
-
Constructor Summary
Constructors Constructor Description MinecraftComponentSerializer()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull Component
deserialize(@NotNull java.lang.Object input)
Deprecated.static @NotNull MinecraftComponentSerializer
get()
Deprecated.Gets the component serializer.static boolean
isSupported()
Deprecated.Gets whether this serializer is supported.@NotNull java.lang.Object
serialize(@NotNull Component component)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.kyori.adventure.text.serializer.ComponentSerializer
deseializeOrNull, deserializeOr, deserializeOrNull, serializeOr, serializeOrNull
-
-
-
-
Method Detail
-
isSupported
public static boolean isSupported()
Deprecated.Gets whether this serializer is supported.- Returns:
- if the serializer is supported.
- Since:
- 4.0.0
-
get
@NotNull public static @NotNull MinecraftComponentSerializer get()
Deprecated.Gets the component serializer.- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
@NotNull public @NotNull Component deserialize(@NotNull @NotNull java.lang.Object input)
Deprecated.- Specified by:
deserialize
in interfaceComponentSerializer<Component,Component,java.lang.Object>
-
serialize
@NotNull public @NotNull java.lang.Object serialize(@NotNull @NotNull Component component)
Deprecated.- Specified by:
serialize
in interfaceComponentSerializer<Component,Component,java.lang.Object>
-
-