public class NBTTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.google.gson.Gson |
gson |
Constructor and Description |
---|
NBTTools() |
Modifier and Type | Method and Description |
---|---|
static net.minecraft.nbt.CompoundNBT |
loadNBT(java.io.File file) |
static net.minecraft.nbt.CompoundNBT |
nbtFromMap(java.util.Map<java.lang.String,java.lang.Object> map) |
static java.util.Map<java.lang.String,java.lang.Object> |
nbtToMap(net.minecraft.nbt.CompoundNBT nbt) |
static void |
saveNBT(net.minecraft.nbt.CompoundNBT nbt,
java.io.File file,
boolean compressed) |
static void |
saveNBT(net.minecraft.nbt.CompoundNBT nbt,
java.io.OutputStream out,
boolean compressed) |
static java.lang.String |
serializeBlockSnapshot(net.minecraftforge.common.util.BlockSnapshot snapshot) |
public static java.lang.String serializeBlockSnapshot(net.minecraftforge.common.util.BlockSnapshot snapshot)
public static java.util.Map<java.lang.String,java.lang.Object> nbtToMap(net.minecraft.nbt.CompoundNBT nbt)
public static net.minecraft.nbt.CompoundNBT nbtFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
public static net.minecraft.nbt.CompoundNBT loadNBT(java.io.File file) throws java.io.IOException
java.io.IOException
public static void saveNBT(net.minecraft.nbt.CompoundNBT nbt, java.io.File file, boolean compressed) throws java.io.IOException
java.io.IOException
public static void saveNBT(net.minecraft.nbt.CompoundNBT nbt, java.io.OutputStream out, boolean compressed) throws java.io.IOException
java.io.IOException