Uses of Interface
net.minecraft.nbt.NbtElement
Package
Description
The Named Binary Tag (NBT) data format.
-
Uses of NbtElement in net.minecraft.block.entity
Modifier and TypeMethodDescriptionprivate static <T> NbtElement
VaultBlockEntity.encodeValue
(com.mojang.serialization.Codec<T> codec, T value, RegistryWrapper.WrapperLookup registries) -
Uses of NbtElement in net.minecraft.client.option
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.DynamicOps
<NbtElement> HotbarStorageEntry.NBT_OPS
-
Uses of NbtElement in net.minecraft.command
Modifier and TypeMethodDescriptionBlockDataObject.feedbackQuery
(NbtElement element) DataCommandObject.feedbackQuery
(NbtElement element) EntityDataObject.feedbackQuery
(NbtElement element) StorageDataObject.feedbackQuery
(NbtElement element) -
Uses of NbtElement in net.minecraft.command.argument
Modifier and TypeFieldDescriptionprivate final Predicate
<NbtElement> NbtPathArgumentType.FilteredRootNode.matcher
private final RegistryOps
<NbtElement> ItemPredicateArgumentType.class_9445.nbtOps
(package private) final com.mojang.serialization.DynamicOps
<NbtElement> ItemStringReader.nbtOps
private final Predicate
<NbtElement> NbtPathArgumentType.FilteredListElementNode.predicate
private final Predicate
<NbtElement> NbtPathArgumentType.FilteredNamedNode.predicate
Modifier and TypeMethodDescriptionstatic <S> NbtElement
NbtElementArgumentType.getNbtElement
(com.mojang.brigadier.context.CommandContext<S> context, String name) NbtPathArgumentType.AllListElementNode.init()
NbtPathArgumentType.FilteredListElementNode.init()
NbtPathArgumentType.FilteredNamedNode.init()
NbtPathArgumentType.FilteredRootNode.init()
NbtPathArgumentType.IndexedListElementNode.init()
NbtPathArgumentType.NamedNode.init()
NbtPathArgumentType.PathNode.init()
NbtElementArgumentType.parse
(com.mojang.brigadier.StringReader stringReader) (package private) static NbtElement
RegistryEntryArgumentType.parseAsNbt
(com.mojang.brigadier.StringReader stringReader) Modifier and TypeMethodDescriptionNbtPathArgumentType.NbtPath.get
(NbtElement element) default List
<NbtElement> NbtPathArgumentType.PathNode.get
(List<NbtElement> elements) NbtPathArgumentType.NbtPath.getOrInit
(NbtElement element, Supplier<NbtElement> source) default List
<NbtElement> NbtPathArgumentType.PathNode.getOrInit
(List<NbtElement> elements, Supplier<NbtElement> supplier) (package private) static Predicate
<NbtElement> NbtPathArgumentType.getPredicate
(NbtCompound filter) private List
<NbtElement> NbtPathArgumentType.NbtPath.getTerminals
(NbtElement start) default List
<NbtElement> NbtPathArgumentType.PathNode.process
(List<NbtElement> elements, BiConsumer<NbtElement, List<NbtElement>> action) Modifier and TypeMethodDescriptionint
NbtPathArgumentType.AllListElementNode.clear
(NbtElement current) int
NbtPathArgumentType.FilteredListElementNode.clear
(NbtElement current) int
NbtPathArgumentType.FilteredNamedNode.clear
(NbtElement current) int
NbtPathArgumentType.FilteredRootNode.clear
(NbtElement current) int
NbtPathArgumentType.IndexedListElementNode.clear
(NbtElement current) int
NbtPathArgumentType.NamedNode.clear
(NbtElement current) int
NbtPathArgumentType.PathNode.clear
(NbtElement current) ItemPredicateArgumentType.class_9445.componentMatchPredicate
(com.mojang.brigadier.ImmutableStringReader immutableStringReader, ItemPredicateArgumentType.ComponentCheck componentCheck, NbtElement nbtElement) int
NbtPathArgumentType.NbtPath.count
(NbtElement element) ItemPredicateArgumentType.ComponentCheck.createPredicate
(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) ItemPredicateArgumentType.SubPredicateCheck.createPredicate
(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) void
NbtPathArgumentType.AllListElementNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.FilteredListElementNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.FilteredNamedNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.FilteredRootNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.IndexedListElementNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.NamedNode.get
(NbtElement current, List<NbtElement> results) NbtPathArgumentType.NbtPath.get
(NbtElement element) void
NbtPathArgumentType.PathNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.AllListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredNamedNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredRootNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.IndexedListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.NamedNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) NbtPathArgumentType.NbtPath.getOrInit
(NbtElement element, Supplier<NbtElement> source) void
NbtPathArgumentType.PathNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) private List
<NbtElement> NbtPathArgumentType.NbtPath.getTerminals
(NbtElement start) static boolean
NbtPathArgumentType.NbtPath.isTooDeep
(NbtElement element, int depth) int
NbtPathArgumentType.NbtPath.put
(NbtElement element, NbtElement source) int
NbtPathArgumentType.NbtPath.remove
(NbtElement element) int
NbtPathArgumentType.AllListElementNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.FilteredListElementNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.FilteredNamedNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.FilteredRootNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.IndexedListElementNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.NamedNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.PathNode.set
(NbtElement current, Supplier<NbtElement> source) ItemPredicateArgumentType.class_9445.subPredicatePredicate
(com.mojang.brigadier.ImmutableStringReader immutableStringReader, ItemPredicateArgumentType.SubPredicateCheck subPredicateCheck, NbtElement nbtElement) Modifier and TypeMethodDescriptionItemPredicateArgumentType.ComponentCheck.createPredicate
(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) ItemPredicateArgumentType.SubPredicateCheck.createPredicate
(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) private static int
NbtPathArgumentType.NbtPath.forEach
(List<NbtElement> elements, Function<NbtElement, Integer> operation) private static int
NbtPathArgumentType.NbtPath.forEach
(List<NbtElement> elements, Function<NbtElement, Integer> operation) void
NbtPathArgumentType.AllListElementNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.FilteredListElementNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.FilteredNamedNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.FilteredRootNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.IndexedListElementNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.NamedNode.get
(NbtElement current, List<NbtElement> results) default List
<NbtElement> NbtPathArgumentType.PathNode.get
(List<NbtElement> elements) void
NbtPathArgumentType.PathNode.get
(NbtElement current, List<NbtElement> results) void
NbtPathArgumentType.AllListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.AllListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredNamedNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredNamedNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredRootNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.FilteredRootNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.IndexedListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.IndexedListElementNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.NamedNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.NamedNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) NbtPathArgumentType.NbtPath.getOrInit
(NbtElement element, Supplier<NbtElement> source) default List
<NbtElement> NbtPathArgumentType.PathNode.getOrInit
(List<NbtElement> elements, Supplier<NbtElement> supplier) default List
<NbtElement> NbtPathArgumentType.PathNode.getOrInit
(List<NbtElement> elements, Supplier<NbtElement> supplier) void
NbtPathArgumentType.PathNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) void
NbtPathArgumentType.PathNode.getOrInit
(NbtElement current, Supplier<NbtElement> source, List<NbtElement> results) int
NbtPathArgumentType.NbtPath.insert
(int index, NbtCompound compound, List<NbtElement> elements) default List
<NbtElement> NbtPathArgumentType.PathNode.process
(List<NbtElement> elements, BiConsumer<NbtElement, List<NbtElement>> action) default List
<NbtElement> NbtPathArgumentType.PathNode.process
(List<NbtElement> elements, BiConsumer<NbtElement, List<NbtElement>> action) default List
<NbtElement> NbtPathArgumentType.PathNode.process
(List<NbtElement> elements, BiConsumer<NbtElement, List<NbtElement>> action) int
NbtPathArgumentType.AllListElementNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.FilteredListElementNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.FilteredNamedNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.FilteredRootNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.IndexedListElementNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.NamedNode.set
(NbtElement current, Supplier<NbtElement> source) int
NbtPathArgumentType.PathNode.set
(NbtElement current, Supplier<NbtElement> source) -
Uses of NbtElement in net.minecraft.command.argument.packrat
Modifier and TypeFieldDescriptionstatic final ParsingRule
<com.mojang.brigadier.StringReader, NbtElement> NbtParsingRule.INSTANCE
Modifier and TypeMethodDescriptionNbtParsingRule.parse
(ParsingState<com.mojang.brigadier.StringReader> state) Modifier and TypeMethodDescriptionPackratParsing.Callbacks.componentMatchPredicate
(com.mojang.brigadier.ImmutableStringReader reader, C check, NbtElement nbt) PackratParsing.Callbacks.subPredicatePredicate
(com.mojang.brigadier.ImmutableStringReader reader, P check, NbtElement nbt) -
Uses of NbtElement in net.minecraft.entity
Modifier and TypeMethodDescriptionEntityType.streamFromNbt
(List<? extends NbtElement> entityNbtList, World world) -
Uses of NbtElement in net.minecraft.entity.effect
-
Uses of NbtElement in net.minecraft.entity.mob
-
Uses of NbtElement in net.minecraft.entity.passive
-
Uses of NbtElement in net.minecraft.item
Modifier and TypeMethodDescriptionItemStack.encode
(RegistryWrapper.WrapperLookup registries) ItemStack.encode
(RegistryWrapper.WrapperLookup registries, NbtElement prefix) ItemStack.encodeAllowEmpty
(RegistryWrapper.WrapperLookup registries) Modifier and TypeMethodDescriptionItemStack.encode
(RegistryWrapper.WrapperLookup registries, NbtElement prefix) ItemStack.fromNbt
(RegistryWrapper.WrapperLookup registries, NbtElement nbt) -
Uses of NbtElement in net.minecraft.loot.function
Modifier and TypeMethodDescriptionvoid
CopyNbtLootFunction.Operation.execute
(Supplier<NbtElement> itemNbtGetter, NbtElement sourceEntityNbt) abstract void
CopyNbtLootFunction.Operator.merge
(NbtElement itemNbt, NbtPathArgumentType.NbtPath targetPath, List<NbtElement> sourceNbts) Modifier and TypeMethodDescriptionvoid
CopyNbtLootFunction.Operation.execute
(Supplier<NbtElement> itemNbtGetter, NbtElement sourceEntityNbt) abstract void
CopyNbtLootFunction.Operator.merge
(NbtElement itemNbt, NbtPathArgumentType.NbtPath targetPath, List<NbtElement> sourceNbts) -
Uses of NbtElement in net.minecraft.loot.provider.nbt
Modifier and TypeMethodDescriptionContextLootNbtProvider.getNbt
(LootContext context) ContextLootNbtProvider.Target.getNbt
(LootContext context) LootNbtProvider.getNbt
(LootContext context) StorageLootNbtProvider.getNbt
(LootContext context) -
Uses of NbtElement in net.minecraft.nbt
Modifier and TypeClassDescriptionclass
AbstractNbtList<T extends NbtElement>
Represents an abstraction of a mutable NBT list which holds elements of the same type.interface
NbtType<T extends NbtElement>
Represents an NBT type.static interface
NbtType.OfFixedSize<T extends NbtElement>
Represents an NBT type whose elements have a fixed size, such as primitives.static interface
NbtType.OfVariableSize<T extends NbtElement>
Represents an NBT type whose elements can have a variable size, such as lists.Modifier and TypeClassDescriptionclass
AbstractNbtList<T extends NbtElement>
Represents an abstraction of a mutable NBT list which holds elements of the same type.class
Represents an NBT number.class
Represents an NBT byte.class
Represents an NBT byte array.class
Represents an NBT compound object.class
Represents an NBT 64-bit floating-point number.class
Represents the NBT end value.class
Represents an NBT 32-bit floating-point number.class
Represents an NBT 32-bit integer.class
Represents an NBT 32-bit integer array.class
Represents a mutable NBT list.class
Represents an NBT 64-bit integer.class
Represents an NBT 64-bit integer array.class
Represents an NBT 16-bit integer.class
Represents an NBT string.Modifier and TypeFieldDescriptionprivate final Map
<String, NbtElement> NbtCompound.entries
private final List
<NbtElement> NbtList.value
Modifier and TypeMethodDescriptionNbtByteArray.copy()
Returns an NBT element of equal value that won't change with this element.NbtElement.copy()
Returns an NBT element of equal value that won't change with this element.NbtOps.createBoolean
(boolean bool) NbtOps.createByte
(byte byte2) NbtOps.createByteList
(ByteBuffer byteBuffer) NbtOps.createDouble
(double double2) NbtOps.createFloat
(float float2) NbtOps.createInt
(int int2) NbtOps.createIntList
(IntStream intStream) NbtOps.createList
(Stream<NbtElement> stream) NbtOps.createLong
(long long2) NbtOps.createLongList
(LongStream longStream) NbtOps.createMap
(Stream<com.mojang.datafixers.util.Pair<NbtElement, NbtElement>> stream) NbtOps.createNumeric
(Number number) NbtOps.createShort
(short short2) NbtOps.createString
(String string) NbtOps.empty()
static NbtElement
NbtHelper.fromBlockPos
(BlockPos pos) Returns the serialized block position.Returns the element associated with the key from this compound, ornull
if there is none.NbtList.get
(int int2) NbtOps.BasicMerger.getResult()
NbtOps.ByteArrayMerger.getResult()
NbtOps.CompoundListMerger.getResult()
NbtOps.IntArrayMerger.getResult()
NbtOps.ListMerger.getResult()
NbtOps.LongArrayMerger.getResult()
NbtOps.Merger.getResult()
private static NbtElement
NbtOps.CompoundListMerger.makeMarker
(NbtElement value) protected NbtElement
StringNbtReader.parseArray()
StringNbtReader.parseElement()
Returns the parsed NBT element.protected NbtElement
StringNbtReader.parseElementPrimitive()
private NbtElement
StringNbtReader.parseElementPrimitiveArray()
private NbtElement
StringNbtReader.parseList()
private NbtElement
StringNbtReader.parsePrimitive
(String input) NbtCompound.put
(String key, NbtElement element) Puts an element to this compound.(package private) static NbtElement
NbtCompound.read
(NbtType<?> reader, String key, DataInput input, NbtSizeTracker tracker) static NbtElement
NbtIo.read
(DataInput input, NbtSizeTracker tracker) Reads an NBT element frominput
.private static NbtElement
NbtIo.readElement
(DataInput input, NbtSizeTracker tracker) private static NbtElement
NbtIo.readElement
(DataInput input, NbtSizeTracker tracker, byte typeId) NbtList.remove
(int int2) NbtOps.remove
(NbtElement nbtElement, String string) NbtList.set
(int int2, NbtElement nbtElement) private static NbtElement
NbtOps.unpackMarker
(NbtCompound nbt) Modifier and TypeMethodDescriptionprotected com.mojang.serialization.DataResult
<NbtElement> NbtOps.MapBuilder.build
(NbtCompound nbtCompound, NbtElement nbtElement) protected Set
<Map.Entry<String, NbtElement>> NbtCompound.entrySet()
com.mojang.serialization.DataResult
<Consumer<Consumer<NbtElement>>> NbtOps.getList
(NbtElement nbtElement) com.mojang.serialization.DataResult
<com.mojang.serialization.MapLike<NbtElement>> NbtOps.getMap
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Consumer<BiConsumer<NbtElement, NbtElement>>> NbtOps.getMapEntries
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Consumer<BiConsumer<NbtElement, NbtElement>>> NbtOps.getMapEntries
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Stream<com.mojang.datafixers.util.Pair<NbtElement, NbtElement>>> NbtOps.getMapValues
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Stream<com.mojang.datafixers.util.Pair<NbtElement, NbtElement>>> NbtOps.getMapValues
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Stream<NbtElement>> NbtOps.getStream
(NbtElement nbtElement) com.mojang.serialization.RecordBuilder
<NbtElement> NbtOps.mapBuilder()
com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToList
(NbtElement nbtElement, List<NbtElement> list) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToList
(NbtElement nbtElement, NbtElement nbtElement2) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, com.mojang.serialization.MapLike<NbtElement> mapLike) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, Map<NbtElement, NbtElement> map) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, NbtElement nbtElement2, NbtElement nbtElement3) Modifier and TypeMethodDescriptionvoid
NbtList.add
(int int2, NbtElement nbtElement) abstract boolean
AbstractNbtList.addElement
(int index, NbtElement element) Insertselement
atindex
.boolean
NbtByteArray.addElement
(int index, NbtElement element) Insertselement
atindex
.boolean
NbtIntArray.addElement
(int index, NbtElement element) Insertselement
atindex
.boolean
NbtList.addElement
(int index, NbtElement element) Insertselement
atindex
.boolean
NbtLongArray.addElement
(int index, NbtElement element) Insertselement
atindex
.protected NbtCompound
NbtOps.MapBuilder.append
(String string, NbtElement nbtElement, NbtCompound nbtCompound) static StringBuilder
NbtHelper.appendFormattedString
(StringBuilder stringBuilder, NbtElement nbt, int depth, boolean withArrayContents) protected com.mojang.serialization.DataResult
<NbtElement> NbtOps.MapBuilder.build
(NbtCompound nbtCompound, NbtElement nbtElement) private boolean
NbtList.canAdd
(NbtElement element) <U> U
NbtOps.convertTo
(com.mojang.serialization.DynamicOps<U> dynamicOps, NbtElement nbtElement) private static NbtCompound
NbtOps.CompoundListMerger.createMarkerNbt
(NbtElement value) private static Optional
<NbtOps.Merger> NbtOps.createMerger
(NbtElement nbt) com.mojang.serialization.DataResult
<ByteBuffer> NbtOps.getByteBuffer
(NbtElement nbtElement) com.mojang.serialization.DataResult
<IntStream> NbtOps.getIntStream
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Consumer<Consumer<NbtElement>>> NbtOps.getList
(NbtElement nbtElement) com.mojang.serialization.DataResult
<LongStream> NbtOps.getLongStream
(NbtElement nbtElement) com.mojang.serialization.DataResult
<com.mojang.serialization.MapLike<NbtElement>> NbtOps.getMap
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Consumer<BiConsumer<NbtElement, NbtElement>>> NbtOps.getMapEntries
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Stream<com.mojang.datafixers.util.Pair<NbtElement, NbtElement>>> NbtOps.getMapValues
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Number> NbtOps.getNumberValue
(NbtElement nbtElement) com.mojang.serialization.DataResult
<Stream<NbtElement>> NbtOps.getStream
(NbtElement nbtElement) com.mojang.serialization.DataResult
<String> NbtOps.getStringValue
(NbtElement nbtElement) private static NbtElement
NbtOps.CompoundListMerger.makeMarker
(NbtElement value) static boolean
NbtHelper.matches
(@Nullable NbtElement standard, @Nullable NbtElement subject, boolean ignoreListOrder) Returns whetherstandard
is a subset ofsubject
.NbtOps.BasicMerger.merge
(NbtElement nbt) NbtOps.ByteArrayMerger.merge
(NbtElement nbt) NbtOps.CompoundListMerger.merge
(NbtElement nbt) NbtOps.IntArrayMerger.merge
(NbtElement nbt) NbtOps.ListMerger.merge
(NbtElement nbt) NbtOps.LongArrayMerger.merge
(NbtElement nbt) NbtOps.Merger.merge
(NbtElement nbt) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToList
(NbtElement nbtElement, List<NbtElement> list) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToList
(NbtElement nbtElement, NbtElement nbtElement2) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, com.mojang.serialization.MapLike<NbtElement> mapLike) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, Map<NbtElement, NbtElement> map) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, NbtElement nbtElement2, NbtElement nbtElement3) NbtCompound.put
(String key, NbtElement element) Puts an element to this compound.NbtOps.remove
(NbtElement nbtElement, String string) NbtList.set
(int int2, NbtElement nbtElement) abstract boolean
AbstractNbtList.setElement
(int index, NbtElement element) Sets the element atindex
toelement
.boolean
NbtByteArray.setElement
(int index, NbtElement element) Sets the element atindex
toelement
.boolean
NbtIntArray.setElement
(int index, NbtElement element) Sets the element atindex
toelement
.boolean
NbtList.setElement
(int index, NbtElement element) Sets the element atindex
toelement
.boolean
NbtLongArray.setElement
(int index, NbtElement element) Sets the element atindex
toelement
.static String
NbtHelper.toFormattedString
(NbtElement nbt) Returns the human-readable, non-deserializable representation ofnbt
.static String
NbtHelper.toFormattedString
(NbtElement nbt, boolean withArrayContents) Returns the human-readable, non-deserializable representation ofnbt
.static Text
NbtHelper.toPrettyPrintedText
(NbtElement element) Returns the pretty-printed text representation ofelement
.static UUID
NbtHelper.toUuid
(NbtElement element) Deserializes an NBT element into aUUID
.private static void
NbtCompound.write
(String key, NbtElement element, DataOutput output) static void
NbtIo.write
(NbtElement nbt, DataOutput output) Writes thenbt
tooutput
.static void
NbtIo.writeForPacket
(NbtElement nbt, DataOutput output) Writes thenbt
tooutput
.static void
NbtIo.writeUnsafe
(NbtElement nbt, DataOutput output) Writes thenbt
tooutput
.Modifier and TypeMethodDescriptionNbtOps.createList
(Stream<NbtElement> stream) NbtOps.createMap
(Stream<com.mojang.datafixers.util.Pair<NbtElement, NbtElement>> stream) NbtOps.createMap
(Stream<com.mojang.datafixers.util.Pair<NbtElement, NbtElement>> stream) default NbtOps.Merger
NbtOps.Merger.merge
(Iterable<NbtElement> nbts) default NbtOps.Merger
NbtOps.Merger.merge
(Stream<NbtElement> nbts) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToList
(NbtElement nbtElement, List<NbtElement> list) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, com.mojang.serialization.MapLike<NbtElement> mapLike) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, Map<NbtElement, NbtElement> map) com.mojang.serialization.DataResult
<NbtElement> NbtOps.mergeToMap
(NbtElement nbtElement, Map<NbtElement, NbtElement> map) ModifierConstructorDescriptionprotected
NbtCompound
(Map<String, NbtElement> entries) (package private)
NbtList
(List<NbtElement> list, byte type) -
Uses of NbtElement in net.minecraft.nbt.scanner
-
Uses of NbtElement in net.minecraft.nbt.visitor
Modifier and TypeMethodDescriptionNbtOrderedStringFormatter.apply
(NbtElement element) Returns the stringified NBTelement
.NbtTextFormatter.apply
(NbtElement element) Returns the textified NBTelement
.StringNbtWriter.apply
(NbtElement element) Returns the stringified NBTelement
.private Text
NbtTextFormatter.createSubElementText
(NbtElement element, boolean indent) -
Uses of NbtElement in net.minecraft.network
Modifier and TypeMethodDescriptionstatic @Nullable NbtElement
PacketByteBuf.readNbt
(ByteBuf buf, NbtSizeTracker sizeTracker) PacketByteBuf.readNbt
(NbtSizeTracker sizeTracker) Reads an NBT element from this buf.Modifier and TypeMethodDescriptionstatic void
PacketByteBuf.writeNbt
(ByteBuf buf, @Nullable NbtElement nbt) PacketByteBuf.writeNbt
(@Nullable NbtElement nbt) Writes an NBT element to this buf.Modifier and TypeMethodDescription<T> T
PacketByteBuf.decode
(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec) Deprecated.<T> T
PacketByteBuf.decode
(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, NbtSizeTracker sizeTracker) Deprecated.<T> PacketByteBuf
PacketByteBuf.encode
(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, T value) Deprecated. -
Uses of NbtElement in net.minecraft.network.codec
Modifier and TypeFieldDescriptionstatic final PacketCodec
<ByteBuf, NbtElement> PacketCodecs.NBT_ELEMENT
A codec for an NBT element of up to0x200000L
bytes.static final PacketCodec
<ByteBuf, NbtElement> PacketCodecs.UNLIMITED_NBT_ELEMENT
A codec for an NBT element of unlimited size.Modifier and TypeMethodDescriptionstatic PacketCodec
<ByteBuf, NbtElement> PacketCodecs.nbt
(Supplier<NbtSizeTracker> sizeTracker) Returns a codec for an NBT element. -
Uses of NbtElement in net.minecraft.predicate
-
Uses of NbtElement in net.minecraft.registry
Modifier and TypeFieldDescriptionprivate final Optional
<NbtElement> SerializableRegistries.SerializedRegistryEntry.data
The field for thedata
record component.Modifier and TypeMethodDescriptionSerializableRegistries.SerializedRegistryEntry.data()
Returns the value of thedata
record component.Modifier and TypeMethodDescriptionstatic void
SerializableRegistries.forEachSyncedRegistry
(com.mojang.serialization.DynamicOps<NbtElement> nbtOps, DynamicRegistryManager registryManager, Set<VersionedIdentifier> knownPacks, BiConsumer<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> callback) private static <T> void
SerializableRegistries.serialize
(com.mojang.serialization.DynamicOps<NbtElement> nbtOps, RegistryLoader.Entry<T> entry, DynamicRegistryManager registryManager, Set<VersionedIdentifier> knownPacks, BiConsumer<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> callback) ModifierConstructorDescriptionSerializedRegistryEntry
(Identifier identifier, Optional<NbtElement> optional) -
Uses of NbtElement in net.minecraft.server.command
Modifier and TypeMethodDescriptionstatic NbtElement
DataCommand.getNbt
(NbtPathArgumentType.NbtPath path, DataCommandObject object) Modifier and TypeMethodDescriptionprivate static List
<NbtElement> DataCommand.getValues
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType) private static List
<NbtElement> DataCommand.getValuesByPath
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType) private static List
<NbtElement> DataCommand.mapValues
(List<NbtElement> list, DataCommand.Processor processor) Modifier and TypeMethodDescriptionprivate static int
DataCommand.executeModify
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<NbtElement> elements) private static ServerCommandSource
ExecuteCommand.executeStoreData
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, IntFunction<NbtElement> nbtSetter, boolean requestResult) private static List
<NbtElement> DataCommand.mapValues
(List<NbtElement> list, DataCommand.Processor processor) int
DataCommand.ModifyOperation.modify
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NbtCompound sourceNbt, NbtPathArgumentType.NbtPath path, List<NbtElement> elements) -
Uses of NbtElement in net.minecraft.server.function
-
Uses of NbtElement in net.minecraft.structure
-
Uses of NbtElement in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionprivate static @Nullable NbtElement
LevelStorage.loadCompactLevelData
(Path path) Returns the compact version of the NBT for the level datafile
. -
Uses of NbtElement in net.minecraft.world.storage
Modifier and TypeMethodDescriptioncom.mojang.serialization.Dynamic
<NbtElement> ChunkPosKeyedStorage.update
(com.mojang.serialization.Dynamic<NbtElement> nbt, int oldVersion) Modifier and TypeMethodDescriptioncom.mojang.serialization.Dynamic
<NbtElement> ChunkPosKeyedStorage.update
(com.mojang.serialization.Dynamic<NbtElement> nbt, int oldVersion) private void
SerializingRegionBasedStorage.update
(ChunkPos pos, RegistryOps<NbtElement> ops, @Nullable NbtCompound nbt) -
Uses of NbtElement in net.minecraft.world.tick
Modifier and TypeMethodDescription