Uses of Class
net.minecraft.nbt.NbtCompound
Packages that use NbtCompound
Package
Description
The Named Binary Tag (NBT) data format.
-
Uses of NbtCompound in net.minecraft.block.entity
Methods in net.minecraft.block.entity that return NbtCompoundModifier and TypeMethodDescriptionfinal NbtCompound
BlockEntity.createComponentlessNbt
(RegistryWrapper.WrapperLookup registries) final NbtCompound
BlockEntity.createNbt
(RegistryWrapper.WrapperLookup registries) Returns the block entity's NBT data.final NbtCompound
BlockEntity.createNbtWithIdentifyingData
(RegistryWrapper.WrapperLookup registries) Returns the block entity's NBT data with identifying data.BannerBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.BeaconBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.BlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.BrushableBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.CampfireBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.ConduitBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.CreakingHeartBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.DecoratedPotBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.EndGatewayBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.JigsawBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.MobSpawnerBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.PistonBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.SignBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.SkullBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.StructureBlockBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.TestBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.TestInstanceBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.TrialSpawnerBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.VaultBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.Methods in net.minecraft.block.entity with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic @Nullable BlockEntity
BlockEntity.createFromNbt
(BlockPos pos, BlockState state, NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Returns the new block entity loaded fromnbt
, ornull
if it fails.static BlockPos
BlockEntity.posFromNbt
(ChunkPos chunkPos, NbtCompound nbt) Returns the block position fromnbt
. -
Uses of NbtCompound in net.minecraft.block.spawner
Fields in net.minecraft.block.spawner declared as NbtCompoundModifier and TypeFieldDescriptionprivate final NbtCompound
MobSpawnerEntry.entity
The field for theentity
record component.Methods in net.minecraft.block.spawner that return NbtCompoundModifier and TypeMethodDescriptionMobSpawnerEntry.entity()
Returns the value of theentity
record component.MobSpawnerEntry.getNbt()
TrialSpawnerData.getSpawnDataNbt
(TrialSpawnerState state) Method parameters in net.minecraft.block.spawner with type arguments of type NbtCompoundModifier and TypeMethodDescriptionprivate static <T extends Entity>
MobSpawnerEntryTrialSpawnerConfigs.createEntry
(EntityType<T> entityType, Consumer<NbtCompound> nbtConsumer) private static <T extends Entity>
MobSpawnerEntryTrialSpawnerConfigs.createEntry
(EntityType<T> entityType, Consumer<NbtCompound> nbtConsumer, @Nullable RegistryKey<LootTable> equipmentTable) Constructors in net.minecraft.block.spawner with parameters of type NbtCompoundModifierConstructorDescriptionMobSpawnerEntry
(NbtCompound nbtCompound, Optional<MobSpawnerEntry.CustomSpawnRules> optional, Optional<EquipmentTable> optional2) -
Uses of NbtCompound in net.minecraft.client
Methods in net.minecraft.client with parameters of type NbtCompoundModifier and TypeMethodDescriptionprivate void
Keyboard.copyBlock
(BlockState state, BlockPos pos, @Nullable NbtCompound nbt) private void
Keyboard.copyEntity
(Identifier id, Vec3d pos, @Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.client.network
Fields in net.minecraft.client.network with type parameters of type NbtCompoundModifier and TypeFieldDescriptionprivate @Nullable Consumer
<NbtCompound> DataQueryHandler.callback
Methods in net.minecraft.client.network that return NbtCompoundMethods in net.minecraft.client.network with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic ServerInfo
ServerInfo.fromNbt
(NbtCompound root) boolean
DataQueryHandler.handleQueryResponse
(int transactionId, @Nullable NbtCompound nbt) Method parameters in net.minecraft.client.network with type arguments of type NbtCompoundModifier and TypeMethodDescriptionprivate int
DataQueryHandler.nextQuery
(Consumer<NbtCompound> callback) void
DataQueryHandler.queryBlockNbt
(BlockPos pos, Consumer<NbtCompound> callback) void
DataQueryHandler.queryEntityNbt
(int entityNetworkId, Consumer<NbtCompound> callback) -
Uses of NbtCompound in net.minecraft.client.option
Methods in net.minecraft.client.option that return NbtCompoundMethods in net.minecraft.client.option with parameters of type NbtCompound -
Uses of NbtCompound in net.minecraft.command
Fields in net.minecraft.command with type parameters of type NbtCompoundModifier and TypeFieldDescriptionprivate final Map
<String, NbtCompound> DataCommandStorage.PersistentState.map
Methods in net.minecraft.command that return NbtCompoundModifier and TypeMethodDescriptionDataCommandStorage.get
(Identifier id) BlockDataObject.getNbt()
DataCommandObject.getNbt()
EntityDataObject.getNbt()
StorageDataObject.getNbt()
Methods in net.minecraft.command with parameters of type NbtCompoundModifier and TypeMethodDescriptionvoid
DataCommandStorage.PersistentState.set
(String name, NbtCompound nbt) void
DataCommandStorage.set
(Identifier id, NbtCompound nbt) void
BlockDataObject.setNbt
(NbtCompound nbt) void
DataCommandObject.setNbt
(NbtCompound nbt) void
EntityDataObject.setNbt
(NbtCompound nbt) void
StorageDataObject.setNbt
(NbtCompound nbt) Constructor parameters in net.minecraft.command with type arguments of type NbtCompound -
Uses of NbtCompound in net.minecraft.command.argument
Fields in net.minecraft.command.argument declared as NbtCompoundModifier and TypeFieldDescriptionprivate @Nullable NbtCompound
BlockArgumentParser.data
private final @Nullable NbtCompound
BlockStateArgument.data
private final NbtCompound
NbtPathArgumentType.FilteredListElementNode.filter
private final NbtCompound
NbtPathArgumentType.FilteredNamedNode.filter
private final @Nullable NbtCompound
BlockArgumentParser.BlockResult.nbt
The field for thenbt
record component.private final @Nullable NbtCompound
BlockArgumentParser.TagResult.nbt
The field for thenbt
record component.private final @Nullable NbtCompound
BlockPredicateArgumentType.StatePredicate.nbt
private final @Nullable NbtCompound
BlockPredicateArgumentType.TagPredicate.nbt
Methods in net.minecraft.command.argument that return NbtCompoundModifier and TypeMethodDescriptionstatic <S> NbtCompound
NbtCompoundArgumentType.getNbtCompound
(com.mojang.brigadier.context.CommandContext<S> context, String name) BlockArgumentParser.BlockResult.nbt()
Returns the value of thenbt
record component.BlockArgumentParser.TagResult.nbt()
Returns the value of thenbt
record component.NbtCompoundArgumentType.parse
(com.mojang.brigadier.StringReader stringReader) Methods in net.minecraft.command.argument with parameters of type NbtCompoundModifier and TypeMethodDescription(package private) static Predicate
<NbtElement> NbtPathArgumentType.getPredicate
(NbtCompound filter) int
NbtPathArgumentType.NbtPath.insert
(int index, NbtCompound compound, List<NbtElement> elements) Constructors in net.minecraft.command.argument with parameters of type NbtCompoundModifierConstructorDescriptionBlockResult
(BlockState blockState, Map<Property<?>, Comparable<?>> map, @Nullable NbtCompound nbtCompound) BlockStateArgument
(BlockState state, Set<Property<?>> properties, @Nullable NbtCompound data) FilteredListElementNode
(NbtCompound filter) FilteredNamedNode
(String name, NbtCompound filter) FilteredRootNode
(NbtCompound filter) StatePredicate
(BlockState state, Set<Property<?>> properties, @Nullable NbtCompound nbt) (package private)
TagPredicate
(RegistryEntryList<Block> tag, Map<String, String> properties, @Nullable NbtCompound nbt) TagResult
(RegistryEntryList<Block> registryEntryList, Map<String, String> map, @Nullable NbtCompound nbtCompound) -
Uses of NbtCompound in net.minecraft.component.type
Fields in net.minecraft.component.type declared as NbtCompoundMethods in net.minecraft.component.type that return NbtCompoundModifier and TypeMethodDescriptionNbtComponent.copyNbt()
private static NbtCompound
BlockPredicatesComponent.getNbt
(BlockEntity blockEntity, DynamicRegistryManager registries, ErrorReporter errorReporter) NbtComponent.getNbt()
Deprecated.Methods in net.minecraft.component.type with parameters of type NbtCompoundModifier and TypeMethodDescriptionboolean
NbtComponent.matches
(NbtCompound nbt) static NbtComponent
NbtComponent.of
(NbtCompound nbt) static void
NbtComponent.set
(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) Method parameters in net.minecraft.component.type with type arguments of type NbtCompoundModifier and TypeMethodDescriptionNbtComponent.apply
(Consumer<NbtCompound> nbtConsumer) static void
NbtComponent.set
(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) Constructors in net.minecraft.component.type with parameters of type NbtCompound -
Uses of NbtCompound in net.minecraft.data
Methods in net.minecraft.data that return NbtCompoundModifier and TypeMethodDescriptionSnbtProvider.Tweaker.write
(String name, NbtCompound nbt) private NbtCompound
SnbtProvider.write
(String key, NbtCompound compound) Methods in net.minecraft.data with parameters of type NbtCompoundModifier and TypeMethodDescriptionSnbtProvider.Tweaker.write
(String name, NbtCompound nbt) private NbtCompound
SnbtProvider.write
(String key, NbtCompound compound) -
Uses of NbtCompound in net.minecraft.data.validate
Methods in net.minecraft.data.validate that return NbtCompoundModifier and TypeMethodDescriptionstatic NbtCompound
StructureValidatorProvider.update
(String name, NbtCompound nbt) StructureValidatorProvider.write
(String name, NbtCompound nbt) Methods in net.minecraft.data.validate with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic NbtCompound
StructureValidatorProvider.update
(String name, NbtCompound nbt) StructureValidatorProvider.write
(String name, NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.datafixer
Methods in net.minecraft.datafixer that return NbtCompoundModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer dataFixer, NbtCompound nbt, int oldVersion) Returnsnbt
updated fromoldVersion
to the current version.DataFixTypes.update
(com.mojang.datafixers.DataFixer dataFixer, NbtCompound nbt, int oldVersion, int newVersion) Returnsnbt
updated fromoldVersion
tonewVersion
.Methods in net.minecraft.datafixer with parameters of type NbtCompoundModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer dataFixer, NbtCompound nbt, int oldVersion) Returnsnbt
updated fromoldVersion
to the current version.DataFixTypes.update
(com.mojang.datafixers.DataFixer dataFixer, NbtCompound nbt, int oldVersion, int newVersion) Returnsnbt
updated fromoldVersion
tonewVersion
. -
Uses of NbtCompound in net.minecraft.datafixer.fix
Methods in net.minecraft.datafixer.fix that return NbtCompoundModifier and TypeMethodDescriptionprivate static NbtCompound
private static NbtCompound
TrialSpawnerConfigInRegistryFix.Replacements.removeDefaults
(NbtCompound nbt) Methods in net.minecraft.datafixer.fix with parameters of type NbtCompoundModifier and TypeMethodDescriptionprivate static NbtCompound
TrialSpawnerConfigInRegistryFix.Replacements.removeDefaults
(NbtCompound nbt) private static com.mojang.serialization.Dynamic
<NbtElement> TrialSpawnerConfigInRegistryFix.Replacements.toDynamic
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.dialog.action
Fields in net.minecraft.dialog.action with type parameters of type NbtCompoundModifier and TypeFieldDescriptionprivate final Optional
<NbtCompound> DynamicCustomDialogAction.additions
The field for theadditions
record component.Methods in net.minecraft.dialog.action that return types with arguments of type NbtCompoundModifier and TypeMethodDescriptionDynamicCustomDialogAction.additions()
Returns the value of theadditions
record component.Constructor parameters in net.minecraft.dialog.action with type arguments of type NbtCompoundModifierConstructorDescriptionDynamicCustomDialogAction
(Identifier identifier, Optional<NbtCompound> optional) -
Uses of NbtCompound in net.minecraft.entity
Fields in net.minecraft.entity declared as NbtCompoundMethods in net.minecraft.entity with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic void
Bucketable.copyDataFromNbt
(MobEntity entity, NbtCompound nbt) Deprecated.void
Bucketable.copyDataFromNbt
(NbtCompound nbt) EntityType.loadEntityWithPassengers
(NbtCompound nbt, World world, SpawnReason reason, Function<Entity, Entity> entityProcessor) -
Uses of NbtCompound in net.minecraft.entity.boss
Methods in net.minecraft.entity.boss that return NbtCompoundMethods in net.minecraft.entity.boss with parameters of type NbtCompoundModifier and TypeMethodDescriptionvoid
BossBarManager.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) -
Uses of NbtCompound in net.minecraft.entity.data
Fields in net.minecraft.entity.data with type parameters of type NbtCompoundModifier and TypeFieldDescriptionstatic final TrackedDataHandler
<NbtCompound> TrackedDataHandlerRegistry.NBT_COMPOUND
-
Uses of NbtCompound in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type NbtCompoundModifier and TypeMethodDescriptionvoid
AxolotlEntity.copyDataFromNbt
(NbtCompound nbt) void
FishEntity.copyDataFromNbt
(NbtCompound nbt) void
TadpoleEntity.copyDataFromNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.player
Fields in net.minecraft.entity.player with type parameters of type NbtCompoundModifier and TypeFieldDescriptionprotected static final TrackedData
<NbtCompound> PlayerEntity.LEFT_SHOULDER_ENTITY
protected static final TrackedData
<NbtCompound> PlayerEntity.RIGHT_SHOULDER_ENTITY
Methods in net.minecraft.entity.player that return NbtCompoundModifier and TypeMethodDescriptionPlayerEntity.getShoulderEntityLeft()
PlayerEntity.getShoulderEntityRight()
Methods in net.minecraft.entity.player with parameters of type NbtCompoundModifier and TypeMethodDescriptionboolean
PlayerEntity.addShoulderEntity
(NbtCompound entityNbt) private void
PlayerEntity.dropShoulderEntity
(NbtCompound entityNbt) protected void
PlayerEntity.setShoulderEntityLeft
(NbtCompound entityNbt) protected void
PlayerEntity.setShoulderEntityRight
(NbtCompound entityNbt) private void
PlayerEntity.updateShoulderEntity
(NbtCompound entityNbt) -
Uses of NbtCompound in net.minecraft.loot.function
Fields in net.minecraft.loot.function declared as NbtCompoundMethods in net.minecraft.loot.function with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic ConditionalLootFunction.Builder
<?> SetCustomDataLootFunction.builder
(NbtCompound nbt) Deprecated.Constructors in net.minecraft.loot.function with parameters of type NbtCompoundModifierConstructorDescriptionprivate
SetCustomDataLootFunction
(List<LootCondition> conditions, NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.nbt
Fields in net.minecraft.nbt with type parameters of type NbtCompoundModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<NbtCompound> NbtCompound.CODEC
static final com.mojang.serialization.Codec
<NbtCompound> StringNbtReader.NBT_COMPOUND_CODEC
static final com.mojang.serialization.Codec
<NbtCompound> StringNbtReader.STRINGIFIED_CODEC
static final NbtType
<NbtCompound> NbtCompound.TYPE
Methods in net.minecraft.nbt that return NbtCompoundModifier and TypeMethodDescriptionprotected NbtCompound
NbtOps.MapBuilder.append
(String string, NbtElement nbtElement, NbtCompound nbtCompound) private static NbtCompound
NbtList.convertToCompound
(NbtElement nbt) NbtCompound.copy()
NbtCompound.copyFrom
(NbtCompound source) Merges the entries ofsource
to this compound.private static NbtCompound
StringNbtReader.expectCompound
(com.mojang.brigadier.StringReader reader, NbtElement nbtElement) static NbtCompound
NbtHelper.fromBlockState
(BlockState state) Returns the serialized block state.static NbtCompound
NbtHelper.fromFluidState
(FluidState state) Returns the serialized fluid state.(package private) static NbtCompound
NbtHelper.fromNbtProviderFormat
(NbtCompound compound) (package private) static NbtCompound
NbtHelper.fromNbtProviderFormattedPalette
(String string) static NbtCompound
NbtHelper.fromNbtProviderString
(String string) Returns thestring
parsed as an NBT provider-formatted NBT compound.NbtCompound.getCompoundOrEmpty
(String key) NbtList.getCompoundOrEmpty
(int index) protected NbtCompound
NbtOps.MapBuilder.initBuilder()
static NbtCompound
NbtHelper.putDataVersion
(NbtCompound nbt) static NbtCompound
NbtHelper.putDataVersion
(NbtCompound nbt, int dataVersion) static @Nullable NbtCompound
Reads an NBT compound from the file atpath
.static NbtCompound
NbtIo.readCompound
(DataInput input) Reads an NBT compound frominput
.static NbtCompound
NbtIo.readCompound
(DataInput input, NbtSizeTracker tracker) Reads an NBT compound frominput
.static NbtCompound
StringNbtReader.readCompound
(String snbt) static NbtCompound
StringNbtReader.readCompoundAsArgument
(com.mojang.brigadier.StringReader reader) static NbtCompound
NbtIo.readCompressed
(InputStream stream, NbtSizeTracker tagSizeTracker) Reads an NBT compound from Gzip-compressedstream
.static NbtCompound
NbtIo.readCompressed
(Path path, NbtSizeTracker tagSizeTracker) Reads an NBT compound from Gzip-compressed file atpath
.protected NbtCompound
NbtCompound.shallowCopy()
(package private) static NbtCompound
NbtHelper.toNbtProviderFormat
(NbtCompound compound) Methods in net.minecraft.nbt that return types with arguments of type NbtCompoundModifier and TypeMethodDescriptionNbtCompound.asCompound()
default Optional
<NbtCompound> NbtElement.asCompound()
NbtCompound.getCompound
(String key) Returns the compound associated withkey
, or an empty compound if there is no compound stored with the key.NbtList.getCompound
(int index) Returns the compound atindex
, or an empty compound if the index is out of bounds or if this is not a list of compounds.NbtCompound.getNbtType()
Returns the NBT type definition of this NBT element.NbtList.streamCompounds()
Methods in net.minecraft.nbt with parameters of type NbtCompoundModifier and TypeMethodDescriptionprotected NbtCompound
NbtOps.MapBuilder.append
(String string, NbtElement nbtElement, NbtCompound nbtCompound) protected com.mojang.serialization.DataResult
<NbtElement> NbtOps.MapBuilder.build
(NbtCompound nbtCompound, NbtElement nbtElement) NbtCompound.copyFrom
(NbtCompound source) Merges the entries ofsource
to this compound.(package private) static NbtCompound
NbtHelper.fromNbtProviderFormat
(NbtCompound compound) static int
NbtHelper.getDataVersion
(NbtCompound nbt, int fallback) private static boolean
NbtList.isConvertedEntry
(NbtCompound nbt) static NbtCompound
NbtHelper.putDataVersion
(NbtCompound nbt) static NbtCompound
NbtHelper.putDataVersion
(NbtCompound nbt, int dataVersion) static BlockState
NbtHelper.toBlockState
(RegistryEntryLookup<Block> blockLookup, NbtCompound nbt) Returns the block state from thenbt
.(package private) static NbtCompound
NbtHelper.toNbtProviderFormat
(NbtCompound compound) (package private) static String
NbtHelper.toNbtProviderFormattedPalette
(NbtCompound compound) static String
NbtHelper.toNbtProviderString
(NbtCompound compound) Returns the string representation ofcompound
as used by the NBT provider in the data generator.private static NbtElement
NbtList.unwrap
(NbtCompound nbt) private static <S extends State<?,
S>, T extends Comparable<T>>
SNbtHelper.withProperty
(S state, Property<T> property, String key, NbtCompound properties, NbtCompound root) static void
NbtIo.write
(NbtCompound nbt, Path path) Writes thenbt
to the file atpath
.static void
NbtIo.writeCompound
(NbtCompound nbt, DataOutput output) Writes thenbt
tooutput
.static void
NbtIo.writeCompressed
(NbtCompound nbt, OutputStream stream) Writes the Gzip-compressednbt
tostream
.static void
NbtIo.writeCompressed
(NbtCompound nbt, Path path) Writes the Gzip-compressednbt
to the file atpath
. -
Uses of NbtCompound in net.minecraft.nbt.scanner
Fields in net.minecraft.nbt.scanner declared as NbtCompound -
Uses of NbtCompound in net.minecraft.nbt.visitor
Methods in net.minecraft.nbt.visitor with parameters of type NbtCompoundModifier and TypeMethodDescriptionNbtOrderedStringFormatter.getSortedNames
(NbtCompound compound) void
NbtElementVisitor.visitCompound
(NbtCompound compound) void
NbtOrderedStringFormatter.visitCompound
(NbtCompound compound) void
NbtTextFormatter.visitCompound
(NbtCompound compound) void
StringNbtWriter.visitCompound
(NbtCompound compound) -
Uses of NbtCompound in net.minecraft.network
Methods in net.minecraft.network that return NbtCompoundModifier and TypeMethodDescriptionPacketByteBuf.readNbt()
Reads an NBT compound from this buf.static @Nullable NbtCompound
-
Uses of NbtCompound in net.minecraft.network.codec
Fields in net.minecraft.network.codec with type parameters of type NbtCompoundModifier and TypeFieldDescriptionstatic final PacketCodec
<ByteBuf, NbtCompound> PacketCodecs.NBT_COMPOUND
A codec for an NBT compound of up to0x200000L
bytes.static final PacketCodec
<ByteBuf, Optional<NbtCompound>> PacketCodecs.OPTIONAL_NBT
A codec for an optional NBT compound of up to 2097152 bytes.static final PacketCodec
<ByteBuf, NbtCompound> PacketCodecs.UNLIMITED_NBT_COMPOUND
A codec for an NBT compound of unlimited size.Methods in net.minecraft.network.codec that return types with arguments of type NbtCompoundModifier and TypeMethodDescriptionstatic PacketCodec
<ByteBuf, NbtCompound> PacketCodecs.nbtCompound
(Supplier<NbtSizeTracker> sizeTracker) -
Uses of NbtCompound in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as NbtCompoundModifier and TypeFieldDescriptionprivate final NbtCompound
BlockEntityUpdateS2CPacket.nbt
(package private) final @Nullable NbtCompound
ChunkData.BlockEntityData.nbt
private final @Nullable NbtCompound
NbtQueryResponseS2CPacket.nbt
Methods in net.minecraft.network.packet.s2c.play that return NbtCompoundModifier and TypeMethodDescriptionBlockEntityUpdateS2CPacket.getNbt()
NbtQueryResponseS2CPacket.getNbt()
Methods in net.minecraft.network.packet.s2c.play with parameters of type NbtCompoundModifier and TypeMethodDescriptionvoid
ChunkData.BlockEntityVisitor.accept
(BlockPos pos, BlockEntityType<?> type, @Nullable NbtCompound nbt) Method parameters in net.minecraft.network.packet.s2c.play with type arguments of type NbtCompoundModifier and TypeMethodDescriptionstatic BlockEntityUpdateS2CPacket
BlockEntityUpdateS2CPacket.create
(BlockEntity blockEntity, BiFunction<BlockEntity, DynamicRegistryManager, NbtCompound> nbtGetter) Constructors in net.minecraft.network.packet.s2c.play with parameters of type NbtCompoundModifierConstructorDescriptionprivate
BlockEntityData
(int localXz, int y, BlockEntityType<?> type, @Nullable NbtCompound nbt) private
BlockEntityUpdateS2CPacket
(BlockPos pos, BlockEntityType<?> blockEntityType, NbtCompound nbt) NbtQueryResponseS2CPacket
(int transactionId, @Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.predicate
Fields in net.minecraft.predicate declared as NbtCompoundModifier and TypeFieldDescriptionprivate final NbtCompound
NbtPredicate.nbt
The field for thenbt
record component.Methods in net.minecraft.predicate that return NbtCompoundModifier and TypeMethodDescriptionstatic NbtCompound
NbtPredicate.entityToNbt
(Entity entity) NbtPredicate.nbt()
Returns the value of thenbt
record component.Methods in net.minecraft.predicate with parameters of type NbtCompoundConstructors in net.minecraft.predicate with parameters of type NbtCompoundModifierConstructorDescriptionNbtPredicate
(NbtCompound nbt) Creates an instance of aNbtPredicate
record class. -
Uses of NbtCompound in net.minecraft.server
Methods in net.minecraft.server that return NbtCompoundModifier and TypeMethodDescriptionPlayerManager.getUserData()
Gets the user data of the player hosting the Minecraft server. -
Uses of NbtCompound in net.minecraft.server.command
Fields in net.minecraft.server.command declared as NbtCompoundModifier and TypeFieldDescriptionprivate final NbtCompound
CloneCommand.BlockEntityInfo.nbt
The field for thenbt
record component.Methods in net.minecraft.server.command that return NbtCompoundModifier and TypeMethodDescription(package private) static NbtCompound
FunctionCommand.getArgument
(NbtPathArgumentType.NbtPath path, DataCommandObject object) protected abstract @Nullable NbtCompound
FunctionCommand.Command.getArguments
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) CloneCommand.BlockEntityInfo.nbt()
Returns the value of thenbt
record component.Methods in net.minecraft.server.command with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueAction
(Collection<CommandFunction<T>> commandFunctions, @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer, ExecutionFlags flags) static <T extends AbstractServerCommandSource<T>>
voidExecuteCommand.enqueueExecutions
(T baseSource, List<T> sources, Function<T, T> functionSourceGetter, IntPredicate predicate, com.mojang.brigadier.context.ContextChain<T> contextChain, @Nullable NbtCompound args, ExecutionControl<T> control, ArgumentGetter<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> functionNamesGetter, ExecutionFlags flags) private static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueFunction
(@Nullable NbtCompound args, ExecutionControl<T> control, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, CommandFunction<T> function, Identifier id, ReturnValueConsumer returnValueConsumer, boolean propagateReturn) private static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueInReturnRun
(Collection<CommandFunction<T>> functions, @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer) private static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueOutsideReturnRun
(Collection<CommandFunction<T>> functions, @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer) private static int
SummonCommand.execute
(ServerCommandSource source, RegistryEntry.Reference<EntityType<?>> entityType, Vec3d pos, NbtCompound nbt, boolean initialize) private static int
DataCommand.executeMerge
(ServerCommandSource source, DataCommandObject object, NbtCompound nbt) int
DataCommand.ModifyOperation.modify
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NbtCompound sourceNbt, NbtPathArgumentType.NbtPath path, List<NbtElement> elements) static Entity
SummonCommand.summon
(ServerCommandSource source, RegistryEntry.Reference<EntityType<?>> entityType, Vec3d pos, NbtCompound nbt, boolean initialize) Constructors in net.minecraft.server.command with parameters of type NbtCompoundModifierConstructorDescription(package private)
BlockEntityInfo
(NbtCompound nbtCompound, ComponentMap componentMap) -
Uses of NbtCompound in net.minecraft.server.function
Methods in net.minecraft.server.function with parameters of type NbtCompoundModifier and TypeMethodDescriptionCommandFunction.withMacroReplaced
(@Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) ExpandedMacro.withMacroReplaced
(@Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) Macro.withMacroReplaced
(@Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) -
Uses of NbtCompound in net.minecraft.server.integrated
Fields in net.minecraft.server.integrated declared as NbtCompoundMethods in net.minecraft.server.integrated that return NbtCompoundModifier and TypeMethodDescriptionIntegratedPlayerManager.getUserData()
Gets the user data of the player hosting the Minecraft server. -
Uses of NbtCompound in net.minecraft.server.world
Methods in net.minecraft.server.world that return NbtCompoundModifier and TypeMethodDescriptionprivate NbtCompound
ServerChunkLoadingManager.updateChunkNbt
(NbtCompound nbt) Methods in net.minecraft.server.world that return types with arguments of type NbtCompoundModifier and TypeMethodDescriptionprivate CompletableFuture
<Optional<NbtCompound>> ServerChunkLoadingManager.getUpdatedChunkNbt
(ChunkPos chunkPos) Methods in net.minecraft.server.world with parameters of type NbtCompoundModifier and TypeMethodDescriptionprivate NbtCompound
ServerChunkLoadingManager.updateChunkNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.storage
Fields in net.minecraft.storage declared as NbtCompoundModifier and TypeFieldDescriptionprivate final NbtCompound
NbtReadView.nbt
private final NbtCompound
NbtWriteView.nbt
Fields in net.minecraft.storage with type parameters of type NbtCompoundModifier and TypeFieldDescriptionprivate final List
<NbtCompound> NbtReadView.NbtListReadView.nbts
Methods in net.minecraft.storage that return NbtCompoundMethods in net.minecraft.storage with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic ReadView
NbtReadView.create
(ErrorReporter reporter, RegistryWrapper.WrapperLookup registries, NbtCompound nbt) private ReadView
NbtReadView.createChildReadView
(String key, NbtCompound nbt) (package private) static ReadView
NbtReadView.createReadView
(ErrorReporter reporter, ReadContext context, NbtCompound nbt) (package private) ReadView
NbtReadView.NbtListReadView.createReadView
(int index, NbtCompound nbt) Method parameters in net.minecraft.storage with type arguments of type NbtCompoundModifier and TypeMethodDescriptionstatic ReadView.ListReadView
NbtReadView.createList
(ErrorReporter reporter, RegistryWrapper.WrapperLookup registries, List<NbtCompound> elements) Constructors in net.minecraft.storage with parameters of type NbtCompoundModifierConstructorDescriptionprivate
NbtReadView
(ErrorReporter reporter, ReadContext context, NbtCompound nbt) (package private)
NbtWriteView
(ErrorReporter reporter, com.mojang.serialization.DynamicOps<NbtElement> ops, NbtCompound nbt) Constructor parameters in net.minecraft.storage with type arguments of type NbtCompoundModifierConstructorDescriptionNbtListReadView
(ErrorReporter reporter, ReadContext context, List<NbtCompound> nbts) -
Uses of NbtCompound in net.minecraft.structure
Fields in net.minecraft.structure declared as NbtCompoundModifier and TypeFieldDescriptionprivate final @Nullable NbtCompound
StructureTemplate.StructureBlockInfo.nbt
The field for thenbt
record component.final NbtCompound
StructureTemplate.StructureEntityInfo.nbt
Methods in net.minecraft.structure that return NbtCompoundModifier and TypeMethodDescriptionStructureTemplate.StructureBlockInfo.nbt()
Returns the value of thenbt
record component.final NbtCompound
StructurePiece.toNbt
(StructureContext context) StructureStart.toNbt
(StructureContext context, ChunkPos chunkPos) StructureTemplate.writeNbt
(NbtCompound nbt) Methods in net.minecraft.structure with parameters of type NbtCompoundModifier and TypeMethodDescriptionprivate static StructurePlacementData
RuinedPortalStructurePiece.createPlacementData
(StructureTemplateManager manager, NbtCompound nbt, Identifier id) StructureTemplateManager.createTemplate
(NbtCompound nbt) static OceanRuinGenerator.Piece
OceanRuinGenerator.Piece.fromNbt
(StructureTemplateManager structureTemplateManager, NbtCompound nbt) static @Nullable StructureStart
StructureStart.fromNbt
(StructureContext context, NbtCompound nbt, long seed) StructureTemplate.getEntity
(ErrorReporter errorReporter, ServerWorldAccess world, NbtCompound nbt) StructurePieceType.load
(StructureContext context, NbtCompound nbt) default StructurePiece
StructurePieceType.ManagerAware.load
(StructureContext context, NbtCompound nbt) StructurePieceType.ManagerAware.load
(StructureTemplateManager structureTemplateManager, NbtCompound nbt) StructurePieceType.Simple.load
(NbtCompound nbt) default StructurePiece
StructurePieceType.Simple.load
(StructureContext context, NbtCompound nbt) static JigsawBlockEntity.Joint
StructureTemplate.readJoint
(NbtCompound nbt, BlockState state) void
StructureTemplate.readNbt
(RegistryEntryLookup<Block> blockLookup, NbtCompound nbt) protected void
BuriedTreasureGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
DesertTempleGenerator.writeNbt
(StructureContext context, NbtCompound nbt) protected void
EndCityGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
IglooGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
JungleTempleGenerator.writeNbt
(StructureContext context, NbtCompound nbt) protected void
MineshaftGenerator.MineshaftCorridor.writeNbt
(StructureContext context, NbtCompound nbt) protected void
MineshaftGenerator.MineshaftCrossing.writeNbt
(StructureContext context, NbtCompound nbt) protected void
MineshaftGenerator.MineshaftPart.writeNbt
(StructureContext context, NbtCompound nbt) protected void
MineshaftGenerator.MineshaftRoom.writeNbt
(StructureContext context, NbtCompound nbt) protected void
NetherFortressGenerator.BridgeEnd.writeNbt
(StructureContext context, NbtCompound nbt) protected void
NetherFortressGenerator.BridgePlatform.writeNbt
(StructureContext context, NbtCompound nbt) protected void
NetherFortressGenerator.CorridorLeftTurn.writeNbt
(StructureContext context, NbtCompound nbt) protected void
NetherFortressGenerator.CorridorRightTurn.writeNbt
(StructureContext context, NbtCompound nbt) protected void
NetherFortressGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
NetherFossilGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
OceanMonumentGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
OceanRuinGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
PoolStructurePiece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
RuinedPortalStructurePiece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
ShiftableStructurePiece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
ShipwreckGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
SimpleStructurePiece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.ChestCorridor.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.Corridor.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.FiveWayCrossing.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.Library.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.PortalRoom.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.SmallCorridor.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.SpiralStaircase.writeNbt
(StructureContext context, NbtCompound nbt) protected void
StrongholdGenerator.SquareRoom.writeNbt
(StructureContext context, NbtCompound nbt) protected abstract void
StructurePiece.writeNbt
(StructureContext context, NbtCompound nbt) StructureTemplate.writeNbt
(NbtCompound nbt) protected void
SwampHutGenerator.writeNbt
(StructureContext context, NbtCompound nbt) protected void
WoodlandMansionGenerator.Piece.writeNbt
(StructureContext context, NbtCompound nbt) Constructors in net.minecraft.structure with parameters of type NbtCompoundModifierConstructorDescriptionBase
(NbtCompound nbt) Bridge
(NbtCompound nbt) protected
BridgeCrossing
(StructurePieceType type, NbtCompound nbt) BridgeEnd
(NbtCompound nbt) BridgeStairs
(NbtCompound nbt) ChestCorridor
(NbtCompound nbt) CoreRoom
(NbtCompound nbt) Corridor
(NbtCompound nbt) CorridorExit
(NbtCompound nbt) DoubleXRoom
(NbtCompound nbt) DoubleXYRoom
(NbtCompound nbt) DoubleYRoom
(NbtCompound nbt) DoubleYZRoom
(NbtCompound nbt) DoubleZRoom
(NbtCompound nbt) Entry
(NbtCompound nbt) LeftTurn
(NbtCompound nbt) Library
(NbtCompound nbt) MineshaftPart
(StructurePieceType type, NbtCompound nbt) MineshaftRoom
(NbtCompound nbt) Penthouse
(NbtCompound nbt) Piece
(NbtCompound nbt) Piece
(StructureTemplateManager manager, NbtCompound nbt) Piece
(StructureTemplateManager manager, NbtCompound nbt) Piece
(StructurePieceType type, NbtCompound nbt) Piece
(StructureTemplateManager manager, NbtCompound nbt) Piece
(StructurePieceType type, NbtCompound nbt) private
Piece
(StructureTemplateManager holder, NbtCompound nbt, BlockRotation rotation, float integrity, OceanRuinStructure.BiomeTemperature biomeType, boolean large) Piece
(StructureTemplateManager manager, NbtCompound nbt) Piece
(StructurePieceType type, NbtCompound nbt) Piece
(StructureTemplateManager manager, NbtCompound nbt) PoolStructurePiece
(StructureContext context, NbtCompound nbt) PortalRoom
(NbtCompound nbt) PrisonHall
(NbtCompound nbt) RightTurn
(NbtCompound nbt) RuinedPortalStructurePiece
(StructureTemplateManager manager, NbtCompound nbt) protected
ShiftableStructurePiece
(StructurePieceType type, NbtCompound nbt) SimpleRoom
(NbtCompound nbt) SimpleRoomTop
(NbtCompound nbt) SimpleStructurePiece
(StructurePieceType type, NbtCompound nbt, StructureTemplateManager structureTemplateManager, Function<Identifier, StructurePlacementData> placementDataGetter) SmallCorridor
(NbtCompound nbt) SmallCorridor
(NbtCompound nbt) SpiralStaircase
(StructurePieceType type, NbtCompound nbt) SquareRoom
(NbtCompound nbt) Stairs
(NbtCompound nbt) Start
(NbtCompound nbt) Start
(NbtCompound nbt) StructureBlockInfo
(BlockPos pos, BlockState state, @Nullable NbtCompound nbt) Creates an instance of aStructureBlockInfo
record class.StructureEntityInfo
(Vec3d pos, BlockPos blockPos, NbtCompound nbt) StructurePiece
(StructurePieceType type, NbtCompound nbt) Turn
(StructurePieceType type, NbtCompound nbt) WingRoom
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.structure.pool
Fields in net.minecraft.structure.pool declared as NbtCompoundMethods in net.minecraft.structure.pool that return NbtCompoundModifier and TypeMethodDescriptionprivate NbtCompound
FeaturePoolElement.createDefaultJigsawNbt()
-
Uses of NbtCompound in net.minecraft.structure.processor
Methods in net.minecraft.structure.processor that return NbtCompoundModifier and TypeMethodDescriptionStructureProcessorRule.getOutputNbt
(Random random, @Nullable NbtCompound nbt) Methods in net.minecraft.structure.processor with parameters of type NbtCompoundModifier and TypeMethodDescriptionStructureProcessorRule.getOutputNbt
(Random random, @Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.structure.rule.blockentity
Fields in net.minecraft.structure.rule.blockentity declared as NbtCompoundModifier and TypeFieldDescriptionprivate final NbtCompound
AppendStaticRuleBlockEntityModifier.nbt
Methods in net.minecraft.structure.rule.blockentity that return NbtCompoundModifier and TypeMethodDescriptionAppendLootRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) AppendStaticRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) ClearRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) PassthroughRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) RuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) Methods in net.minecraft.structure.rule.blockentity with parameters of type NbtCompoundModifier and TypeMethodDescriptionAppendLootRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) AppendStaticRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) ClearRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) PassthroughRuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) RuleBlockEntityModifier.modifyBlockEntityNbt
(Random random, @Nullable NbtCompound nbt) Constructors in net.minecraft.structure.rule.blockentity with parameters of type NbtCompound -
Uses of NbtCompound in net.minecraft.text
Methods in net.minecraft.text that return types with arguments of type NbtCompoundModifier and TypeMethodDescriptionBlockNbtDataSource.get
(ServerCommandSource source) EntityNbtDataSource.get
(ServerCommandSource source) NbtDataSource.get
(ServerCommandSource source) StorageNbtDataSource.get
(ServerCommandSource source) -
Uses of NbtCompound in net.minecraft.village.raid
Methods in net.minecraft.village.raid with parameters of type NbtCompound -
Uses of NbtCompound in net.minecraft.world
Fields in net.minecraft.world with type parameters of type NbtCompoundModifier and TypeFieldDescriptionprivate final Map
<String, Long2ObjectMap<NbtCompound>> FeatureUpdater.featureIdToChunkNbt
Methods in net.minecraft.world that return NbtCompoundModifier and TypeMethodDescriptionSaveProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) private <T extends PersistentState>
NbtCompoundPersistentStateManager.encode
(PersistentStateType<T> type, PersistentState state, RegistryOps<NbtElement> ops) SaveProperties.getCustomBossEvents()
SaveProperties.getPlayerData()
FeatureUpdater.getUpdatedReferences
(NbtCompound nbt) private NbtCompound
FeatureUpdater.getUpdatedStarts
(NbtCompound nbt, ChunkPos pos) PersistentStateManager.readNbt
(String id, DataFixTypes dataFixTypes, int currentSaveVersion) GameRules.toNbt()
Methods in net.minecraft.world that return types with arguments of type NbtCompoundModifier and TypeMethodDescriptionprivate Map
<PersistentStateType<?>, NbtCompound> PersistentStateManager.collectStatesToSave()
private Optional
<NbtCompound> PlayerSaveHandler.loadPlayerData
(PlayerEntity player, String extension) Methods in net.minecraft.world with parameters of type NbtCompoundModifier and TypeMethodDescriptionSaveProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) private @Nullable Object2IntMap
<Structure> StructureLocator.collectStructuresAndReferences
(NbtCompound nbt) FeatureUpdater.getUpdatedReferences
(NbtCompound nbt) private NbtCompound
FeatureUpdater.getUpdatedStarts
(NbtCompound nbt, ChunkPos pos) private void
PersistentStateManager.save
(PersistentStateType<?> type, NbtCompound nbt) void
SaveProperties.setCustomBossEvents
(@Nullable NbtCompound customBossEvents) -
Uses of NbtCompound in net.minecraft.world.border
Methods in net.minecraft.world.border with parameters of type NbtCompound -
Uses of NbtCompound in net.minecraft.world.chunk
Fields in net.minecraft.world.chunk declared as NbtCompoundModifier and TypeFieldDescriptionprivate final NbtCompound
SerializedChunk.structureData
The field for thestructureData
record component.Fields in net.minecraft.world.chunk with type parameters of type NbtCompoundModifier and TypeFieldDescriptionprivate final List
<NbtCompound> SerializedChunk.blockEntities
The field for theblockEntities
record component.protected final Map
<BlockPos, NbtCompound> Chunk.blockEntityNbts
private final List
<NbtCompound> ProtoChunk.entities
private final List
<NbtCompound> SerializedChunk.entities
The field for theentities
record component.Methods in net.minecraft.world.chunk that return NbtCompoundModifier and TypeMethodDescriptionChunk.getBlockEntityNbt
(BlockPos pos) WrapperProtoChunk.getBlockEntityNbt
(BlockPos pos) abstract @Nullable NbtCompound
Chunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registries) ProtoChunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registries) WorldChunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registries) WrapperProtoChunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registries) SerializedChunk.serialize()
SerializedChunk.structureData()
Returns the value of thestructureData
record component.UpgradeData.toNbt()
private static NbtCompound
SerializedChunk.writeStructures
(StructureContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, LongSet> references) Methods in net.minecraft.world.chunk that return types with arguments of type NbtCompoundModifier and TypeMethodDescriptionSerializedChunk.blockEntities()
Returns the value of theblockEntities
record component.SerializedChunk.entities()
Returns the value of theentities
record component.ProtoChunk.getBlockEntityNbts()
ProtoChunk.getEntities()
Methods in net.minecraft.world.chunk with parameters of type NbtCompoundModifier and TypeMethodDescriptionvoid
ProtoChunk.addEntity
(NbtCompound entityNbt) void
Chunk.addPendingBlockEntityNbt
(NbtCompound nbt) void
WrapperProtoChunk.addPendingBlockEntityNbt
(NbtCompound nbt) static @Nullable SerializedChunk
SerializedChunk.fromNbt
(HeightLimitView world, DynamicRegistryManager registryManager, NbtCompound nbt) static ChunkStatus
SerializedChunk.getChunkStatus
(@Nullable NbtCompound nbt) private @Nullable BlockEntity
WorldChunk.loadBlockEntity
(BlockPos pos, NbtCompound nbt) SerializedChunk.readStructureReferences
(DynamicRegistryManager registryManager, ChunkPos pos, NbtCompound nbt) private static Map
<Structure, StructureStart> SerializedChunk.readStructureStarts
(StructureContext context, NbtCompound nbt, long worldSeed) private static void
SerializedChunk.serializeTicks
(NbtCompound nbt, Chunk.TickSchedulers schedulers) Method parameters in net.minecraft.world.chunk with type arguments of type NbtCompoundModifier and TypeMethodDescriptionprivate static WorldChunk.EntityLoader
SerializedChunk.getEntityLoadingCallback
(ServerWorld world, List<NbtCompound> entities, List<NbtCompound> blockEntities) Constructors in net.minecraft.world.chunk with parameters of type NbtCompoundModifierConstructorDescriptionSerializedChunk
(Registry<Biome> registry, ChunkPos chunkPos, int int2, long long2, long long3, ChunkStatus chunkStatus, BlendingData.Serialized serialized, @Nullable BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, @org.jetbrains.annotations.Nullable long[] long4, Map<Heightmap.Type, long[]> map, Chunk.TickSchedulers tickSchedulers, ShortList[] shortList, boolean bool, List<SerializedChunk.SectionData> list, List<NbtCompound> list2, List<NbtCompound> list3, NbtCompound nbtCompound) UpgradeData
(NbtCompound nbt, HeightLimitView world) -
Uses of NbtCompound in net.minecraft.world.level
Fields in net.minecraft.world.level declared as NbtCompoundModifier and TypeFieldDescriptionprivate @Nullable NbtCompound
LevelProperties.customBossEvents
private final @Nullable NbtCompound
LevelProperties.playerData
Methods in net.minecraft.world.level that return NbtCompoundModifier and TypeMethodDescriptionLevelProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) LevelProperties.getCustomBossEvents()
LevelProperties.getPlayerData()
Methods in net.minecraft.world.level with parameters of type NbtCompoundModifier and TypeMethodDescriptionLevelProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) void
LevelProperties.setCustomBossEvents
(@Nullable NbtCompound customBossEvents) private void
LevelProperties.updateProperties
(DynamicRegistryManager registryManager, NbtCompound levelNbt, @Nullable NbtCompound playerNbt) Constructors in net.minecraft.world.level with parameters of type NbtCompoundModifierConstructorDescriptionprivate
LevelProperties
(@Nullable NbtCompound playerData, boolean modded, BlockPos spawnPos, float spawnAngle, long time, long timeOfDay, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, WorldBorder.Properties worldBorder, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, @Nullable UUID wanderingTraderId, Set<String> serverBrands, Set<String> removedFeatures, Timer<MinecraftServer> scheduledEvents, @Nullable NbtCompound customBossEvents, EnderDragonFight.Data dragonFight, LevelInfo levelInfo, GeneratorOptions generatorOptions, LevelProperties.SpecialProperty specialProperty, com.mojang.serialization.Lifecycle lifecycle) -
Uses of NbtCompound in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage that return NbtCompoundModifier and TypeMethodDescription(package private) static NbtCompound
LevelStorage.readLevelProperties
(Path path) Methods in net.minecraft.world.level.storage with parameters of type NbtCompoundModifier and TypeMethodDescriptionvoid
LevelStorage.Session.backupLevelDataFile
(DynamicRegistryManager registryManager, SaveProperties saveProperties, @Nullable NbtCompound nbt) private void
LevelStorage.Session.save
(NbtCompound nbt) Method parameters in net.minecraft.world.level.storage with type arguments of type NbtCompoundModifier and TypeMethodDescriptionprivate void
LevelStorage.Session.save
(Consumer<NbtCompound> nbtProcessor) -
Uses of NbtCompound in net.minecraft.world.storage
Fields in net.minecraft.world.storage declared as NbtCompoundModifier and TypeFieldDescription(package private) @Nullable NbtCompound
StorageIoWorker.Result.nbt
Methods in net.minecraft.world.storage that return NbtCompoundModifier and TypeMethodDescription(package private) @Nullable NbtCompound
StorageIoWorker.Result.copyNbt()
ChunkPosKeyedStorage.update
(NbtCompound nbt, int oldVersion) VersionedChunkStorage.updateChunkNbt
(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey) Methods in net.minecraft.world.storage that return types with arguments of type NbtCompoundMethods in net.minecraft.world.storage with parameters of type NbtCompoundModifier and TypeMethodDescriptionstatic int
VersionedChunkStorage.getDataVersion
(NbtCompound nbt) private boolean
StorageIoWorker.needsBlending
(NbtCompound nbt) private static void
VersionedChunkStorage.removeContext
(NbtCompound nbt) static void
VersionedChunkStorage.saveContextToNbt
(NbtCompound nbt, RegistryKey<World> worldKey, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey) ChunkPosKeyedStorage.set
(ChunkPos pos, @Nullable NbtCompound nbt) RecreationStorage.set
(ChunkPos pos, @Nullable NbtCompound nbt) StorageIoWorker.setResult
(ChunkPos pos, @Nullable NbtCompound nbt) ChunkPosKeyedStorage.update
(NbtCompound nbt, int oldVersion) VersionedChunkStorage.updateChunkNbt
(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey) protected void
RegionBasedStorage.write
(ChunkPos pos, @Nullable NbtCompound nbt) Method parameters in net.minecraft.world.storage with type arguments of type NbtCompoundModifier and TypeMethodDescriptionRecreatedChunkStorage.setNbt
(ChunkPos chunkPos, Supplier<NbtCompound> nbtSupplier) VersionedChunkStorage.setNbt
(ChunkPos chunkPos, Supplier<NbtCompound> nbtSupplier) StorageIoWorker.setResult
(ChunkPos pos, Supplier<NbtCompound> nbtSupplier) Constructors in net.minecraft.world.storage with parameters of type NbtCompound -
Uses of NbtCompound in net.minecraft.world.timer
Methods in net.minecraft.world.timer that return NbtCompoundMethods in net.minecraft.world.timer with parameters of type NbtCompound -
Uses of NbtCompound in net.minecraft.world.updater
Methods in net.minecraft.world.updater that return NbtCompoundModifier and TypeMethodDescriptionprotected abstract NbtCompound
WorldUpdater.ChunkPosKeyedStorageUpdate.updateNbt
(ChunkPosKeyedStorage storage, NbtCompound nbt) protected NbtCompound
WorldUpdater.EntitiesUpdate.updateNbt
(ChunkPosKeyedStorage storage, NbtCompound nbt) protected NbtCompound
WorldUpdater.PoiUpdate.updateNbt
(ChunkPosKeyedStorage storage, NbtCompound nbt) Methods in net.minecraft.world.updater with parameters of type NbtCompoundModifier and TypeMethodDescriptionprotected abstract NbtCompound
WorldUpdater.ChunkPosKeyedStorageUpdate.updateNbt
(ChunkPosKeyedStorage storage, NbtCompound nbt) protected NbtCompound
WorldUpdater.EntitiesUpdate.updateNbt
(ChunkPosKeyedStorage storage, NbtCompound nbt) protected NbtCompound
WorldUpdater.PoiUpdate.updateNbt
(ChunkPosKeyedStorage storage, NbtCompound nbt)