Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
Make NBTConverter public
Dieser Commit ist enthalten in:
Ursprung
3904ed4fd7
Commit
d62284e9cd
@ -35,9 +35,9 @@ import java.util.Map;
|
|||||||
import net.lenni0451.mcstructs.nbt.INbtTag;
|
import net.lenni0451.mcstructs.nbt.INbtTag;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
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) {
|
if (nbtTag == null) {
|
||||||
return null;
|
return null;
|
||||||
} else if (nbtTag.isByteTag()) {
|
} 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) {
|
if (tag == null) {
|
||||||
return null;
|
return null;
|
||||||
} else if (tag instanceof ByteTag) {
|
} else if (tag instanceof ByteTag) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren