All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.adventure.serializer.nbt.NbtComponentSerializer Maven / Gradle / Ivy

There is a newer version: lib-module-20989dc8ad
Show newest version
package net.minestom.server.adventure.serializer.nbt;

import net.kyori.adventure.nbt.BinaryTag;
import net.kyori.adventure.nbt.CompoundBinaryTag;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.Style;
import net.kyori.adventure.text.serializer.ComponentSerializer;
import org.jetbrains.annotations.NotNull;

public interface NbtComponentSerializer extends ComponentSerializer {
    static @NotNull NbtComponentSerializer nbt() {
        return NbtComponentSerializerImpl.INSTANCE;
    }

    @NotNull Style deserializeStyle(@NotNull BinaryTag tag);

    @NotNull CompoundBinaryTag serializeStyle(@NotNull Style style);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy