public class NBTStreamUtil
extends java.lang.Object
Constructor and Description |
---|
NBTStreamUtil() |
Modifier and Type | Method and Description |
---|---|
static net.minecraft.nbt.CompoundNBT |
readNBTFromFile(java.io.File file) |
static net.minecraft.nbt.CompoundNBT |
readNBTFromStream(java.io.InputStream stream) |
static void |
writeNBTToFile(net.minecraft.nbt.CompoundNBT tag,
java.io.File file) |
static void |
writeNBTToStream(net.minecraft.nbt.CompoundNBT tag,
java.io.OutputStream stream) |
public static net.minecraft.nbt.CompoundNBT readNBTFromFile(java.io.File file) throws java.io.IOException
java.io.IOException
public static net.minecraft.nbt.CompoundNBT readNBTFromStream(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public static void writeNBTToFile(net.minecraft.nbt.CompoundNBT tag, java.io.File file) throws java.io.IOException
java.io.IOException
public static void writeNBTToStream(net.minecraft.nbt.CompoundNBT tag, java.io.OutputStream stream) throws java.io.IOException
java.io.IOException