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 Component
deserialize
(@NotNull Object input) Deprecated.static @NotNull MinecraftComponentSerializer
get()
Deprecated.Gets the component serializer.static boolean
Deprecated.Gets whether this serializer is supported.@NotNull Object
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
-
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:
deserialize
in interfaceComponentSerializer<Component,
Component, Object>
-
serialize
Deprecated.- Specified by:
serialize
in interfaceComponentSerializer<Component,
Component, Object>
-
MinecraftComponentSerializer
instead.