public final class NBTUtil
extends java.lang.Object
Constructor and Description |
---|
NBTUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areNBTEquals(NBTBase nbt1,
NBTBase nbt2,
boolean compareTagList) |
static NBTTagCompound |
createPosTag(BlockPos pos)
Creates a new NBTTagCompound from a BlockPos.
|
static NBTTagCompound |
createUUIDTag(java.util.UUID uuid)
Creates a new NBTTagCompound which stores a UUID.
|
static BlockPos |
getPosFromTag(NBTTagCompound tag)
Creates a BlockPos object from the data stored in the passed NBTTagCompound.
|
static java.util.UUID |
getUUIDFromTag(NBTTagCompound tag)
Reads a UUID from the passed NBTTagCompound.
|
static IBlockState |
readBlockState(NBTTagCompound tag)
Reads a blockstate from the given tag.
|
static GameProfile |
readGameProfileFromNBT(NBTTagCompound compound)
Reads and returns a GameProfile that has been saved to the passed in NBTTagCompound
|
static NBTTagCompound |
writeBlockState(NBTTagCompound tag,
IBlockState state)
Writes the given blockstate to the given tag.
|
static NBTTagCompound |
writeGameProfile(NBTTagCompound tagCompound,
GameProfile profile)
Writes a GameProfile to an NBTTagCompound.
|
public static GameProfile readGameProfileFromNBT(NBTTagCompound compound)
public static NBTTagCompound writeGameProfile(NBTTagCompound tagCompound, GameProfile profile)
public static NBTTagCompound createUUIDTag(java.util.UUID uuid)
public static java.util.UUID getUUIDFromTag(NBTTagCompound tag)
public static BlockPos getPosFromTag(NBTTagCompound tag)
public static NBTTagCompound createPosTag(BlockPos pos)
public static IBlockState readBlockState(NBTTagCompound tag)
public static NBTTagCompound writeBlockState(NBTTagCompound tag, IBlockState state)