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