Package net.minecraft.nbt
Class NBTUtil
- java.lang.Object
-
- net.minecraft.nbt.NBTUtil
-
public final class NBTUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description NBTUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
compareNbt(INBT p_181123_0_, INBT p_181123_1_, boolean p_181123_2_)
static IntArrayNBT
createUUID(java.util.UUID p_240626_0_)
private static <T extends java.lang.Comparable<T>>
java.lang.StringgetName(Property<T> p_190010_0_, java.lang.Comparable<?> p_190010_1_)
static java.util.UUID
loadUUID(INBT p_186860_0_)
static BlockPos
readBlockPos(CompoundNBT p_186861_0_)
static BlockState
readBlockState(CompoundNBT p_190008_0_)
static com.mojang.authlib.GameProfile
readGameProfile(CompoundNBT p_152459_0_)
private static <S extends StateHolder<?,S>,T extends java.lang.Comparable<T>>
SsetValueHelper(S p_193590_0_, Property<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 p_210821_0_, DefaultTypeReferences p_210821_1_, CompoundNBT p_210821_2_, int p_210821_3_, int p_210821_4_)
static CompoundNBT
writeBlockPos(BlockPos p_186859_0_)
static CompoundNBT
writeBlockState(BlockState p_190009_0_)
static CompoundNBT
writeGameProfile(CompoundNBT p_180708_0_, com.mojang.authlib.GameProfile p_180708_1_)
-
-
-
Method Detail
-
readGameProfile
@Nullable public static com.mojang.authlib.GameProfile readGameProfile(CompoundNBT p_152459_0_)
-
writeGameProfile
public static CompoundNBT writeGameProfile(CompoundNBT p_180708_0_, com.mojang.authlib.GameProfile p_180708_1_)
-
compareNbt
public static boolean compareNbt(@Nullable INBT p_181123_0_, @Nullable INBT p_181123_1_, boolean p_181123_2_)
-
createUUID
public static IntArrayNBT createUUID(java.util.UUID p_240626_0_)
-
loadUUID
public static java.util.UUID loadUUID(INBT p_186860_0_)
-
readBlockPos
public static BlockPos readBlockPos(CompoundNBT p_186861_0_)
-
writeBlockPos
public static CompoundNBT writeBlockPos(BlockPos p_186859_0_)
-
readBlockState
public static BlockState readBlockState(CompoundNBT p_190008_0_)
-
setValueHelper
private static <S extends StateHolder<?,S>,T extends java.lang.Comparable<T>> S setValueHelper(S p_193590_0_, Property<T> p_193590_1_, java.lang.String p_193590_2_, CompoundNBT p_193590_3_, CompoundNBT p_193590_4_)
-
writeBlockState
public static CompoundNBT writeBlockState(BlockState p_190009_0_)
-
getName
private static <T extends java.lang.Comparable<T>> java.lang.String getName(Property<T> p_190010_0_, java.lang.Comparable<?> p_190010_1_)
-
update
public static CompoundNBT update(com.mojang.datafixers.DataFixer p_210822_0_, DefaultTypeReferences p_210822_1_, CompoundNBT p_210822_2_, int p_210822_3_)
-
update
public static CompoundNBT update(com.mojang.datafixers.DataFixer p_210821_0_, DefaultTypeReferences p_210821_1_, CompoundNBT p_210821_2_, int p_210821_3_, int p_210821_4_)
-
-