Uses of Interface
net.minecraft.nbt.NbtElement
Package
Description
The Named Binary Tag (NBT) data format.
-
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 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) 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) int
NbtPathArgumentType.NbtPath.count
(NbtElement element) 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) Modifier and TypeMethodDescriptionprivate 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.entity
Modifier and TypeMethodDescriptionEntityType.streamFromNbt
(List<? extends NbtElement> entityNbtList, World world) -
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 TypeMethodDescriptionvoid
ItemStack.setSubNbt
(String key, NbtElement element) Sets the given NBT element in the item stack's custom NBT at the specified key. -
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 TypeMethodDescription@Nullable NbtElement
ContextLootNbtProvider.getNbt
(LootContext context) @Nullable NbtElement
ContextLootNbtProvider.Target.getNbt
(LootContext context) @Nullable NbtElement
LootNbtProvider.getNbt
(LootContext context) @Nullable NbtElement
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()
@Nullable NbtElement
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) @Nullable NbtElement
NbtCompound.put
(String key, NbtElement element) Puts an element to this compound.(package private) static NbtElement
NbtCompound.read
(NbtType<?> reader, String key, DataInput input, NbtTagSizeTracker nbtTagSizeTracker) static NbtElement
NbtIo.read
(DataInput input, NbtTagSizeTracker tracker) Reads an NBT element frominput
.private static NbtElement
NbtIo.readElement
(DataInput input, NbtTagSizeTracker tracker) private static NbtElement
NbtIo.readElement
(DataInput input, NbtTagSizeTracker 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) 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, NbtElement nbtElement2, NbtElement nbtElement3) protected Map<String,
NbtElement> NbtCompound.toMap()
Returns the compound as an unmodifiable map.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, NbtElement nbtElement2, NbtElement nbtElement3) @Nullable NbtElement
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
.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) 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
. -
Uses of NbtElement in net.minecraft.network
Modifier and TypeMethodDescription@Nullable NbtElement
PacketByteBuf.readNbt
(NbtTagSizeTracker sizeTracker) Reads an NBT element from this buf.Modifier and TypeMethodDescriptionPacketByteBuf.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, NbtTagSizeTracker 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.packet.s2c.config
Modifier and TypeFieldDescriptionprivate static final RegistryOps<NbtElement>
DynamicRegistriesS2CPacket.VANILLA_REGISTRY_OPS
-
Uses of NbtElement in net.minecraft.predicate
-
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
Modifier and TypeMethodDescriptionprivate static String
CommandFunction.Macro.toString
(NbtElement nbt) -
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
.Modifier and TypeMethodDescription(package private) static BiFunction<Path,
com.mojang.datafixers.DataFixer, com.mojang.datafixers.util.Pair<SaveProperties, DimensionOptionsRegistryHolder.DimensionsConfig>> LevelStorage.createLevelDataParser
(com.mojang.serialization.DynamicOps<NbtElement> ops, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionOptionsRegistry, com.mojang.serialization.Lifecycle lifecycle) @Nullable com.mojang.datafixers.util.Pair<SaveProperties,
DimensionOptionsRegistryHolder.DimensionsConfig> LevelStorage.Session.readLevelProperties
(com.mojang.serialization.DynamicOps<NbtElement> ops, DataConfiguration dataConfiguration, Registry<DimensionOptions> dimensionOptionsRegistry, com.mojang.serialization.Lifecycle lifecycle) -
Uses of NbtElement in net.minecraft.world.tick
Modifier and TypeMethodDescription