net.minecraft.nbt

public final class NbtUtils

vm
net.minecraft.nbt.NbtUtils
net.minecraft.class_2512
net.minecraft.nbt.NbtHelper
net.minecraft.nbt.GameProfileSerializer

Field summary

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

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)
matches(NbtElement standard, NbtElement subject, boolean ignoreListOrder)
public static IntArrayTag
a(UUID arg0)
createUUID(UUID arg0)
method_25929(UUID arg0)
fromUuid(UUID uuid)
public static UUID
a(vu arg0)
loadUUID(Tag arg0)
method_25930(class_2520 arg0)
toUuid(NbtElement element)
public static Optional<BlockPos>
a(ux arg0, String arg1)
readBlockPos(CompoundTag arg0, String arg1)
method_10691(class_2487 arg0, String arg1)
toBlockPos(NbtCompound nbt, String key)
public static Tag
a(jh arg0)
writeBlockPos(BlockPos arg0)
method_10692(class_2338 arg0)
fromBlockPos(BlockPos pos)
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)
toBlockState(RegistryEntryLookup<Block> blockLookup, NbtCompound nbt)
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)
withProperty(S state, Property<T> property, String key, NbtCompound properties, NbtCompound root)
public static CompoundTag
a(dxv arg0)
writeBlockState(BlockState arg0)
method_10686(class_2680 arg0)
fromBlockState(BlockState state)
public static CompoundTag
a(etx arg0)
writeFluidState(FluidState arg0)
method_36115(class_3610 arg0)
fromFluidState(FluidState state)
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)
nameValue(Property<T> property, Comparable<?> value)
public static String
b(vu arg0)
prettyPrint(Tag arg0)
method_36118(class_2520 arg0)
toFormattedString(NbtElement nbt)
public static String
a(vu arg0, boolean arg1)
prettyPrint(Tag arg0, boolean arg1)
method_36117(class_2520 arg0, boolean arg1)
toFormattedString(NbtElement nbt, boolean withArrayContents)
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)
appendFormattedString(StringBuilder stringBuilder, NbtElement nbt, int depth, boolean withArrayContents)
private static StringBuilder
a(int arg0, StringBuilder arg1)
indent(int arg0, StringBuilder arg1)
method_36114(int arg0, StringBuilder arg1)
appendIndent(int depth, StringBuilder stringBuilder)
public static Component
c(vu arg0)
toPrettyComponent(Tag arg0)
method_32270(class_2520 arg0)
toPrettyPrintedText(NbtElement element)
public static String
a(ux arg0)
structureToSnbt(CompoundTag arg0)
method_32271(class_2487 arg0)
toNbtProviderString(NbtCompound compound)
public static CompoundTag
a(String arg0)
snbtToStructure(String arg0)
method_32260(String arg0)
fromNbtProviderString(String string)
static CompoundTag
b(ux arg0)
packStructureTemplate(CompoundTag arg0)
method_32273(class_2487 arg0)
toNbtProviderFormat(NbtCompound compound)
static CompoundTag
c(ux arg0)
unpackStructureTemplate(CompoundTag arg0)
method_32275(class_2487 arg0)
fromNbtProviderFormat(NbtCompound compound)
static String
d(ux arg0)
packBlockState(CompoundTag arg0)
method_32277(class_2487 arg0)
toNbtProviderFormattedPalette(NbtCompound compound)
static CompoundTag
b(String arg0)
unpackBlockState(String arg0)
method_32267(String arg0)
fromNbtProviderFormattedPalette(String string)
public static CompoundTag
e(ux arg0)
addCurrentDataVersion(CompoundTag arg0)
method_48310(class_2487 arg0)
putDataVersion(NbtCompound nbt)
public static CompoundTag
a(ux arg0, int arg1)
addDataVersion(CompoundTag arg0, int arg1)
method_48308(class_2487 arg0, int arg1)
putDataVersion(NbtCompound nbt, int dataVersion)
public static int
b(ux arg0, int arg1)
getDataVersion(CompoundTag arg0, int arg1)
method_48309(class_2487 arg0, int arg1)
getDataVersion(NbtCompound nbt, int fallback)