net.minecraft.nbt

public final class NbtUtils

rb
net.minecraft.nbt.NbtUtils
net.minecraft.class_2512
net.minecraft.nbt.NbtHelper
net.minecraft.src.C_4943_
net.minecraft.nbt.GameProfileSerializer

Field summary

Modifier and TypeField
private static final Comparator<ListTag>
b
YXZ_LISTTAG_INT_COMPARATOR
field_27816
BLOCK_POS_COMPARATOR
f_178008_
private static final Comparator<ListTag>
c
YXZ_LISTTAG_DOUBLE_COMPARATOR
field_27817
ENTITY_POS_COMPARATOR
f_178009_
public static final String
a
SNBT_DATA_TAG
field_33224
DATA_KEY
f_178007_
private static final char
d
PROPERTIES_START
field_33225
LEFT_CURLY_BRACKET
f_178010_
private static final char
e
PROPERTIES_END
field_33226
RIGHT_CURLY_BRACKET
f_178011_
private static final String
f
ELEMENT_SEPARATOR
field_33227
COMMA
f_178012_
private static final char
g
KEY_VALUE_SEPARATOR
field_33228
COLON
f_178013_
private static final com.google.common.base.Splitter
h
COMMA_SPLITTER
field_27818
COMMA_SPLITTER
f_178014_
private static final com.google.common.base.Splitter
i
COLON_SPLITTER
field_27819
COLON_SPLITTER
f_178015_
private static final org.slf4j.Logger
j
LOGGER
field_11582
LOGGER
f_129200_
private static final int
k
INDENT
field_33229
field_33229
f_178016_
private static final int
l
NOT_FOUND
field_33230
field_33230
f_178017_

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static com.mojang.authlib.GameProfile
a(qp arg0)
readGameProfile(CompoundTag arg0)
method_10683(class_2487 arg0)
toGameProfile(NbtCompound nbt)
m_129228_(C_4917_ p_129229_)
public static CompoundTag
a(qp arg0, com.mojang.authlib.GameProfile arg1)
writeGameProfile(CompoundTag arg0, com.mojang.authlib.GameProfile arg1)
method_10684(class_2487 arg0, com.mojang.authlib.GameProfile arg1)
writeGameProfile(NbtCompound nbt, com.mojang.authlib.GameProfile profile)
m_129230_(C_4917_ p_129231_, com.mojang.authlib.GameProfile p_129232_)
public static boolean
a(ri arg0, ri arg1, boolean arg2)
compareNbt(Tag arg0, Tag arg1, boolean arg2)
method_10687(class_2520 arg0, class_2520 arg1, boolean arg2)
matches(NbtElement standard, NbtElement subject, boolean ignoreListOrder)
m_129235_(C_4950_ p_129236_, C_4950_ p_129237_, boolean p_129238_)
public static IntArrayTag
a(UUID arg0)
createUUID(UUID arg0)
method_25929(UUID arg0)
fromUuid(UUID uuid)
m_129226_(UUID p_129227_)
public static UUID
a(ri arg0)
loadUUID(Tag arg0)
method_25930(class_2520 arg0)
toUuid(NbtElement element)
m_129233_(C_4950_ p_129234_)
public static BlockPos
b(qp arg0)
readBlockPos(CompoundTag arg0)
method_10691(class_2487 arg0)
toBlockPos(NbtCompound nbt)
m_129239_(C_4917_ p_129240_)
public static CompoundTag
a(gp arg0)
writeBlockPos(BlockPos arg0)
method_10692(class_2338 arg0)
fromBlockPos(BlockPos pos)
m_129224_(C_4675_ p_129225_)
public static BlockState
a(ha<cmt> arg0, qp arg1)
readBlockState(HolderGetter<Block> arg0, CompoundTag arg1)
method_10681(class_7871<class_2248> arg0, class_2487 arg1)
toBlockState(RegistryEntryLookup<Block> blockLookup, NbtCompound nbt)
m_247651_(C_254583_<C_1706_> p_256363_, C_4917_ p_250775_)
private static <S extends StateHolder<?, S>, T extends Comparable<T>> S
a(S arg0, czw<T> arg1, String arg2, qp arg3, qp arg4)
setValueHelper(S arg0, Property<T> arg1, String arg2, CompoundTag arg3, CompoundTag arg4)
method_10682(S arg0, class_2769<T> arg1, String arg2, class_2487 arg3, class_2487 arg4)
withProperty(S state, Property<T> property, String key, NbtCompound properties, NbtCompound root)
m_129204_(S p_129205_, C_2097_<T> p_129206_, String p_129207_, C_4917_ p_129208_, C_4917_ p_129209_)
public static CompoundTag
a(cyt arg0)
writeBlockState(BlockState arg0)
method_10686(class_2680 arg0)
fromBlockState(BlockState state)
m_129202_(C_2064_ p_129203_)
public static CompoundTag
a(dtj arg0)
writeFluidState(FluidState arg0)
method_36115(class_3610 arg0)
fromFluidState(FluidState state)
m_178022_(C_2691_ p_178023_)
private static <T extends Comparable<T>> String
a(czw<T> arg0, Comparable<?> arg1)
getName(Property<T> arg0, Comparable<?> arg1)
method_10685(class_2769<T> arg0, Comparable<?> arg1)
nameValue(Property<T> property, Comparable<?> value)
m_129210_(C_2097_<T> p_129211_, Comparable<?> p_129212_)
public static String
b(ri arg0)
prettyPrint(Tag arg0)
method_36118(class_2520 arg0)
toFormattedString(NbtElement nbt)
m_178057_(C_4950_ p_178058_)
public static String
a(ri arg0, boolean arg1)
prettyPrint(Tag arg0, boolean arg1)
method_36117(class_2520 arg0, boolean arg1)
toFormattedString(NbtElement nbt, boolean withArrayContents)
m_178050_(C_4950_ p_178051_, boolean p_178052_)
public static StringBuilder
a(StringBuilder arg0, ri arg1, int arg2, boolean arg3)
prettyPrint(StringBuilder arg0, Tag arg1, int arg2, boolean arg3)
method_36116(StringBuilder arg0, class_2520 arg1, int arg2, boolean arg3)
appendFormattedString(StringBuilder stringBuilder, NbtElement nbt, int depth, boolean withArrayContents)
m_178026_(StringBuilder p_178027_, C_4950_ p_178028_, int p_178029_, boolean p_178030_)
private static StringBuilder
a(int arg0, StringBuilder arg1)
indent(int arg0, StringBuilder arg1)
method_36114(int arg0, StringBuilder arg1)
appendIndent(int depth, StringBuilder stringBuilder)
m_178019_(int p_178020_, StringBuilder p_178021_)
public static CompoundTag
a(com.mojang.datafixers.DataFixer arg0, apc arg1, qp arg2, int arg3)
update(com.mojang.datafixers.DataFixer arg0, DataFixTypes arg1, CompoundTag arg2, int arg3)
method_10688(com.mojang.datafixers.DataFixer arg0, class_4284 arg1, class_2487 arg2, int arg3)
update(com.mojang.datafixers.DataFixer fixer, DataFixTypes fixTypes, NbtCompound compound, int oldVersion)
m_129213_(com.mojang.datafixers.DataFixer p_129214_, C_208_ p_129215_, C_4917_ p_129216_, int p_129217_)
public static CompoundTag
a(com.mojang.datafixers.DataFixer arg0, apc arg1, qp arg2, int arg3, int arg4)
update(com.mojang.datafixers.DataFixer arg0, DataFixTypes arg1, CompoundTag arg2, int arg3, int arg4)
method_10693(com.mojang.datafixers.DataFixer arg0, class_4284 arg1, class_2487 arg2, int arg3, int arg4)
update(com.mojang.datafixers.DataFixer fixer, DataFixTypes fixTypes, NbtCompound compound, int oldVersion, int targetVersion)
m_129218_(com.mojang.datafixers.DataFixer p_129219_, C_208_ p_129220_, C_4917_ p_129221_, int p_129222_, int p_129223_)
public static Component
c(ri arg0)
toPrettyComponent(Tag arg0)
method_32270(class_2520 arg0)
toPrettyPrintedText(NbtElement element)
m_178061_(C_4950_ p_178062_)
public static String
c(qp arg0)
structureToSnbt(CompoundTag arg0)
method_32271(class_2487 arg0)
toNbtProviderString(NbtCompound compound)
m_178063_(C_4917_ p_178064_)
public static CompoundTag
a(String arg0)
snbtToStructure(String arg0)
method_32260(String arg0)
fromNbtProviderString(String string)
m_178024_(String p_178025_)
static CompoundTag
d(qp arg0)
packStructureTemplate(CompoundTag arg0)
method_32273(class_2487 arg0)
toNbtProviderFormat(NbtCompound compound)
m_178067_(C_4917_ p_178068_)
static CompoundTag
e(qp arg0)
unpackStructureTemplate(CompoundTag arg0)
method_32275(class_2487 arg0)
fromNbtProviderFormat(NbtCompound compound)
m_178071_(C_4917_ p_178072_)
static String
f(qp arg0)
packBlockState(CompoundTag arg0)
method_32277(class_2487 arg0)
toNbtProviderFormattedPalette(NbtCompound compound)
m_178075_(C_4917_ p_178076_)
static CompoundTag
b(String arg0)
unpackBlockState(String arg0)
method_32267(String arg0)
fromNbtProviderFormattedPalette(String string)
m_178053_(String p_178054_)