net.minecraft.nbt

public final class NbtUtils

vm
net.minecraft.nbt.NbtUtils
net.minecraft.class_2512
net.minecraft.unmapped.C_scnprxmz
net.minecraft.nbt.NbtHelper
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
f_ulcmredn
BLOCK_POS_COMPARATOR
YXZ_NBT_LIST_INT_COMPARATOR
f_178008_
private static final Comparator<ListTag>
c
YXZ_LISTTAG_DOUBLE_COMPARATOR
field_27817
f_qwavgrli
ENTITY_POS_COMPARATOR
YXZ_NBT_LIST_DOUBLE_COMPARATOR
f_178009_
public static final String
a
SNBT_DATA_TAG
field_33224
f_vozbuqnt
DATA_KEY
SNBT_DATA_TAG
f_178007_
private static final char
d
PROPERTIES_START
field_33225
f_bwlxlgju
LEFT_CURLY_BRACKET
PROPERTIES_START
f_178010_
private static final char
e
PROPERTIES_END
field_33226
f_rzewsfob
RIGHT_CURLY_BRACKET
PROPERTIES_END
f_178011_
private static final String
f
ELEMENT_SEPARATOR
field_33227
f_bgbshawg
COMMA
ELEMENT_SEPARATOR
f_178012_
private static final char
g
KEY_VALUE_SEPARATOR
field_33228
f_cnsjzewg
COLON
KEY_VALUE_SEPARATOR
f_178013_
private static final com.google.common.base.Splitter
h
COMMA_SPLITTER
field_27818
f_rokxnpke
COMMA_SPLITTER
COMMA_SPLITTER
f_178014_
private static final com.google.common.base.Splitter
i
COLON_SPLITTER
field_27819
f_jdttbsso
COLON_SPLITTER
KEY_VALUE_SPLITTER
f_178015_
private static final org.slf4j.Logger
j
LOGGER
field_11582
f_jktlnznm
LOGGER
LOGGER
f_129200_
private static final int
k
INDENT
field_33229
f_lkpzlozb
field_33229
INDENT
f_178016_
private static final int
l
NOT_FOUND
field_33230
f_wsezkkqa
field_33230
NOT_FOUND
f_178017_

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static boolean
a(vu arg0, vu arg1, boolean arg2)
compareNbt(Tag arg0, Tag arg1, boolean arg2)
method_10687(class_2520 arg0, class_2520 arg1, boolean arg2)
m_wqklvkdy(C_oivssbvb arg0, C_oivssbvb arg1, boolean arg2)
matches(NbtElement standard, NbtElement subject, boolean ignoreListOrder)
matches(NbtElement nbtA, NbtElement nbtB, boolean equalValue)
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)
m_pxvpkbfz(UUID arg0)
fromUuid(UUID uuid)
fromUuid(UUID uuid)
m_129226_(UUID p_129227_)
public static UUID
a(vu arg0)
loadUUID(Tag arg0)
method_25930(class_2520 arg0)
m_nvmuisif(C_oivssbvb arg0)
toUuid(NbtElement element)
toUuid(NbtElement nbt)
m_129233_(C_4950_ p_129234_)
public static Optional<BlockPos>
a(ux arg0, String arg1)
readBlockPos(CompoundTag arg0, String arg1)
method_10691(class_2487 arg0, String arg1)
m_skmtimil(C_hhlwcnih arg0, String arg1)
toBlockPos(NbtCompound nbt, String key)
toBlockPos(NbtCompound compound, String key)
m_129239_(C_4917_ p_129240_, String p_328737_)
public static Tag
a(jh arg0)
writeBlockPos(BlockPos arg0)
method_10692(class_2338 arg0)
m_ykgtsmrr(C_hynzadkk arg0)
fromBlockPos(BlockPos pos)
fromBlockPos(BlockPos pos)
m_129224_(C_4675_ p_129225_)
public static BlockState
a(jr<dkm> arg0, ux arg1)
readBlockState(HolderGetter<Block> arg0, CompoundTag arg1)
method_10681(class_7871<class_2248> arg0, class_2487 arg1)
m_tlmpthxr(C_pzdchrcy<C_mmxmpdoq> arg0, C_hhlwcnih arg1)
toBlockState(RegistryEntryLookup<Block> blockLookup, NbtCompound nbt)
toBlockState(HolderProvider<Block> blockProvider, NbtCompound compound)
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, dyx<T> arg1, String arg2, ux arg3, ux 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)
m_fhefxmke(S arg0, C_vzlztuyw<T> arg1, String arg2, C_hhlwcnih arg3, C_hhlwcnih arg4)
withProperty(S state, Property<T> property, String key, NbtCompound properties, NbtCompound root)
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(dxv arg0)
writeBlockState(BlockState arg0)
method_10686(class_2680 arg0)
m_qgchuptq(C_txtbiemp arg0)
fromBlockState(BlockState state)
fromBlockState(BlockState state)
m_129202_(C_2064_ p_129203_)
public static CompoundTag
a(etx arg0)
writeFluidState(FluidState arg0)
method_36115(class_3610 arg0)
m_wcjizhwl(C_xqketiuf arg0)
fromFluidState(FluidState state)
fromFluidState(FluidState state)
m_178022_(C_2691_ p_178023_)
private static <T extends Comparable<T>> String
a(dyx<T> arg0, Comparable<?> arg1)
getName(Property<T> arg0, Comparable<?> arg1)
method_10685(class_2769<T> arg0, Comparable<?> arg1)
m_owyzwhdz(C_vzlztuyw<T> arg0, Comparable<?> arg1)
nameValue(Property<T> property, Comparable<?> value)
nameValue(Property<T> property, Comparable<?> value)
m_129210_(C_2097_<T> p_129211_, Comparable<?> p_129212_)
public static String
b(vu arg0)
prettyPrint(Tag arg0)
method_36118(class_2520 arg0)
m_xcadefud(C_oivssbvb arg0)
toFormattedString(NbtElement nbt)
toFormattedString(NbtElement nbt)
m_178057_(C_4950_ p_178058_)
public static String
a(vu arg0, boolean arg1)
prettyPrint(Tag arg0, boolean arg1)
method_36117(class_2520 arg0, boolean arg1)
m_phkofnda(C_oivssbvb arg0, boolean arg1)
toFormattedString(NbtElement nbt, boolean withArrayContents)
toFormattedString(NbtElement nbt, boolean withArrayContents)
m_178050_(C_4950_ p_178051_, boolean p_178052_)
public static StringBuilder
a(StringBuilder arg0, vu 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)
m_zhfgfedi(StringBuilder arg0, C_oivssbvb arg1, int arg2, boolean arg3)
appendFormattedString(StringBuilder stringBuilder, NbtElement nbt, int depth, boolean withArrayContents)
appendFormattedString(StringBuilder builder, 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)
m_xxlbqbxa(int arg0, StringBuilder arg1)
appendIndent(int depth, StringBuilder stringBuilder)
appendIndent(int depth, StringBuilder builder)
m_178019_(int p_178020_, StringBuilder p_178021_)
public static Component
c(vu arg0)
toPrettyComponent(Tag arg0)
method_32270(class_2520 arg0)
m_rawecpam(C_oivssbvb arg0)
toPrettyPrintedText(NbtElement element)
toPrettyPrintedText(NbtElement nbt)
m_178061_(C_4950_ p_178062_)
public static String
a(ux arg0)
structureToSnbt(CompoundTag arg0)
method_32271(class_2487 arg0)
m_zvkxwrvc(C_hhlwcnih arg0)
toNbtProviderString(NbtCompound compound)
toPrettyPrintedString(NbtCompound nbt)
m_178063_(C_4917_ p_178064_)
public static CompoundTag
a(String arg0)
snbtToStructure(String arg0)
method_32260(String arg0)
m_pblkkiox(String arg0)
fromNbtProviderString(String string)
fromSnbt(String snbt)
m_178024_(String p_178025_)
static CompoundTag
b(ux arg0)
packStructureTemplate(CompoundTag arg0)
method_32273(class_2487 arg0)
m_vqnuasws(C_hhlwcnih arg0)
toNbtProviderFormat(NbtCompound compound)
packStructureTemplate(NbtCompound nbt)
m_178067_(C_4917_ p_178068_)
static CompoundTag
c(ux arg0)
unpackStructureTemplate(CompoundTag arg0)
method_32275(class_2487 arg0)
m_qwktpkba(C_hhlwcnih arg0)
fromNbtProviderFormat(NbtCompound compound)
unpackStructureTemplate(NbtCompound nbt)
m_178071_(C_4917_ p_178072_)
static String
d(ux arg0)
packBlockState(CompoundTag arg0)
method_32277(class_2487 arg0)
m_gvvozwih(C_hhlwcnih arg0)
toNbtProviderFormattedPalette(NbtCompound compound)
blockStateNbtToString(NbtCompound nbt)
m_178075_(C_4917_ p_178076_)
static CompoundTag
b(String arg0)
unpackBlockState(String arg0)
method_32267(String arg0)
m_hsglylsh(String arg0)
fromNbtProviderFormattedPalette(String string)
blockStateStringToNbt(String blockStateString)
m_178053_(String p_178054_)
public static CompoundTag
e(ux arg0)
addCurrentDataVersion(CompoundTag arg0)
method_48310(class_2487 arg0)
m_zwrbkegd(C_hhlwcnih arg0)
putDataVersion(NbtCompound nbt)
putCurrentDataVersion(NbtCompound nbt)
m_264171_(C_4917_ p_265050_)
public static CompoundTag
a(ux arg0, int arg1)
addDataVersion(CompoundTag arg0, int arg1)
method_48308(class_2487 arg0, int arg1)
m_kgknygvd(C_hhlwcnih arg0, int arg1)
putDataVersion(NbtCompound nbt, int dataVersion)
putDataVersion(NbtCompound nbt, int dataVersion)
m_264046_(C_4917_ p_265534_, int p_265686_)
public static int
b(ux arg0, int arg1)
getDataVersion(CompoundTag arg0, int arg1)
method_48309(class_2487 arg0, int arg1)
m_wxpyuwwc(C_hhlwcnih arg0, int arg1)
getDataVersion(NbtCompound nbt, int fallback)
getDataVersion(NbtCompound nbt, int defaultVersion)
m_264487_(C_4917_ p_265397_, int p_265399_)