Uses of Class
net.minecraft.nbt.NbtCompound
Package
Description
The Named Binary Tag (NBT) data format.
-
Uses of NbtCompound in net.minecraft.block.entity
Modifier and TypeMethodDescriptionfinal NbtCompound
BlockEntity.createComponentlessNbt
(RegistryWrapper.WrapperLookup registryLookup) final NbtCompound
BlockEntity.createComponentlessNbtWithIdentifyingData
(RegistryWrapper.WrapperLookup registryLookup) final NbtCompound
BlockEntity.createNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the block entity's NBT data.final NbtCompound
BlockEntity.createNbtWithId
(RegistryWrapper.WrapperLookup registryLookup) Returns the block entity's NBT data with block entity type ID.final NbtCompound
BlockEntity.createNbtWithIdentifyingData
(RegistryWrapper.WrapperLookup registryLookup) Returns the block entity's NBT data with identifying data.BannerBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.BeaconBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.BlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.BrushableBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.CampfireBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.ConduitBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.DecoratedPotBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.EndGatewayBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.JigsawBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.MobSpawnerBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.PistonBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.SignBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.SkullBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.StructureBlockBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.TrialSpawnerBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.VaultBlockEntity.toInitialChunkDataNbt
(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.Sherds.toNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionstatic @Nullable BlockEntity
BlockEntity.createFromNbt
(BlockPos pos, BlockState state, NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Returns the new block entity loaded fromnbt
, ornull
if it fails.static Sherds
Sherds.fromNbt
(@Nullable NbtCompound nbt) private static @Nullable Identifier
Spawner.getSpawnedEntityId
(NbtCompound nbt, String spawnDataKey) static BlockPos
BlockEntity.posFromNbt
(NbtCompound nbt) Returns the block position fromnbt
.private void
CrafterBlockEntity.putDisabledSlots
(NbtCompound nbt) private void
CrafterBlockEntity.putTriggered
(NbtCompound nbt) final void
BlockEntity.read
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) final void
BlockEntity.readComponentlessNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) void
ShulkerBoxBlockEntity.readInventoryNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) private boolean
BrushableBlockEntity.readLootTableFromNbt
(NbtCompound nbt) protected void
AbstractFurnaceBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
BannerBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
BarrelBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
BeaconBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
BeehiveBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
BlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
BrewingStandBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
BrushableBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
CampfireBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
ChestBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
ChiseledBookshelfBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
CommandBlockBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
ComparatorBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
ConduitBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
CrafterBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
DecoratedPotBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
DispenserBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
EnchantingTableBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
EndGatewayBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
HopperBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
JigsawBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
JukeboxBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
LecternBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
LockableContainerBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
MobSpawnerBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
PistonBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
SculkCatalystBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
SculkSensorBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
SculkShriekerBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.void
SculkSpreadManager.readNbt
(NbtCompound nbt) protected void
ShulkerBoxBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
SignBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
SkullBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
StructureBlockBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
TrialSpawnerBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.protected void
VaultBlockEntity.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.private static @Nullable RegistryEntry
<StatusEffect> BeaconBlockEntity.readStatusEffect
(NbtCompound nbt, String key) void
BannerBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
BeaconBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
BeehiveBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
BlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) Deprecated.void
CampfireBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
ChiseledBookshelfBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
CommandBlockBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
DecoratedPotBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
EnchantingTableBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
LockableContainerBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
LootableContainerBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) void
SkullBlockEntity.removeFromCopiedStackNbt
(NbtCompound nbt) Sherds.toNbt
(NbtCompound nbt) private void
BlockEntity.writeIdentifyingData
(NbtCompound nbt) Writes tonbt
the block entity type ID under theid
key, and the block's position underx
,y
, andz
keys.private void
BlockEntity.writeIdToNbt
(NbtCompound nbt) Writes the block entity type ID tonbt
under theid
key.static void
BlockEntity.writeIdToNbt
(NbtCompound nbt, BlockEntityType<?> type) Writes the ID oftype
tonbt
under theid
key.private boolean
BrushableBlockEntity.writeLootTableToNbt
(NbtCompound nbt) protected void
AbstractFurnaceBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
BannerBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
BarrelBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
BeaconBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
BeehiveBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
BlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
BrewingStandBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
BrushableBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
CampfireBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
ChestBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
ChiseledBookshelfBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
CommandBlockBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
ComparatorBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
ConduitBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
CrafterBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
DecoratedPotBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
DispenserBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
EnchantingTableBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
EndGatewayBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
HopperBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
JigsawBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
JukeboxBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
LecternBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
LockableContainerBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
MobSpawnerBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
PistonBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
SculkCatalystBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
SculkSensorBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
SculkShriekerBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.void
SculkSpreadManager.writeNbt
(NbtCompound nbt) protected void
ShulkerBoxBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
SignBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
SkullBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
StructureBlockBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
TrialSpawnerBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.protected void
VaultBlockEntity.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.private static void
BeaconBlockEntity.writeStatusEffect
(NbtCompound nbt, String key, @Nullable RegistryEntry<StatusEffect> effect) -
Uses of NbtCompound in net.minecraft.block.spawner
Modifier and TypeFieldDescriptionprivate final NbtCompound
MobSpawnerEntry.entity
The field for theentity
record component.Modifier and TypeMethodDescriptionMobSpawnerEntry.entity()
Returns the value of theentity
record component.MobSpawnerEntry.getNbt()
TrialSpawnerData.getSpawnDataNbt
(TrialSpawnerState state) MobSpawnerLogic.writeNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionvoid
MobSpawnerLogic.readNbt
(@Nullable World world, BlockPos pos, NbtCompound nbt) MobSpawnerLogic.writeNbt
(NbtCompound nbt) ModifierConstructorDescriptionMobSpawnerEntry
(NbtCompound nbtCompound, Optional<MobSpawnerEntry.CustomSpawnRules> optional, Optional<EquipmentTable> optional2) -
Uses of NbtCompound in net.minecraft.client
Modifier 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
Modifier and TypeFieldDescriptionprivate @Nullable Consumer
<NbtCompound> DataQueryHandler.callback
Modifier and TypeMethodDescriptionstatic ServerInfo
ServerInfo.fromNbt
(NbtCompound root) boolean
DataQueryHandler.handleQueryResponse
(int transactionId, @Nullable NbtCompound nbt) Modifier 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
-
Uses of NbtCompound in net.minecraft.client.world
Modifier and TypeMethodDescriptionClientChunkManager.loadChunkFromPacket
(int x, int z, PacketByteBuf buf, NbtCompound nbt, Consumer<ChunkData.BlockEntityVisitor> consumer) -
Uses of NbtCompound in net.minecraft.command
Modifier and TypeFieldDescriptionprivate final Map
<String, NbtCompound> DataCommandStorage.PersistentState.map
Modifier and TypeMethodDescriptionDataCommandStorage.get
(Identifier id) BlockDataObject.getNbt()
DataCommandObject.getNbt()
EntityDataObject.getNbt()
StorageDataObject.getNbt()
DataCommandStorage.PersistentState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Modifier and TypeMethodDescription(package private) DataCommandStorage.PersistentState
DataCommandStorage.PersistentState.readNbt
(NbtCompound nbt) void
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) DataCommandStorage.PersistentState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) -
Uses of NbtCompound in net.minecraft.command.argument
Modifier 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
Modifier 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) Modifier and TypeMethodDescription(package private) static Predicate
<NbtElement> NbtPathArgumentType.getPredicate
(NbtCompound filter) int
NbtPathArgumentType.NbtPath.insert
(int index, NbtCompound compound, List<NbtElement> elements) ModifierConstructorDescriptionBlockResult
(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
Modifier and TypeMethodDescriptionNbtComponent.createPredicate
(DataComponentType<NbtComponent> type, NbtCompound nbt) boolean
NbtComponent.matches
(NbtCompound nbt) static NbtComponent
NbtComponent.of
(NbtCompound nbt) static void
NbtComponent.set
(DataComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) Modifier and TypeMethodDescriptionNbtComponent.apply
(Consumer<NbtCompound> nbtConsumer) static void
NbtComponent.set
(DataComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) -
Uses of NbtCompound in net.minecraft.data
Modifier and TypeMethodDescriptionSnbtProvider.Tweaker.write
(String name, NbtCompound nbt) private NbtCompound
SnbtProvider.write
(String key, NbtCompound compound) Modifier and TypeMethodDescriptionSnbtProvider.Tweaker.write
(String name, NbtCompound nbt) private NbtCompound
SnbtProvider.write
(String key, NbtCompound compound) -
Uses of NbtCompound in net.minecraft.data.validate
Modifier and TypeMethodDescriptionstatic NbtCompound
StructureValidatorProvider.update
(String name, NbtCompound nbt) StructureValidatorProvider.write
(String name, NbtCompound nbt) Modifier and TypeMethodDescriptionstatic NbtCompound
StructureValidatorProvider.update
(String name, NbtCompound nbt) StructureValidatorProvider.write
(String name, NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.datafixer
Modifier 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
.Modifier 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
-
Uses of NbtCompound in net.minecraft.entity
Modifier and TypeFieldDescriptionFallingBlockEntity.blockEntityData
private NbtCompound
MarkerEntity.data
Modifier and TypeMethodDescriptionstatic void
Bucketable.copyDataFromNbt
(MobEntity entity, NbtCompound nbt) Deprecated.void
Bucketable.copyDataFromNbt
(NbtCompound nbt) static Optional
<EntityType<?>> EntityType.fromNbt
(NbtCompound nbt) EntityType.getEntityFromNbt
(NbtCompound nbt, World world) EntityType.loadEntityFromNbt
(NbtCompound nbt, World world) EntityType.loadEntityWithPassengers
(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor) protected void
AreaEffectCloudEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected abstract void
Entity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ExperienceOrbEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
EyeOfEnderEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
FallingBlockEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ItemEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
LightningEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
LivingEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
MarkerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
OminousItemSpawnerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
TntEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.default void
InventoryOwner.readInventory
(NbtCompound nbt, RegistryWrapper.WrapperLookup wrapperLookup) void
Entity.readNbt
(NbtCompound nbt) void
SaddledComponent.readNbt
(NbtCompound nbt) boolean
Entity.saveNbt
(NbtCompound nbt) boolean
Entity.saveSelfNbt
(NbtCompound nbt) protected void
AreaEffectCloudEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected abstract void
Entity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ExperienceOrbEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
EyeOfEnderEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
FallingBlockEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ItemEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
LightningEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
LivingEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
MarkerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
OminousItemSpawnerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
TntEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.default void
InventoryOwner.writeInventory
(NbtCompound nbt, RegistryWrapper.WrapperLookup wrapperLookup) Entity.writeNbt
(NbtCompound nbt) void
SaddledComponent.writeNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.attribute
Modifier and TypeMethodDescriptionEntityAttributeInstance.toNbt()
EntityAttributeModifier.toNbt()
Modifier and TypeMethodDescriptionstatic @Nullable EntityAttributeModifier
EntityAttributeModifier.fromNbt
(NbtCompound nbt) void
EntityAttributeInstance.readNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionBossBarManager.toNbt
(RegistryWrapper.WrapperLookup wrapperLookup) CommandBossBar.toNbt
(RegistryWrapper.WrapperLookup wrapperLookup) Modifier and TypeMethodDescriptionstatic CommandBossBar
CommandBossBar.fromNbt
(NbtCompound nbt, Identifier id, RegistryWrapper.WrapperLookup wrapperLookup) void
WitherEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
BossBarManager.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup wrapperLookup) void
WitherEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
. -
Uses of NbtCompound in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionvoid
EnderDragonEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
EnderDragonPart.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
EnderDragonEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
EnderDragonPart.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
. -
Uses of NbtCompound in net.minecraft.entity.data
Modifier and TypeFieldDescriptionstatic final TrackedDataHandler
<NbtCompound> TrackedDataHandlerRegistry.NBT_COMPOUND
-
Uses of NbtCompound in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionvoid
AbstractDecorationEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ArmorStandEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
DisplayEntity.BlockDisplayEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
DisplayEntity.ItemDisplayEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
DisplayEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
DisplayEntity.TextDisplayEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
EndCrystalEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
InteractionEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ItemFrameEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
LeashKnotEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.private static byte
DisplayEntity.TextDisplayEntity.readFlag
(byte flags, NbtCompound nbt, String nbtKey, byte flag) private void
ArmorStandEntity.readPoseNbt
(NbtCompound nbt) void
AbstractDecorationEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ArmorStandEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
DisplayEntity.BlockDisplayEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
DisplayEntity.ItemDisplayEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
DisplayEntity.TextDisplayEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
DisplayEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
EndCrystalEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
InteractionEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ItemFrameEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
LeashKnotEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.private static void
DisplayEntity.TextDisplayEntity.writeFlag
(byte flags, NbtCompound nbt, String nbtKey, byte flag) -
Uses of NbtCompound in net.minecraft.entity.decoration.painting
Modifier and TypeMethodDescriptionvoid
PaintingEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PaintingEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.static void
PaintingEntity.writeVariantToNbt
(NbtCompound nbt, RegistryEntry<PaintingVariant> variant) -
Uses of NbtCompound in net.minecraft.entity.effect
Modifier and TypeMethodDescriptionstatic @Nullable StatusEffectInstance
StatusEffectInstance.fromNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.mob
Modifier and TypeMethodDescriptiondefault void
Angerable.readAngerFromNbt
(World world, NbtCompound nbt) void
AbstractPiglinEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
AbstractSkeletonEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
BoggedEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
CreeperEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
EndermanEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
EndermiteEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
EvokerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
EvokerFangsEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
GhastEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
HoglinEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
MobEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PatrolEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PhantomEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PiglinEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PillagerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
RavagerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ShulkerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
SkeletonEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
SkeletonHorseEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
SlimeEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
SpellcastingIllagerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
VexEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
VindicatorEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
WardenEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ZoglinEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ZombieEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ZombieVillagerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ZombifiedPiglinEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.default void
Angerable.writeAngerToNbt
(NbtCompound nbt) void
AbstractPiglinEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
BoggedEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
CreeperEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
EndermanEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
EndermiteEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
EvokerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
EvokerFangsEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
GhastEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
HoglinEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
MobEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PatrolEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PhantomEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PiglinEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PillagerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
RavagerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ShulkerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
SkeletonEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
SkeletonHorseEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
SlimeEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
SpellcastingIllagerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
VexEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
VindicatorEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
WardenEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ZoglinEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ZombieEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ZombieVillagerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ZombifiedPiglinEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
. -
Uses of NbtCompound in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionvoid
AxolotlEntity.copyDataFromNbt
(NbtCompound nbt) void
FishEntity.copyDataFromNbt
(NbtCompound nbt) void
TadpoleEntity.copyDataFromNbt
(NbtCompound nbt) void
TropicalFishEntity.copyDataFromNbt
(NbtCompound nbt) void
AbstractDonkeyEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
AbstractHorseEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
AllayEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
AnimalEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ArmadilloEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
AxolotlEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
BatEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
BeeEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
CamelEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
CatEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ChickenEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
DolphinEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
FishEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
FoxEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
FrogEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
GlowSquidEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
GoatEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
HorseEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
IronGolemEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
LlamaEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
MerchantEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
MooshroomEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
OcelotEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PandaEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ParrotEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PassiveEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PigEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PolarBearEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PufferfishEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
RabbitEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
SheepEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
SnowGolemEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
StriderEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
TadpoleEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
TameableEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
TraderLlamaEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
TropicalFishEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
TurtleEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
VillagerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
WanderingTraderEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
WolfEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
AbstractDonkeyEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
AbstractHorseEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
AllayEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
AnimalEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ArmadilloEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
AxolotlEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
BatEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
BeeEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
CamelEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
CatEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ChickenEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
DolphinEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
FishEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
FoxEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
FrogEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
GlowSquidEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
GoatEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
HorseEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
IronGolemEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
LlamaEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
MerchantEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
MooshroomEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
OcelotEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PandaEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ParrotEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PassiveEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PigEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PolarBearEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PufferfishEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
RabbitEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
SheepEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
SnowGolemEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
StriderEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
TadpoleEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
TameableEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
TraderLlamaEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
TropicalFishEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
TurtleEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
VillagerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
WanderingTraderEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
WolfEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
. -
Uses of NbtCompound in net.minecraft.entity.player
Modifier and TypeFieldDescriptionprotected static final TrackedData
<NbtCompound> PlayerEntity.LEFT_SHOULDER_ENTITY
protected static final TrackedData
<NbtCompound> PlayerEntity.RIGHT_SHOULDER_ENTITY
Modifier and TypeMethodDescriptionPlayerEntity.getShoulderEntityLeft()
PlayerEntity.getShoulderEntityRight()
Modifier and TypeMethodDescriptionboolean
PlayerEntity.addShoulderEntity
(NbtCompound entityNbt) private void
PlayerEntity.dropShoulderEntity
(NbtCompound entityNbt) void
PlayerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
HungerManager.readNbt
(NbtCompound nbt) void
PlayerAbilities.readNbt
(NbtCompound nbt) protected void
PlayerEntity.setShoulderEntityLeft
(NbtCompound entityNbt) protected void
PlayerEntity.setShoulderEntityRight
(NbtCompound entityNbt) private void
PlayerEntity.updateShoulderEntity
(@Nullable NbtCompound entityNbt) void
PlayerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
HungerManager.writeNbt
(NbtCompound nbt) void
PlayerAbilities.writeNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionvoid
AbstractFireballEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ExplosiveProjectileEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
FireballEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
FireworkRocketEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
FishingBobberEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
PersistentProjectileEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
ProjectileEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
ShulkerBulletEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
SpectralArrowEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
TridentEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
WitherSkullEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
AbstractFireballEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
ExplosiveProjectileEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
FireballEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
FireworkRocketEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
FishingBobberEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
PersistentProjectileEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
ProjectileEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
ShulkerBulletEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
SpectralArrowEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
TridentEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.void
WitherSkullEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
. -
Uses of NbtCompound in net.minecraft.entity.projectile.thrown
Modifier and TypeMethodDescriptionvoid
ThrownItemEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ThrownItemEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
. -
Uses of NbtCompound in net.minecraft.entity.raid
Modifier and TypeMethodDescriptionvoid
RaiderEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
RaiderEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
. -
Uses of NbtCompound in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionprotected void
AbstractMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
BoatEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
ChestBoatEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
CommandBlockMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
FurnaceMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
HopperMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
SpawnerMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
StorageMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.protected void
TntMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.default void
VehicleInventory.readInventoryFromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registriesLookup) protected void
AbstractMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
BoatEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
ChestBoatEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
CommandBlockMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
FurnaceMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
HopperMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
SpawnerMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
StorageMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.protected void
TntMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.default void
VehicleInventory.writeInventoryToNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registriesLookup) -
Uses of NbtCompound in net.minecraft.inventory
Modifier and TypeMethodDescriptionstatic NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt
.static NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt
.Modifier and TypeMethodDescriptionstatic ContainerLock
ContainerLock.fromNbt
(NbtCompound nbt) Creates a newContainerLock
from theLock
key of the NBT compound.default boolean
LootableInventory.readLootTable
(NbtCompound nbt) Reads the loot table and seed fromnbt
, if the loot table exists innbt
.static void
Inventories.readNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Readsnbt
and sets the elements ofstacks
accordingly.default boolean
LootableInventory.writeLootTable
(NbtCompound nbt) void
ContainerLock.writeNbt
(NbtCompound nbt) Inserts the key string of this lock into theLock
key of the NBT compound.static NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt
.static NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt
. -
Uses of NbtCompound in net.minecraft.item
Modifier and TypeMethodDescriptionstatic ItemStack
ItemStack.fromNbtOrEmpty
(RegistryWrapper.WrapperLookup registries, NbtCompound nbt) static void
BlockItem.setBlockEntityData
(ItemStack stack, BlockEntityType<?> type, NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.item.map
Modifier and TypeMethodDescriptionMapFrameMarker.toNbt()
MapState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Modifier and TypeMethodDescriptionstatic @Nullable MapFrameMarker
MapFrameMarker.fromNbt
(NbtCompound nbt) static MapState
MapState.fromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) MapState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) -
Uses of NbtCompound in net.minecraft.loot.function
Modifier and TypeMethodDescriptionstatic ConditionalLootFunction.Builder
<?> SetCustomDataLootFunction.builder
(NbtCompound nbt) Deprecated.ModifierConstructorDescriptionprivate
SetCustomDataLootFunction
(List<LootCondition> conditions, NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.nbt
Modifier 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
Modifier and TypeMethodDescriptionprotected NbtCompound
NbtOps.MapBuilder.append
(String string, NbtElement nbtElement, NbtCompound nbtCompound) NbtCompound.copy()
NbtCompound.copyFrom
(NbtCompound source) Merges the entries ofsource
to this compound.private static NbtCompound
NbtOps.CompoundListMerger.createMarkerNbt
(NbtElement value) 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.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.protected NbtCompound
NbtOps.MapBuilder.initBuilder()
static NbtCompound
Returns the NBT compound parsed from thestring
.StringNbtReader.parseCompound()
Returns the parsed NBT compound.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
.(package private) NbtCompound
StringNbtReader.readCompound()
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) Modifier and TypeMethodDescriptionNbtCompound.getNbtType()
Returns the NBT type definition of this NBT element.Modifier 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
NbtOps.CompoundListMerger.isMarker
(NbtCompound nbt) static NbtCompound
NbtHelper.putDataVersion
(NbtCompound nbt) static NbtCompound
NbtHelper.putDataVersion
(NbtCompound nbt, int dataVersion) NbtHelper.toBlockPos
(NbtCompound nbt, String key) Returns the block position from thenbt
.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
NbtOps.unpackMarker
(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.visitor
Modifier 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
Modifier and TypeMethodDescriptionPacketByteBuf.readNbt()
Reads an NBT compound from this buf.static @Nullable NbtCompound
-
Uses of NbtCompound in net.minecraft.network.codec
Modifier 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.Modifier and TypeMethodDescriptionstatic PacketCodec
<ByteBuf, NbtCompound> PacketCodecs.nbtCompound
(Supplier<NbtSizeTracker> sizeTracker) -
Uses of NbtCompound in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final NbtCompound
ChunkData.heightmap
private final NbtCompound
BlockEntityUpdateS2CPacket.nbt
(package private) final @Nullable NbtCompound
ChunkData.BlockEntityData.nbt
private final @Nullable NbtCompound
NbtQueryResponseS2CPacket.nbt
Modifier and TypeMethodDescriptionChunkData.getHeightmap()
BlockEntityUpdateS2CPacket.getNbt()
NbtQueryResponseS2CPacket.getNbt()
Modifier and TypeMethodDescriptionvoid
ChunkData.BlockEntityVisitor.accept
(BlockPos pos, BlockEntityType<?> type, @Nullable NbtCompound nbt) Modifier and TypeMethodDescriptionstatic BlockEntityUpdateS2CPacket
BlockEntityUpdateS2CPacket.create
(BlockEntity blockEntity, BiFunction<BlockEntity, DynamicRegistryManager, NbtCompound> nbtGetter) ModifierConstructorDescriptionprivate
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
Modifier and TypeFieldDescriptionprivate final NbtCompound
NbtPredicate.nbt
The field for thenbt
record component.Modifier and TypeMethodDescriptionstatic NbtCompound
NbtPredicate.entityToNbt
(Entity entity) NbtPredicate.nbt()
Returns the value of thenbt
record component.ModifierConstructorDescriptionNbtPredicate
(NbtCompound nbt) Creates an instance of aNbtPredicate
record class. -
Uses of NbtCompound in net.minecraft.recipe.book
Modifier and TypeMethodDescriptionstatic RecipeBookOptions
RecipeBookOptions.fromNbt
(NbtCompound nbt) void
RecipeBookOptions.writeNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.scoreboard
Modifier and TypeMethodDescriptionScoreboardScore.toNbt
(RegistryWrapper.WrapperLookup registries) ScoreboardState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Modifier and TypeMethodDescriptionstatic ScoreboardScore
ScoreboardScore.fromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) private void
ScoreboardState.readDisplaySlotsNbt
(NbtCompound nbt) ScoreboardState.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) private ScoreboardState
ServerScoreboard.stateFromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) private void
ScoreboardState.writeDisplaySlotsNbt
(NbtCompound nbt) ScoreboardState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) -
Uses of NbtCompound in net.minecraft.server
Modifier and TypeMethodDescriptionPlayerManager.getUserData()
Gets the user data of the player hosting the Minecraft server. -
Uses of NbtCompound in net.minecraft.server.command
Modifier and TypeFieldDescriptionprivate final NbtCompound
CloneCommand.BlockEntityInfo.nbt
The field for thenbt
record component.Modifier 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.Modifier 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, ExecuteCommand.FunctionNamesGetter<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) ModifierConstructorDescription(package private)
BlockEntityInfo
(NbtCompound nbtCompound, ComponentMap componentMap) -
Uses of NbtCompound in net.minecraft.server.function
Modifier 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
Modifier and TypeMethodDescriptionIntegratedPlayerManager.getUserData()
Gets the user data of the player hosting the Minecraft server. -
Uses of NbtCompound in net.minecraft.server.network
Modifier and TypeMethodDescriptionServerPlayerEntity.gameModeFromNbt
(@Nullable NbtCompound nbt, String key) void
ServerPlayerEntity.readCustomDataFromNbt
(NbtCompound nbt) Reads custom data fromnbt
.void
ServerPlayerEntity.readGameModeNbt
(@Nullable NbtCompound nbt) void
ServerRecipeBook.readNbt
(NbtCompound nbt, RecipeManager recipeManager) void
ServerPlayerEntity.writeCustomDataToNbt
(NbtCompound nbt) Writes custom data tonbt
.private void
ServerPlayerEntity.writeGameModeNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.server.world
Modifier and TypeMethodDescriptionprivate NbtCompound
ThreadedAnvilChunkStorage.updateChunkNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionprivate CompletableFuture
<Optional<NbtCompound>> ThreadedAnvilChunkStorage.getUpdatedChunkNbt
(ChunkPos chunkPos) Modifier and TypeMethodDescriptionprivate static boolean
ThreadedAnvilChunkStorage.containsStatus
(NbtCompound nbt) private NbtCompound
ThreadedAnvilChunkStorage.updateChunkNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionprivate static void
ThreadedAnvilChunkStorage.addEntitiesFromNbt
(ServerWorld world, List<NbtCompound> nbt) -
Uses of NbtCompound in net.minecraft.stat
Modifier and TypeMethodDescriptionprivate static NbtCompound
ServerStatHandler.jsonToCompound
(JsonObject json) -
Uses of NbtCompound in net.minecraft.structure
Modifier and TypeFieldDescriptionprivate final @Nullable NbtCompound
StructureTemplate.StructureBlockInfo.nbt
The field for thenbt
record component.final NbtCompound
StructureTemplate.StructureEntityInfo.nbt
Modifier 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) Modifier 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
(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) 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) ModifierConstructorDescriptionBase
(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
Modifier and TypeMethodDescriptionprivate NbtCompound
FeaturePoolElement.createDefaultJigsawNbt()
-
Uses of NbtCompound in net.minecraft.structure.processor
Modifier and TypeMethodDescriptionStructureProcessorRule.getOutputNbt
(Random random, @Nullable NbtCompound nbt) Modifier and TypeMethodDescriptionStructureProcessorRule.getOutputNbt
(Random random, @Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.structure.rule.blockentity
Modifier and TypeFieldDescriptionprivate final NbtCompound
AppendStaticRuleBlockEntityModifier.nbt
Modifier 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) Modifier 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) -
Uses of NbtCompound in net.minecraft.text
Modifier and TypeMethodDescriptionBlockNbtDataSource.get
(ServerCommandSource source) EntityNbtDataSource.get
(ServerCommandSource source) NbtDataSource.get
(ServerCommandSource source) StorageNbtDataSource.get
(ServerCommandSource source) -
Uses of NbtCompound in net.minecraft.util.math.random
Modifier and TypeMethodDescriptionRandomSequencesState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Modifier and TypeMethodDescriptionstatic RandomSequencesState
RandomSequencesState.fromNbt
(long seed, NbtCompound nbt) private static boolean
RandomSequencesState.getBooleanFromNbtOrFallback
(NbtCompound nbt, String key, boolean fallback) RandomSequencesState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) -
Uses of NbtCompound in net.minecraft.village.raid
Modifier and TypeMethodDescriptionRaid.writeNbt
(NbtCompound nbt) RaidManager.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Modifier and TypeMethodDescriptionstatic RaidManager
RaidManager.fromNbt
(ServerWorld world, NbtCompound nbt) Raid.writeNbt
(NbtCompound nbt) RaidManager.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) -
Uses of NbtCompound in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final BiFunction
<NbtCompound, RegistryWrapper.WrapperLookup, T> PersistentState.Type.deserializer
The field for thedeserializer
record component.private final Map
<String, Long2ObjectMap<NbtCompound>> FeatureUpdater.featureIdToChunkNbt
Modifier and TypeMethodDescriptionSaveProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) SaveProperties.getCustomBossEvents()
SaveProperties.getPlayerData()
FeatureUpdater.getUpdatedReferences
(NbtCompound nbt) private NbtCompound
FeatureUpdater.getUpdatedStarts
(NbtCompound nbt, ChunkPos pos) PersistentStateManager.readNbt
(String id, DataFixTypes dataFixTypes, int currentSaveVersion) static NbtCompound
ChunkSerializer.serialize
(ServerWorld world, Chunk chunk) GameRules.toNbt()
ChunkUpdateState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) CommandBlockExecutor.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) ForcedChunkState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) IdCountsState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) abstract NbtCompound
PersistentState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) private static NbtCompound
ChunkSerializer.writeStructures
(StructureContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, LongSet> references) Modifier and TypeMethodDescriptionPersistentState.Type.deserializer()
Returns the value of thedeserializer
record component.WorldSaveHandler.loadPlayerData
(PlayerEntity player) private Optional
<NbtCompound> WorldSaveHandler.loadPlayerData
(PlayerEntity player, String extension) Modifier and TypeMethodDescriptionSaveProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) private @Nullable Object2IntMap
<Structure> StructureLocator.collectStructuresAndReferences
(NbtCompound nbt) static ProtoChunk
ChunkSerializer.deserialize
(ServerWorld world, PointOfInterestStorage poiStorage, ChunkPos chunkPos, NbtCompound nbt) static ChunkUpdateState
ChunkUpdateState.fromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) static ForcedChunkState
ForcedChunkState.fromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) static IdCountsState
IdCountsState.fromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) static ChunkType
ChunkSerializer.getChunkType
(@Nullable NbtCompound nbt) private static WorldChunk.EntityLoader
ChunkSerializer.getEntityLoadingCallback
(ServerWorld world, NbtCompound nbt) ChunkSerializer.getList
(NbtCompound nbt, String key) FeatureUpdater.getUpdatedReferences
(NbtCompound nbt) private NbtCompound
FeatureUpdater.getUpdatedStarts
(NbtCompound nbt, ChunkPos pos) void
CommandBlockExecutor.readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) ChunkSerializer.readStructureReferences
(DynamicRegistryManager registryManager, ChunkPos pos, NbtCompound nbt) private static Map
<Structure, StructureStart> ChunkSerializer.readStructureStarts
(StructureContext context, NbtCompound nbt, long worldSeed) private static void
ChunkSerializer.serializeTicks
(ServerWorld world, NbtCompound nbt, Chunk.TickSchedulers tickSchedulers) void
SaveProperties.setCustomBossEvents
(@Nullable NbtCompound customBossEvents) ChunkUpdateState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) CommandBlockExecutor.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) ForcedChunkState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) IdCountsState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) abstract NbtCompound
PersistentState.writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Modifier and TypeMethodDescriptionprivate <T extends PersistentState>
TPersistentStateManager.readFromFile
(BiFunction<NbtCompound, RegistryWrapper.WrapperLookup, T> readFunction, DataFixTypes dataFixTypes, String id) ModifierConstructorDescriptionType
(Supplier<T> supplier, BiFunction<NbtCompound, RegistryWrapper.WrapperLookup, T> biFunction, DataFixTypes dataFixTypes) -
Uses of NbtCompound in net.minecraft.world.border
-
Uses of NbtCompound in net.minecraft.world.chunk
Modifier and TypeFieldDescriptionprotected final Map
<BlockPos, NbtCompound> Chunk.blockEntityNbts
private final List
<NbtCompound> ProtoChunk.entities
Modifier and TypeMethodDescriptionChunk.getBlockEntityNbt
(BlockPos pos) WrapperProtoChunk.getBlockEntityNbt
(BlockPos pos) abstract @Nullable NbtCompound
Chunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registryLookup) ProtoChunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registryLookup) WorldChunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registryLookup) WrapperProtoChunk.getPackedBlockEntityNbt
(BlockPos pos, RegistryWrapper.WrapperLookup registryLookup) UpgradeData.toNbt()
Modifier and TypeMethodDescriptionvoid
ProtoChunk.addEntity
(NbtCompound entityNbt) private static <T> void
UpgradeData.addNeighborTicks
(NbtCompound nbt, String key, Function<String, Optional<T>> nameToType, List<Tick<T>> ticks) void
Chunk.addPendingBlockEntityNbt
(NbtCompound nbt) void
WrapperProtoChunk.addPendingBlockEntityNbt
(NbtCompound nbt) static @Nullable BelowZeroRetrogen
BelowZeroRetrogen.fromNbt
(NbtCompound nbt) private @Nullable BlockEntity
WorldChunk.loadBlockEntity
(BlockPos pos, NbtCompound nbt) void
WorldChunk.loadFromPacket
(PacketByteBuf buf, NbtCompound nbt, Consumer<ChunkData.BlockEntityVisitor> consumer) -
Uses of NbtCompound in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate @Nullable NbtCompound
LevelProperties.customBossEvents
private final @Nullable NbtCompound
LevelProperties.playerData
Modifier and TypeMethodDescriptionLevelProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) LevelProperties.getCustomBossEvents()
LevelProperties.getPlayerData()
Modifier 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) ModifierConstructorDescriptionprivate
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
Modifier and TypeMethodDescription(package private) static NbtCompound
LevelStorage.readLevelProperties
(Path path) Modifier and TypeMethodDescriptionvoid
LevelStorage.Session.backupLevelDataFile
(DynamicRegistryManager registryManager, SaveProperties saveProperties, @Nullable NbtCompound nbt) private void
LevelStorage.Session.save
(NbtCompound nbt) Modifier and TypeMethodDescriptionprivate void
LevelStorage.Session.save
(Consumer<NbtCompound> nbtProcessor) -
Uses of NbtCompound in net.minecraft.world.storage
Modifier and TypeFieldDescription(package private) @Nullable NbtCompound
StorageIoWorker.Result.nbt
Modifier and TypeMethodDescriptionChunkPosKeyedStorage.update
(NbtCompound nbt, int oldVersion) VersionedChunkStorage.updateChunkNbt
(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey) Modifier and TypeMethodDescriptionprivate CompletableFuture
<Optional<NbtCompound>> StorageIoWorker.readChunkData
(ChunkPos pos) Modifier and TypeMethodDescriptionprivate static ChunkPos
EntityChunkDataAccess.getChunkPos
(NbtCompound chunkNbt) static int
VersionedChunkStorage.getDataVersion
(NbtCompound nbt) private boolean
StorageIoWorker.needsBlending
(NbtCompound nbt) private static void
EntityChunkDataAccess.putChunkPos
(NbtCompound chunkNbt, ChunkPos pos) 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) RecreatedChunkStorage.setNbt
(ChunkPos chunkPos, NbtCompound nbt) VersionedChunkStorage.setNbt
(ChunkPos chunkPos, NbtCompound nbt) StorageIoWorker.setResult
(ChunkPos pos, @Nullable NbtCompound nbt) ChunkPosKeyedStorage.update
(NbtCompound nbt, int oldVersion) private void
SerializingRegionBasedStorage.update
(ChunkPos pos, RegistryOps<NbtElement> ops, @Nullable NbtCompound nbt) 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) -
Uses of NbtCompound in net.minecraft.world.tick
Modifier and TypeMethodDescriptionstatic <T> NbtCompound
Tick.orderedTickToNbt
(OrderedTick<T> orderedTick, Function<T, String> typeToNameFunction, long delay) private static NbtCompound
Tick.toNbt
(String type, BlockPos pos, int delay, TickPriority priority) -
Uses of NbtCompound in net.minecraft.world.timer
Modifier and TypeMethodDescriptionprivate NbtCompound
Timer.serialize
(Timer.Event<T> event) <T extends TimerCallback<C>>
NbtCompoundTimerCallbackSerializer.serialize
(T callback) Modifier and TypeMethodDescriptionprivate void
Timer.addEvent
(NbtCompound nbt) FunctionTagTimerCallback.Serializer.deserialize
(NbtCompound nbtCompound) FunctionTimerCallback.Serializer.deserialize
(NbtCompound nbtCompound) abstract C
TimerCallback.Serializer.deserialize
(NbtCompound nbt) TimerCallbackSerializer.deserialize
(NbtCompound nbt) void
FunctionTagTimerCallback.Serializer.serialize
(NbtCompound nbtCompound, FunctionTagTimerCallback functionTagTimerCallback) void
FunctionTimerCallback.Serializer.serialize
(NbtCompound nbtCompound, FunctionTimerCallback functionTimerCallback) abstract void
TimerCallback.Serializer.serialize
(NbtCompound nbt, C callback) -
Uses of NbtCompound in net.minecraft.world.updater
Modifier 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) Modifier 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)