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(INBT nbt1,
INBT nbt2,
boolean compareTagList) |
private static <T extends java.lang.Comparable<T>> |
getName(IProperty<T> p_190010_0_,
java.lang.Comparable<?> p_190010_1_) |
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) |
private static <S extends IStateHolder<S>,T extends java.lang.Comparable<T>> |
setValueHelper(S p_193590_0_,
IProperty<T> p_193590_1_,
java.lang.String p_193590_2_,
CompoundNBT p_193590_3_,
CompoundNBT p_193590_4_) |
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)
private static <S extends IStateHolder<S>,T extends java.lang.Comparable<T>> S setValueHelper(S p_193590_0_, IProperty<T> p_193590_1_, java.lang.String p_193590_2_, CompoundNBT p_193590_3_, CompoundNBT p_193590_4_)
public static CompoundNBT writeBlockState(BlockState tag)
private static <T extends java.lang.Comparable<T>> java.lang.String getName(IProperty<T> p_190010_0_, java.lang.Comparable<?> p_190010_1_)
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)