Package net.minecraft.nbt
Class NBTUtil
java.lang.Object
net.minecraft.nbt.NBTUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
compareNbt
(INBT p_181123_0_, INBT p_181123_1_, boolean p_181123_2_) static IntArrayNBT
createUUID
(UUID p_240626_0_) private static <T extends Comparable<T>>
StringgetName
(Property<T> p_190010_0_, Comparable<?> p_190010_1_) static UUID
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 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 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_)
-
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_)
-