public final class NBTUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
NBTUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areNBTEquals(NBTBase nbt1,
NBTBase nbt2,
boolean compareTagList) |
static NBTTagCompound |
createPosTag(BlockPos pos) |
static NBTTagCompound |
createUUIDTag(java.util.UUID uuid) |
private static <T extends java.lang.Comparable<T>> |
getName(IProperty<T> p_190010_0_,
java.lang.Comparable<?> p_190010_1_) |
static BlockPos |
getPosFromTag(NBTTagCompound tag) |
static java.util.UUID |
getUUIDFromTag(NBTTagCompound tag) |
static IBlockState |
readBlockState(NBTTagCompound tag) |
static com.mojang.authlib.GameProfile |
readGameProfileFromNBT(NBTTagCompound compound) |
private static <T extends java.lang.Comparable<T>> |
setValueHelper(IBlockState p_193590_0_,
IProperty<T> p_193590_1_,
java.lang.String p_193590_2_,
NBTTagCompound p_193590_3_,
NBTTagCompound p_193590_4_) |
static NBTTagCompound |
writeBlockState(NBTTagCompound tag,
IBlockState state) |
static NBTTagCompound |
writeGameProfile(NBTTagCompound tagCompound,
com.mojang.authlib.GameProfile profile) |
@Nullable public static com.mojang.authlib.GameProfile readGameProfileFromNBT(NBTTagCompound compound)
public static NBTTagCompound writeGameProfile(NBTTagCompound tagCompound, com.mojang.authlib.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)
private static <T extends java.lang.Comparable<T>> IBlockState setValueHelper(IBlockState p_193590_0_, IProperty<T> p_193590_1_, java.lang.String p_193590_2_, NBTTagCompound p_193590_3_, NBTTagCompound p_193590_4_)
public static NBTTagCompound writeBlockState(NBTTagCompound tag, IBlockState state)
private static <T extends java.lang.Comparable<T>> java.lang.String getName(IProperty<T> p_190010_0_, java.lang.Comparable<?> p_190010_1_)