public class NbtIo extends Object
Constructor and Description |
---|
NbtIo() |
Modifier and Type | Method and Description |
---|---|
static CompoundTag |
read(DataInput input) |
private static Tag |
read(DataInput input,
int depth,
PositionTracker tracker) |
static CompoundTag |
read(DataInput input,
PositionTracker tracker) |
static CompoundTag |
read(File file) |
static CompoundTag |
readCompressed(File file) |
static CompoundTag |
readCompressed(InputStream stream) |
static void |
write(CompoundTag tag,
DataOutput output) |
static void |
write(CompoundTag tag,
File file) |
private static void |
write(Tag tag,
DataOutput output) |
static void |
writeCompressed(CompoundTag tag,
File file) |
static void |
writeCompressed(CompoundTag tag,
OutputStream stream) |
public static CompoundTag readCompressed(File file) throws IOException
IOException
public static CompoundTag readCompressed(InputStream stream) throws IOException
IOException
public static void writeCompressed(CompoundTag tag, File file) throws IOException
IOException
public static void writeCompressed(CompoundTag tag, OutputStream stream) throws IOException
IOException
@Environment(value=CLIENT) public static void write(CompoundTag tag, File file) throws IOException
IOException
@Environment(value=CLIENT) @Nullable public static CompoundTag read(File file) throws IOException
IOException
public static CompoundTag read(DataInput input) throws IOException
IOException
public static CompoundTag read(DataInput input, PositionTracker tracker) throws IOException
IOException
public static void write(CompoundTag tag, DataOutput output) throws IOException
IOException
private static void write(Tag tag, DataOutput output) throws IOException
IOException
private static Tag read(DataInput input, int depth, PositionTracker tracker) throws IOException
IOException