Package net.minecraft.nbt
Class NBTUtil
java.lang.Object
net.minecraft.nbt.NBTUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancompareNbt(INBT p_181123_0_, INBT p_181123_1_, boolean p_181123_2_) static IntArrayNBTcreateUUID(UUID p_240626_0_) private static <T extends Comparable<T>>
StringgetName(Property<T> p_190010_0_, Comparable<?> p_190010_1_) static UUIDstatic BlockPosreadBlockPos(CompoundNBT p_186861_0_) static BlockStatereadBlockState(CompoundNBT p_190008_0_) static com.mojang.authlib.GameProfilereadGameProfile(CompoundNBT p_152459_0_) private static <S extends StateHolder<?,S>, T extends Comparable<T>>
SsetValueHelper(S p_193590_0_, Property<T> p_193590_1_, String p_193590_2_, CompoundNBT p_193590_3_, CompoundNBT p_193590_4_) static CompoundNBTupdate(com.mojang.datafixers.DataFixer p_210822_0_, DefaultTypeReferences p_210822_1_, CompoundNBT p_210822_2_, int p_210822_3_) static CompoundNBTupdate(com.mojang.datafixers.DataFixer p_210821_0_, DefaultTypeReferences p_210821_1_, CompoundNBT p_210821_2_, int p_210821_3_, int p_210821_4_) static CompoundNBTwriteBlockPos(BlockPos p_186859_0_) static CompoundNBTwriteBlockState(BlockState p_190009_0_) static CompoundNBTwriteGameProfile(CompoundNBT p_180708_0_, com.mojang.authlib.GameProfile p_180708_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
NBTUtil
public NBTUtil()
-
-
Method Details
-
readGameProfile
-
writeGameProfile
public static CompoundNBT writeGameProfile(CompoundNBT p_180708_0_, com.mojang.authlib.GameProfile p_180708_1_) -
compareNbt
-
createUUID
-
loadUUID
-
readBlockPos
-
writeBlockPos
-
readBlockState
-
setValueHelper
private static <S extends StateHolder<?,S>, S setValueHelperT extends Comparable<T>> (S p_193590_0_, Property<T> p_193590_1_, String p_193590_2_, CompoundNBT p_193590_3_, CompoundNBT p_193590_4_) -
writeBlockState
-
getName
private static <T extends Comparable<T>> String getName(Property<T> p_190010_0_, 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_)
-