Class MinecraftComponentSerializer
java.lang.Object
net.kyori.adventure.text.serializer.craftbukkit.MinecraftComponentSerializer
- All Implemented Interfaces:
ComponentSerializer<Component,Component, Object>
@Deprecated
public final class MinecraftComponentSerializer
extends Object
implements ComponentSerializer<Component,Component,Object>
Deprecated.
A component serializer for
net.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(), an UnsupportedOperationException will be thrown on any serialize or deserialize operations.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Componentdeserialize(@NotNull Object input) Deprecated.static @NotNull MinecraftComponentSerializerget()Deprecated.Gets the component serializer.static booleanDeprecated.Gets whether this serializer is supported.@NotNull ObjectDeprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.adventure.text.serializer.ComponentSerializer
deseializeOrNull, deserializeOr, deserializeOrNull, serializeOr, serializeOrNull
-
Constructor Details
-
MinecraftComponentSerializer
public MinecraftComponentSerializer()Deprecated.
-
-
Method Details
-
isSupported
public static boolean isSupported()Deprecated.Gets whether this serializer is supported.- Returns:
- if the serializer is supported.
- Since:
- 4.0.0
-
get
Deprecated.Gets the component serializer.- Returns:
- a component serializer
- Since:
- 4.0.0
-
deserialize
Deprecated.- Specified by:
deserializein interfaceComponentSerializer<Component,Component, Object>
-
serialize
Deprecated.- Specified by:
serializein interfaceComponentSerializer<Component,Component, Object>
-
MinecraftComponentSerializerinstead.