Make NBTConverter public

This commit is contained in:
Nassim Jahnke 2023-12-27 20:20:09 +01:00
parent 3904ed4fd7
commit d62284e9cd
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -35,9 +35,9 @@ import java.util.Map;
import net.lenni0451.mcstructs.nbt.INbtTag;
import org.checkerframework.checker.nullness.qual.Nullable;
final class NBTConverter {
public final class NBTConverter {
static @Nullable Tag mcStructsToVia(@Nullable final INbtTag nbtTag) {
public static @Nullable Tag mcStructsToVia(@Nullable final INbtTag nbtTag) {
if (nbtTag == null) {
return null;
} else if (nbtTag.isByteTag()) {
@ -78,7 +78,7 @@ final class NBTConverter {
}
}
static @Nullable INbtTag viaToMcStructs(@Nullable final Tag tag) {
public static @Nullable INbtTag viaToMcStructs(@Nullable final Tag tag) {
if (tag == null) {
return null;
} else if (tag instanceof ByteTag) {