net.minecraft.nbt

public final class NbtHelper

net.minecraft.nbt.NbtUtils
net.minecraft.class_2512
net.minecraft.nbt.NbtHelper

Field summary

Modifier and TypeField
private static final Comparator<NbtList>
YXZ_LISTTAG_INT_COMPARATOR
field_27816
BLOCK_POS_COMPARATOR
private static final Comparator<NbtList>
YXZ_LISTTAG_DOUBLE_COMPARATOR
field_27817
ENTITY_POS_COMPARATOR
private static final com.mojang.serialization.Codec<RegistryKey<Block>>
BLOCK_NAME_CODEC
field_57978
BLOCK_KEY_CODEC
public static final String
SNBT_DATA_TAG
field_33224
DATA_KEY
private static final char
PROPERTIES_START
field_33225
LEFT_CURLY_BRACKET
private static final char
PROPERTIES_END
field_33226
RIGHT_CURLY_BRACKET
private static final String
ELEMENT_SEPARATOR
field_33227
COMMA
private static final char
KEY_VALUE_SEPARATOR
field_33228
COLON
private static final com.google.common.base.Splitter
COMMA_SPLITTER
field_27818
COMMA_SPLITTER
private static final com.google.common.base.Splitter
COLON_SPLITTER
field_27819
COLON_SPLITTER
private static final org.slf4j.Logger
LOGGER
field_11582
LOGGER
private static final int
INDENT
field_33229
field_33229
private static final int
NOT_FOUND
field_33230
field_33230

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static boolean
compareNbt(Tag expected, Tag actual, boolean partialListMatches)
method_10687(class_2520 arg0, class_2520 arg1, boolean arg2)
matches(NbtElement standard, NbtElement subject, boolean ignoreListOrder)
public static BlockState
readBlockState(HolderGetter<Block> blocks, CompoundTag tag)
method_10681(class_7871<class_2248> arg0, class_2487 arg1)
toBlockState(RegistryEntryLookup<Block> blockLookup, NbtCompound nbt)
private static <S extends State<?, S>, T extends Comparable<T>> S
setValueHelper(S result, Property<T> property, String key, CompoundTag properties, CompoundTag tag)
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)
private static void
writeStateProperties(StateHolder<?, ?> state, CompoundTag tag)
method_1_2913(class_2688<?, ?> arg0, class_2487 arg1)
putProperties(State<?, ?> state, NbtCompound tagOut)
public static NbtCompound
writeBlockState(BlockState state)
method_10686(class_2680 arg0)
fromBlockState(BlockState state)
public static NbtCompound
writeFluidState(FluidState state)
method_36115(class_3610 arg0)
fromFluidState(FluidState state)
public static String
prettyPrint(Tag tag, boolean withBinaryBlobs)
method_36117(class_2520 arg0, boolean arg1)
toFormattedString(NbtElement nbt, boolean withArrayContents)
public static StringBuilder
prettyPrint(StringBuilder builder, Tag input, int indent, boolean withBinaryBlobs)
method_36116(StringBuilder arg0, class_2520 arg1, int arg2, boolean arg3)
appendFormattedString(StringBuilder stringBuilder, NbtElement nbt, int depth, boolean withArrayContents)
private static StringBuilder
indent(int indent, StringBuilder builder)
method_36114(int arg0, StringBuilder arg1)
appendIndent(int depth, StringBuilder stringBuilder)
public static Text
toPrettyComponent(Tag tag)
method_32270(class_2520 arg0)
toPrettyPrintedText(NbtElement element)
public static String
structureToSnbt(CompoundTag structure)
method_32271(class_2487 arg0)
toNbtProviderString(NbtCompound compound)
public static NbtCompound
snbtToStructure(String snbt)
method_32260(String arg0)
fromNbtProviderString(String string)
static NbtCompound
packStructureTemplate(CompoundTag snbt)
method_32273(class_2487 arg0)
toNbtProviderFormat(NbtCompound compound)
static NbtCompound
unpackStructureTemplate(CompoundTag template)
method_32275(class_2487 arg0)
fromNbtProviderFormat(NbtCompound compound)
static String
packBlockState(CompoundTag compound)
method_32277(class_2487 arg0)
toNbtProviderFormattedPalette(NbtCompound compound)
static NbtCompound
unpackBlockState(String compound)
method_32267(String arg0)
fromNbtProviderFormattedPalette(String string)
public static NbtCompound
addCurrentDataVersion(CompoundTag tag)
method_48310(class_2487 arg0)
putDataVersion(NbtCompound nbt)
public static NbtCompound
addDataVersion(CompoundTag tag, int version)
method_48308(class_2487 arg0, int arg1)
putDataVersion(NbtCompound nbt, int dataVersion)
public static <T> com.mojang.serialization.Dynamic<T>
addDataVersion(com.mojang.serialization.Dynamic<T> tag, int version)
method_73083(com.mojang.serialization.Dynamic<T> arg0, int arg1)
putDataVersion(com.mojang.serialization.Dynamic<T> dynamic, int dataVersion)
public static void
addCurrentDataVersion(ValueOutput output)
method_71568(class_11372 arg0)
writeDataVersion(WriteView view)
public static void
addDataVersion(ValueOutput output, int version)
method_71569(class_11372 arg0, int arg1)
writeDataVersion(WriteView view, int dataVersion)
public static int
getDataVersion(CompoundTag tag)
method_76039(class_2487 arg0)
getDataVersion(NbtCompound nbt)
public static int
getDataVersion(CompoundTag tag, int _default)
method_48309(class_2487 arg0, int arg1)
getDataVersion(NbtCompound nbt, int fallback)
public static int
getDataVersion(com.mojang.serialization.Dynamic<?> dynamic)
method_1_1641(com.mojang.serialization.Dynamic<?> arg0)
getDataVersion(com.mojang.serialization.Dynamic<?> dynamic)
public static int
getDataVersion(com.mojang.serialization.Dynamic<?> dynamic, int _default)
method_68084(com.mojang.serialization.Dynamic<?> arg0, int arg1)
getDataVersion(com.mojang.serialization.Dynamic<?> dynamic, int fallback)
private static void
lambda$unpackBlockState$0(CompoundTag arg0, String arg1, String arg2)
method_32263(class_2487 arg0, String arg1, String arg2)
method_32263(NbtCompound arg0, String arg1, String property)
private static void
lambda$packBlockState$0(StringBuilder arg0, CompoundTag arg1)
method_32262(StringBuilder arg0, class_2487 arg1)
method_32262(StringBuilder arg0, NbtCompound properties)
private static String
lambda$packBlockState$1(Map$Entry arg0)
method_68595(Map$Entry arg0)
method_68595(Map$Entry entry)
private static NbtList
lambda$unpackStructureTemplate$1(Map arg0, CompoundTag arg1)
method_32261(Map arg0, class_2487 arg1)
method_32261(Map arg0, NbtCompound nbt)
private static String
lambda$unpackStructureTemplate$2(CompoundTag arg0, String arg1)
method_68596(class_2487 arg0, String arg1)
method_68596(NbtCompound arg0, String key)
private static Stream
lambda$unpackStructureTemplate$0(Tag arg0)
method_68597(class_2520 arg0)
method_68597(NbtElement nbt)
private static void
lambda$packStructureTemplate$4(ListTag arg0, CompoundTag arg1)
method_32265(class_2499 arg0, class_2487 arg1)
method_32265(NbtList arg0, NbtCompound nbt)
private static Optional
lambda$packStructureTemplate$3(CompoundTag arg0)
method_32278(class_2487 arg0)
method_32278(NbtCompound nbt)
private static Optional
lambda$packStructureTemplate$2(CompoundTag arg0)
method_32279(class_2487 arg0)
method_32279(NbtCompound nbt)
private static void
lambda$packStructureTemplate$1(ListTag arg0, ListTag arg1, ListTag arg2)
method_32266(class_2499 arg0, class_2499 arg1, class_2499 arg2)
method_32266(NbtList arg0, NbtList arg1, NbtList nbt)
private static Stream
lambda$packStructureTemplate$0(Tag arg0)
method_68598(class_2520 arg0)
method_68598(NbtElement nbt)
private static void
lambda$writeStateProperties$0(CompoundTag arg0, Property$Value arg1)
method_1_2912(class_2487 arg0, class_2769$class_4933 arg1)
method_1_2912(NbtCompound arg0, Property$Value value)
private static double
lambda$static$5(ListTag arg0)
method_32264(class_2499 arg0)
method_32264(NbtList nbt)
private static double
lambda$static$4(ListTag arg0)
method_32268(class_2499 arg0)
method_32268(NbtList nbt)
private static double
lambda$static$3(ListTag arg0)
method_32269(class_2499 arg0)
method_32269(NbtList nbt)
private static int
lambda$static$2(ListTag arg0)
method_32272(class_2499 arg0)
method_32272(NbtList nbt)
private static int
lambda$static$1(ListTag arg0)
method_32274(class_2499 arg0)
method_32274(NbtList nbt)
private static int
lambda$static$0(ListTag arg0)
method_32276(class_2499 arg0)
method_32276(NbtList nbt)