public final class NBTUtil
extends java.lang.Object
Constructor and Description |
---|
NBTUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areNBTEquals(INBTBase nbt1,
INBTBase nbt2,
boolean compareTagList) |
static BlockPos |
readBlockPos(NBTTagCompound tag) |
static IBlockState |
readBlockState(NBTTagCompound tag) |
static com.mojang.authlib.GameProfile |
readGameProfile(NBTTagCompound compound) |
static java.util.UUID |
readUniqueId(NBTTagCompound tag) |
static NBTTagCompound |
update(com.mojang.datafixers.DataFixer p_210822_0_,
com.mojang.datafixers.DSL.TypeReference p_210822_1_,
NBTTagCompound p_210822_2_,
int p_210822_3_) |
static NBTTagCompound |
update(com.mojang.datafixers.DataFixer dataFixer,
com.mojang.datafixers.DSL.TypeReference type,
NBTTagCompound p_210821_2_,
int version,
int newVersion) |
static NBTTagCompound |
writeBlockPos(BlockPos pos) |
static NBTTagCompound |
writeBlockState(IBlockState tag) |
static NBTTagCompound |
writeGameProfile(NBTTagCompound tagCompound,
com.mojang.authlib.GameProfile profile) |
static NBTTagCompound |
writeUniqueId(java.util.UUID uuid) |
@Nullable public static com.mojang.authlib.GameProfile readGameProfile(NBTTagCompound compound)
public static NBTTagCompound writeGameProfile(NBTTagCompound tagCompound, com.mojang.authlib.GameProfile profile)
public static boolean areNBTEquals(@Nullable INBTBase nbt1, @Nullable INBTBase nbt2, boolean compareTagList)
public static NBTTagCompound writeUniqueId(java.util.UUID uuid)
public static java.util.UUID readUniqueId(NBTTagCompound tag)
public static BlockPos readBlockPos(NBTTagCompound tag)
public static NBTTagCompound writeBlockPos(BlockPos pos)
public static IBlockState readBlockState(NBTTagCompound tag)
public static NBTTagCompound writeBlockState(IBlockState tag)
public static NBTTagCompound update(com.mojang.datafixers.DataFixer p_210822_0_, com.mojang.datafixers.DSL.TypeReference p_210822_1_, NBTTagCompound p_210822_2_, int p_210822_3_)
public static NBTTagCompound update(com.mojang.datafixers.DataFixer dataFixer, com.mojang.datafixers.DSL.TypeReference type, NBTTagCompound p_210821_2_, int version, int newVersion)