Class 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, use MinecraftComponentSerializer instead.
    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:
    get()
    • Constructor Detail

      • MinecraftComponentSerializer

        public MinecraftComponentSerializer()
        Deprecated.
    • 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