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 TypeFieldDescription(package private) final NbtCompound
BeehiveBlockEntity.Bee.entityData
Modifier and TypeMethodDescriptionfinal NbtCompound
BlockEntity.createNbt()
final NbtCompound
BlockEntity.createNbtWithId()
final NbtCompound
BlockEntity.createNbtWithIdentifyingData()
BannerBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.BeaconBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.BlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.CampfireBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.ConduitBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.EndGatewayBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.JigsawBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.MobSpawnerBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.PistonBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.SignBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.SkullBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.StructureBlockBlockEntity.toInitialChunkDataNbt()
Serializes the state of this block entity that is observable by clients.Modifier and TypeMethodDescriptionvoid
BeehiveBlockEntity.addBee
(NbtCompound nbtCompound, int ticksInHive, boolean hasNectar) static @Nullable BlockEntity
BlockEntity.createFromNbt
(BlockPos pos, BlockState state, NbtCompound nbt) protected boolean
LootableContainerBlockEntity.deserializeLootTable
(NbtCompound nbt) static BlockPos
BlockEntity.posFromNbt
(NbtCompound nbt) void
ShulkerBoxBlockEntity.readInventoryNbt
(NbtCompound nbt) void
AbstractFurnaceBlockEntity.readNbt
(NbtCompound nbt) void
BannerBlockEntity.readNbt
(NbtCompound nbt) void
BarrelBlockEntity.readNbt
(NbtCompound nbt) void
BeaconBlockEntity.readNbt
(NbtCompound nbt) void
BeehiveBlockEntity.readNbt
(NbtCompound nbt) void
BlockEntity.readNbt
(NbtCompound nbt) void
BrewingStandBlockEntity.readNbt
(NbtCompound nbt) void
CampfireBlockEntity.readNbt
(NbtCompound nbt) void
ChestBlockEntity.readNbt
(NbtCompound nbt) void
CommandBlockBlockEntity.readNbt
(NbtCompound nbt) void
ComparatorBlockEntity.readNbt
(NbtCompound nbt) void
ConduitBlockEntity.readNbt
(NbtCompound nbt) void
DispenserBlockEntity.readNbt
(NbtCompound nbt) void
EnchantingTableBlockEntity.readNbt
(NbtCompound nbt) void
EndGatewayBlockEntity.readNbt
(NbtCompound nbt) void
HopperBlockEntity.readNbt
(NbtCompound nbt) void
JigsawBlockEntity.readNbt
(NbtCompound nbt) void
JukeboxBlockEntity.readNbt
(NbtCompound nbt) void
LecternBlockEntity.readNbt
(NbtCompound nbt) void
LockableContainerBlockEntity.readNbt
(NbtCompound nbt) void
MobSpawnerBlockEntity.readNbt
(NbtCompound nbt) void
PistonBlockEntity.readNbt
(NbtCompound nbt) void
SculkCatalystBlockEntity.readNbt
(NbtCompound nbt) void
SculkSensorBlockEntity.readNbt
(NbtCompound nbt) void
SculkShriekerBlockEntity.readNbt
(NbtCompound nbt) void
SculkSpreadManager.readNbt
(NbtCompound nbt) void
ShulkerBoxBlockEntity.readNbt
(NbtCompound nbt) void
SignBlockEntity.readNbt
(NbtCompound nbt) void
SkullBlockEntity.readNbt
(NbtCompound nbt) void
StructureBlockBlockEntity.readNbt
(NbtCompound nbt) (package private) static void
BeehiveBlockEntity.removeIrrelevantNbtKeys
(NbtCompound compound) protected boolean
LootableContainerBlockEntity.serializeLootTable
(NbtCompound nbt) private void
BlockEntity.writeIdentifyingData
(NbtCompound nbt) private void
BlockEntity.writeIdToNbt
(NbtCompound nbt) static void
BlockEntity.writeIdToNbt
(NbtCompound nbt, BlockEntityType<?> type) protected void
AbstractFurnaceBlockEntity.writeNbt
(NbtCompound nbt) protected void
BannerBlockEntity.writeNbt
(NbtCompound nbt) protected void
BarrelBlockEntity.writeNbt
(NbtCompound nbt) protected void
BeaconBlockEntity.writeNbt
(NbtCompound nbt) protected void
BeehiveBlockEntity.writeNbt
(NbtCompound nbt) protected void
BlockEntity.writeNbt
(NbtCompound nbt) protected void
BrewingStandBlockEntity.writeNbt
(NbtCompound nbt) protected void
CampfireBlockEntity.writeNbt
(NbtCompound nbt) protected void
ChestBlockEntity.writeNbt
(NbtCompound nbt) protected void
CommandBlockBlockEntity.writeNbt
(NbtCompound nbt) protected void
ComparatorBlockEntity.writeNbt
(NbtCompound nbt) protected void
ConduitBlockEntity.writeNbt
(NbtCompound nbt) protected void
DispenserBlockEntity.writeNbt
(NbtCompound nbt) protected void
EnchantingTableBlockEntity.writeNbt
(NbtCompound nbt) protected void
EndGatewayBlockEntity.writeNbt
(NbtCompound nbt) protected void
HopperBlockEntity.writeNbt
(NbtCompound nbt) protected void
JigsawBlockEntity.writeNbt
(NbtCompound nbt) protected void
JukeboxBlockEntity.writeNbt
(NbtCompound nbt) protected void
LecternBlockEntity.writeNbt
(NbtCompound nbt) protected void
LockableContainerBlockEntity.writeNbt
(NbtCompound nbt) protected void
MobSpawnerBlockEntity.writeNbt
(NbtCompound nbt) protected void
PistonBlockEntity.writeNbt
(NbtCompound nbt) protected void
SculkCatalystBlockEntity.writeNbt
(NbtCompound nbt) protected void
SculkSensorBlockEntity.writeNbt
(NbtCompound nbt) protected void
SculkShriekerBlockEntity.writeNbt
(NbtCompound nbt) void
SculkSpreadManager.writeNbt
(NbtCompound nbt) protected void
ShulkerBoxBlockEntity.writeNbt
(NbtCompound nbt) protected void
SignBlockEntity.writeNbt
(NbtCompound nbt) protected void
SkullBlockEntity.writeNbt
(NbtCompound nbt) protected void
StructureBlockBlockEntity.writeNbt
(NbtCompound nbt) ModifierConstructorDescription(package private)
Bee
(NbtCompound entityData, int ticksInHive, int minOccupationTicks) -
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.gui.screen.ingame
Modifier and TypeMethodDescriptionstatic void
BookScreen.filterPages
(NbtCompound nbt, Consumer<String> pageConsumer) BookScreen.readPages
(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.particle
ModifierConstructorDescriptionFireworkParticle
(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, ParticleManager particleManager, @Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.addFireworkParticle
(double x, double y, double z, double velocityX, double velocityY, double velocityZ, @Nullable NbtCompound nbt) ClientChunkManager.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) 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) -
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
private final @Nullable NbtCompound
ItemStackArgument.nbt
private final @Nullable NbtCompound
ItemStringReader.ItemResult.nbt
The field for thenbt
record component.private @Nullable NbtCompound
ItemStringReader.nbt
private final @Nullable NbtCompound
ItemStringReader.TagResult.nbt
The field for thenbt
record component.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.ItemStringReader.ItemResult.nbt()
Returns the value of thenbt
record component.ItemStringReader.TagResult.nbt()
Returns the value of thenbt
record component.NbtCompoundArgumentType.parse
(com.mojang.brigadier.StringReader stringReader) Modifier and TypeMethodDescriptionprivate static ItemPredicateArgumentType.ItemStackPredicateArgument
ItemPredicateArgumentType.getItemStackPredicate
(Predicate<RegistryEntry<Item>> predicate, @Nullable NbtCompound nbt) (package private) static Predicate<NbtElement>
NbtPathArgumentType.getPredicate
(NbtCompound filter) 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) ItemResult
(RegistryEntry<Item> registryEntry, @Nullable NbtCompound nbtCompound) ItemStackArgument
(RegistryEntry<Item> item, @Nullable NbtCompound nbt) 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) TagResult
(RegistryEntryList<Item> registryEntryList, @Nullable NbtCompound nbtCompound) -
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 TypeMethodDescriptionprivate static NbtCompound
StructureValidatorProvider.addDataVersion
(NbtCompound nbt) private static NbtCompound
StructureValidatorProvider.internalUpdate
(String name, NbtCompound nbt) static NbtCompound
StructureValidatorProvider.update
(String name, NbtCompound nbt) StructureValidatorProvider.write
(String name, NbtCompound nbt) Modifier and TypeMethodDescriptionprivate static NbtCompound
StructureValidatorProvider.addDataVersion
(NbtCompound nbt) private static NbtCompound
StructureValidatorProvider.internalUpdate
(String name, NbtCompound nbt) static NbtCompound
StructureValidatorProvider.update
(String name, NbtCompound nbt) StructureValidatorProvider.write
(String name, NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic NbtCompound
EnchantmentHelper.createNbt
(@Nullable Identifier id, int lvl) Modifier and TypeMethodDescriptionstatic @Nullable Identifier
EnchantmentHelper.getIdFromNbt
(NbtCompound nbt) static int
EnchantmentHelper.getLevelFromNbt
(NbtCompound nbt) static void
EnchantmentHelper.writeLevelToNbt
(NbtCompound nbt, int lvl) -
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) EntityType.create
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) 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) static void
EntityType.loadFromEntityNbt
(World world, @Nullable PlayerEntity player, @Nullable Entity entity, @Nullable NbtCompound itemNbt) protected void
AreaEffectCloudEntity.readCustomDataFromNbt
(NbtCompound nbt) protected abstract void
Entity.readCustomDataFromNbt
(NbtCompound nbt) void
ExperienceOrbEntity.readCustomDataFromNbt
(NbtCompound nbt) void
EyeOfEnderEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
FallingBlockEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ItemEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
LightningEntity.readCustomDataFromNbt
(NbtCompound nbt) void
LivingEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
MarkerEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
TntEntity.readCustomDataFromNbt
(NbtCompound nbt) void
Entity.readNbt
(NbtCompound nbt) void
SaddledComponent.readNbt
(NbtCompound nbt) boolean
Entity.saveNbt
(NbtCompound nbt) boolean
Entity.saveSelfNbt
(NbtCompound nbt) EntityType.spawn
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) protected void
AreaEffectCloudEntity.writeCustomDataToNbt
(NbtCompound nbt) protected abstract void
Entity.writeCustomDataToNbt
(NbtCompound nbt) void
ExperienceOrbEntity.writeCustomDataToNbt
(NbtCompound nbt) void
EyeOfEnderEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
FallingBlockEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ItemEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
LightningEntity.writeCustomDataToNbt
(NbtCompound nbt) void
LivingEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
MarkerEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
TntEntity.writeCustomDataToNbt
(NbtCompound nbt) 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 TypeMethodDescriptionstatic CommandBossBar
CommandBossBar.fromNbt
(NbtCompound nbt, Identifier id) void
WitherEntity.readCustomDataFromNbt
(NbtCompound nbt) void
BossBarManager.readNbt
(NbtCompound nbt) void
WitherEntity.writeCustomDataToNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionvoid
EnderDragonEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
EnderDragonPart.readCustomDataFromNbt
(NbtCompound nbt) void
EnderDragonEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
EnderDragonPart.writeCustomDataToNbt
(NbtCompound nbt) ModifierConstructorDescriptionEnderDragonFight
(ServerWorld world, long gatewaysSeed, NbtCompound nbt) -
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) void
ArmorStandEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
EndCrystalEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ItemFrameEntity.readCustomDataFromNbt
(NbtCompound nbt) void
LeashKnotEntity.readCustomDataFromNbt
(NbtCompound nbt) private void
ArmorStandEntity.readPoseNbt
(NbtCompound nbt) void
AbstractDecorationEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ArmorStandEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
EndCrystalEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ItemFrameEntity.writeCustomDataToNbt
(NbtCompound nbt) void
LeashKnotEntity.writeCustomDataToNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.decoration.painting
Modifier and TypeMethodDescriptionvoid
PaintingEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PaintingEntity.writeCustomDataToNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.effect
Modifier and TypeMethodDescriptionprivate static StatusEffectInstance
StatusEffectInstance.fromNbt
(StatusEffect type, NbtCompound nbt) static @Nullable StatusEffectInstance
StatusEffectInstance.fromNbt
(NbtCompound nbt) StatusEffectInstance.writeNbt
(NbtCompound nbt) private void
StatusEffectInstance.writeTypelessNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate @Nullable NbtCompound
MobEntity.leashNbt
private @Nullable NbtCompound
ZombieVillagerEntity.offerData
Modifier and TypeMethodDescriptionAbstractSkeletonEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) CaveSpiderEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) DrownedEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) HoglinEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) IllusionerEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) MobEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PatrolEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PhantomEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PiglinBruteEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PiglinEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PillagerEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) ShulkerEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) SlimeEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) SpiderEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) VexEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) VindicatorEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) WardenEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) WitherSkeletonEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) ZombieEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) ZombieVillagerEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) default void
Angerable.readAngerFromNbt
(World world, NbtCompound nbt) void
AbstractPiglinEntity.readCustomDataFromNbt
(NbtCompound nbt) void
AbstractSkeletonEntity.readCustomDataFromNbt
(NbtCompound nbt) void
CreeperEntity.readCustomDataFromNbt
(NbtCompound nbt) void
EndermanEntity.readCustomDataFromNbt
(NbtCompound nbt) void
EndermiteEntity.readCustomDataFromNbt
(NbtCompound nbt) void
EvokerEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
EvokerFangsEntity.readCustomDataFromNbt
(NbtCompound nbt) void
GhastEntity.readCustomDataFromNbt
(NbtCompound nbt) void
HoglinEntity.readCustomDataFromNbt
(NbtCompound nbt) void
MobEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PatrolEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PhantomEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PiglinEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PillagerEntity.readCustomDataFromNbt
(NbtCompound nbt) void
RavagerEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ShulkerEntity.readCustomDataFromNbt
(NbtCompound nbt) void
SkeletonEntity.readCustomDataFromNbt
(NbtCompound nbt) void
SkeletonHorseEntity.readCustomDataFromNbt
(NbtCompound nbt) void
SlimeEntity.readCustomDataFromNbt
(NbtCompound nbt) void
SpellcastingIllagerEntity.readCustomDataFromNbt
(NbtCompound nbt) void
VexEntity.readCustomDataFromNbt
(NbtCompound nbt) void
VindicatorEntity.readCustomDataFromNbt
(NbtCompound nbt) void
WardenEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ZoglinEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ZombieEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ZombieVillagerEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ZombifiedPiglinEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ZombieVillagerEntity.setOfferData
(NbtCompound offerData) default void
Angerable.writeAngerToNbt
(NbtCompound nbt) void
AbstractPiglinEntity.writeCustomDataToNbt
(NbtCompound nbt) void
CreeperEntity.writeCustomDataToNbt
(NbtCompound nbt) void
EndermanEntity.writeCustomDataToNbt
(NbtCompound nbt) void
EndermiteEntity.writeCustomDataToNbt
(NbtCompound nbt) void
EvokerEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
EvokerFangsEntity.writeCustomDataToNbt
(NbtCompound nbt) void
GhastEntity.writeCustomDataToNbt
(NbtCompound nbt) void
HoglinEntity.writeCustomDataToNbt
(NbtCompound nbt) void
MobEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PatrolEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PhantomEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PiglinEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PillagerEntity.writeCustomDataToNbt
(NbtCompound nbt) void
RavagerEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ShulkerEntity.writeCustomDataToNbt
(NbtCompound nbt) void
SkeletonEntity.writeCustomDataToNbt
(NbtCompound nbt) void
SkeletonHorseEntity.writeCustomDataToNbt
(NbtCompound nbt) void
SlimeEntity.writeCustomDataToNbt
(NbtCompound nbt) void
SpellcastingIllagerEntity.writeCustomDataToNbt
(NbtCompound nbt) void
VexEntity.writeCustomDataToNbt
(NbtCompound nbt) void
VindicatorEntity.writeCustomDataToNbt
(NbtCompound nbt) void
WardenEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ZoglinEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ZombieEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ZombieVillagerEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ZombifiedPiglinEntity.writeCustomDataToNbt
(NbtCompound nbt) -
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) AbstractHorseEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) AxolotlEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) CatEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) DolphinEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) FoxEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) FrogEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) GoatEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) HorseEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) LlamaEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) MerchantEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) OcelotEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PandaEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) ParrotEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PassiveEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) PolarBearEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) RabbitEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) SchoolingFishEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) SheepEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) StriderEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) TraderLlamaEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) TropicalFishEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) TurtleEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) VillagerEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) void
AbstractDonkeyEntity.readCustomDataFromNbt
(NbtCompound nbt) void
AbstractHorseEntity.readCustomDataFromNbt
(NbtCompound nbt) void
AllayEntity.readCustomDataFromNbt
(NbtCompound nbt) void
AnimalEntity.readCustomDataFromNbt
(NbtCompound nbt) void
AxolotlEntity.readCustomDataFromNbt
(NbtCompound nbt) void
BatEntity.readCustomDataFromNbt
(NbtCompound nbt) void
BeeEntity.readCustomDataFromNbt
(NbtCompound nbt) void
CatEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ChickenEntity.readCustomDataFromNbt
(NbtCompound nbt) void
DolphinEntity.readCustomDataFromNbt
(NbtCompound nbt) void
FishEntity.readCustomDataFromNbt
(NbtCompound nbt) void
FoxEntity.readCustomDataFromNbt
(NbtCompound nbt) void
FrogEntity.readCustomDataFromNbt
(NbtCompound nbt) void
GlowSquidEntity.readCustomDataFromNbt
(NbtCompound nbt) void
GoatEntity.readCustomDataFromNbt
(NbtCompound nbt) void
HorseEntity.readCustomDataFromNbt
(NbtCompound nbt) void
IronGolemEntity.readCustomDataFromNbt
(NbtCompound nbt) void
LlamaEntity.readCustomDataFromNbt
(NbtCompound nbt) void
MerchantEntity.readCustomDataFromNbt
(NbtCompound nbt) void
MooshroomEntity.readCustomDataFromNbt
(NbtCompound nbt) void
OcelotEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PandaEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ParrotEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PassiveEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PigEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PolarBearEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PufferfishEntity.readCustomDataFromNbt
(NbtCompound nbt) void
RabbitEntity.readCustomDataFromNbt
(NbtCompound nbt) void
SheepEntity.readCustomDataFromNbt
(NbtCompound nbt) void
SnowGolemEntity.readCustomDataFromNbt
(NbtCompound nbt) void
StriderEntity.readCustomDataFromNbt
(NbtCompound nbt) void
TadpoleEntity.readCustomDataFromNbt
(NbtCompound nbt) void
TameableEntity.readCustomDataFromNbt
(NbtCompound nbt) void
TraderLlamaEntity.readCustomDataFromNbt
(NbtCompound nbt) void
TropicalFishEntity.readCustomDataFromNbt
(NbtCompound nbt) void
TurtleEntity.readCustomDataFromNbt
(NbtCompound nbt) void
VillagerEntity.readCustomDataFromNbt
(NbtCompound nbt) void
WanderingTraderEntity.readCustomDataFromNbt
(NbtCompound nbt) void
WolfEntity.readCustomDataFromNbt
(NbtCompound nbt) void
AbstractDonkeyEntity.writeCustomDataToNbt
(NbtCompound nbt) void
AbstractHorseEntity.writeCustomDataToNbt
(NbtCompound nbt) void
AllayEntity.writeCustomDataToNbt
(NbtCompound nbt) void
AnimalEntity.writeCustomDataToNbt
(NbtCompound nbt) void
AxolotlEntity.writeCustomDataToNbt
(NbtCompound nbt) void
BatEntity.writeCustomDataToNbt
(NbtCompound nbt) void
BeeEntity.writeCustomDataToNbt
(NbtCompound nbt) void
CatEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ChickenEntity.writeCustomDataToNbt
(NbtCompound nbt) void
DolphinEntity.writeCustomDataToNbt
(NbtCompound nbt) void
FishEntity.writeCustomDataToNbt
(NbtCompound nbt) void
FoxEntity.writeCustomDataToNbt
(NbtCompound nbt) void
FrogEntity.writeCustomDataToNbt
(NbtCompound nbt) void
GlowSquidEntity.writeCustomDataToNbt
(NbtCompound nbt) void
GoatEntity.writeCustomDataToNbt
(NbtCompound nbt) void
HorseEntity.writeCustomDataToNbt
(NbtCompound nbt) void
IronGolemEntity.writeCustomDataToNbt
(NbtCompound nbt) void
LlamaEntity.writeCustomDataToNbt
(NbtCompound nbt) void
MerchantEntity.writeCustomDataToNbt
(NbtCompound nbt) void
MooshroomEntity.writeCustomDataToNbt
(NbtCompound nbt) void
OcelotEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PandaEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ParrotEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PassiveEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PigEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PolarBearEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PufferfishEntity.writeCustomDataToNbt
(NbtCompound nbt) void
RabbitEntity.writeCustomDataToNbt
(NbtCompound nbt) void
SheepEntity.writeCustomDataToNbt
(NbtCompound nbt) void
SnowGolemEntity.writeCustomDataToNbt
(NbtCompound nbt) void
StriderEntity.writeCustomDataToNbt
(NbtCompound nbt) void
TadpoleEntity.writeCustomDataToNbt
(NbtCompound nbt) void
TameableEntity.writeCustomDataToNbt
(NbtCompound nbt) void
TraderLlamaEntity.writeCustomDataToNbt
(NbtCompound nbt) void
TropicalFishEntity.writeCustomDataToNbt
(NbtCompound nbt) void
TurtleEntity.writeCustomDataToNbt
(NbtCompound nbt) void
VillagerEntity.writeCustomDataToNbt
(NbtCompound nbt) void
WanderingTraderEntity.writeCustomDataToNbt
(NbtCompound nbt) void
WolfEntity.writeCustomDataToNbt
(NbtCompound nbt) -
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) 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) 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) void
ArrowEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ExplosiveProjectileEntity.readCustomDataFromNbt
(NbtCompound nbt) void
FireballEntity.readCustomDataFromNbt
(NbtCompound nbt) void
FireworkRocketEntity.readCustomDataFromNbt
(NbtCompound nbt) void
FishingBobberEntity.readCustomDataFromNbt
(NbtCompound nbt) void
PersistentProjectileEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
ProjectileEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
ShulkerBulletEntity.readCustomDataFromNbt
(NbtCompound nbt) void
SpectralArrowEntity.readCustomDataFromNbt
(NbtCompound nbt) void
TridentEntity.readCustomDataFromNbt
(NbtCompound nbt) void
AbstractFireballEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ArrowEntity.writeCustomDataToNbt
(NbtCompound nbt) void
ExplosiveProjectileEntity.writeCustomDataToNbt
(NbtCompound nbt) void
FireballEntity.writeCustomDataToNbt
(NbtCompound nbt) void
FireworkRocketEntity.writeCustomDataToNbt
(NbtCompound nbt) void
FishingBobberEntity.writeCustomDataToNbt
(NbtCompound nbt) void
PersistentProjectileEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
ProjectileEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
ShulkerBulletEntity.writeCustomDataToNbt
(NbtCompound nbt) void
SpectralArrowEntity.writeCustomDataToNbt
(NbtCompound nbt) void
TridentEntity.writeCustomDataToNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.projectile.thrown
Modifier and TypeMethodDescriptionvoid
ThrownItemEntity.readCustomDataFromNbt
(NbtCompound nbt) void
ThrownItemEntity.writeCustomDataToNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.raid
Modifier and TypeMethodDescriptionRaiderEntity.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) void
RaiderEntity.readCustomDataFromNbt
(NbtCompound nbt) void
RaiderEntity.writeCustomDataToNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionprotected void
AbstractMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
BoatEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
ChestBoatEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
CommandBlockMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
FurnaceMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
HopperMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
SpawnerMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
StorageMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) protected void
TntMinecartEntity.readCustomDataFromNbt
(NbtCompound nbt) default void
VehicleInventory.readInventoryFromNbt
(NbtCompound nbt) protected void
AbstractMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
BoatEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
ChestBoatEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
CommandBlockMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
FurnaceMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
HopperMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
SpawnerMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
StorageMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) protected void
TntMinecartEntity.writeCustomDataToNbt
(NbtCompound nbt) default void
VehicleInventory.writeInventoryToNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.inventory
Modifier and TypeMethodDescriptionstatic NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks) static NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty) Modifier and TypeMethodDescriptionstatic ContainerLock
ContainerLock.fromNbt
(NbtCompound nbt) Creates a newContainerLock
from theLock
key of the NBT compound.static void
Inventories.readNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks) 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) static NbtCompound
Inventories.writeNbt
(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty) -
Uses of NbtCompound in net.minecraft.item
Modifier and TypeFieldDescriptionprivate @Nullable NbtCompound
ItemStack.nbt
Represents the item stack's custom NBT.Modifier and TypeMethodDescriptionstatic @Nullable NbtCompound
BlockItem.getBlockEntityNbt
(ItemStack stack) ItemStack.getNbt()
Returns the custom NBT of this item stack, may benull
.ItemStack.getOrCreateNbt()
Returns the custom NBT of this item stack, or creates the custom NBT if the item stack did not have a custom NBT previously.ItemStack.getOrCreateSubNbt
(String key) Returns the compound NBT at the specified key in this item stack's NBT, or a new compound if absent.Returns the NBT compound at the specified key in this item stack's custom NBT, may benull
.ItemStack.writeNbt
(NbtCompound nbt) Writes the serialized item stack into the givenNbtCompound
.Modifier and TypeMethodDescriptionprivate static Optional<NbtCompound>
BundleItem.canMergeStack
(ItemStack stack, NbtList items) Modifier and TypeMethodDescriptionstatic void
FireworkStarItem.appendFireworkTooltip
(NbtCompound nbt, List<Text> tooltip) CompassItem.createLodestonePos
(NbtCompound nbt) static ItemStack
ItemStack.fromNbt
(NbtCompound nbt) Deserializes an item stack from NBT.EntityType<?>
SpawnEggItem.getEntityType
(@Nullable NbtCompound nbt) private static Optional<RegistryKey<World>>
CompassItem.getLodestoneDimension
(NbtCompound nbt) boolean
SpawnEggItem.isOfSameEntityType
(@Nullable NbtCompound nbt, EntityType<?> type) static boolean
WritableBookItem.isValid
(@Nullable NbtCompound nbt) static boolean
WrittenBookItem.isValid
(@Nullable NbtCompound nbt) void
Item.postProcessNbt
(NbtCompound nbt) void
SkullItem.postProcessNbt
(NbtCompound nbt) static void
BlockItem.setBlockEntityNbt
(ItemStack stack, BlockEntityType<?> blockEntityType, NbtCompound tag) void
ItemStack.setNbt
(@Nullable NbtCompound nbt) Sets the custom NBT of this item stack.private void
CompassItem.writeNbt
(RegistryKey<World> worldKey, BlockPos pos, NbtCompound nbt) ItemStack.writeNbt
(NbtCompound nbt) Writes the serialized item stack into the givenNbtCompound
.ModifierConstructorDescriptionprivate
ItemStack
(ItemConvertible item, int count, Optional<NbtCompound> nbt) -
Uses of NbtCompound in net.minecraft.item.map
Modifier and TypeMethodDescriptionMapBannerMarker.getNbt()
MapFrameMarker.toNbt()
MapState.writeNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionstatic MapBannerMarker
MapBannerMarker.fromNbt
(NbtCompound nbt) static MapFrameMarker
MapFrameMarker.fromNbt
(NbtCompound nbt) static MapState
MapState.fromNbt
(NbtCompound nbt) MapState.writeNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.loot.function
Modifier and TypeMethodDescriptionstatic ConditionalLootFunction.Builder<?>
SetNbtLootFunction.builder
(NbtCompound nbt) Deprecated.ModifierConstructorDescription(package private)
SetNbtLootFunction
(LootCondition[] conditions, NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.nbt
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NbtCompound>
NbtCompound.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.static NbtCompound
NbtHelper.fromBlockPos
(BlockPos pos) Returns the serialized block position.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
Reads an NBT compound frominput
.static NbtCompound
NbtIo.read
(DataInput input, NbtTagSizeTracker tracker) Reads an NBT compound frominput
.static @Nullable NbtCompound
Reads an NBT compound fromfile
.(package private) NbtCompound
StringNbtReader.readCompound()
static NbtCompound
NbtIo.readCompressed
(File file) Reads an NBT compound from Gzip-compressedfile
.static NbtCompound
NbtIo.readCompressed
(InputStream stream) Reads an NBT compound from Gzip-compressedstream
.(package private) static NbtCompound
NbtHelper.toNbtProviderFormat
(NbtCompound compound) static NbtCompound
NbtHelper.update
(com.mojang.datafixers.DataFixer fixer, DataFixTypes fixTypes, NbtCompound compound, int oldVersion) Uses the data fixer to update an NBT compound object to the latest data version.static NbtCompound
NbtHelper.update
(com.mojang.datafixers.DataFixer fixer, DataFixTypes fixTypes, NbtCompound compound, int oldVersion, int targetVersion) Uses the data fixer to update an NBT compound object.static NbtCompound
NbtHelper.writeGameProfile
(NbtCompound nbt, com.mojang.authlib.GameProfile profile) Writes the game profile tonbt
.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 BlockPos
NbtHelper.toBlockPos
(NbtCompound nbt) Returns the block position from thenbt
.static BlockState
NbtHelper.toBlockState
(NbtCompound nbt) Returns the block state from thenbt
.static @Nullable com.mojang.authlib.GameProfile
NbtHelper.toGameProfile
(NbtCompound nbt) Returns the game profile converted fromnbt
.(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.static NbtCompound
NbtHelper.update
(com.mojang.datafixers.DataFixer fixer, DataFixTypes fixTypes, NbtCompound compound, int oldVersion) Uses the data fixer to update an NBT compound object to the latest data version.static NbtCompound
NbtHelper.update
(com.mojang.datafixers.DataFixer fixer, DataFixTypes fixTypes, NbtCompound compound, int oldVersion, int targetVersion) Uses the data fixer to update an NBT compound object.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, DataOutput output) Writes thenbt
tofile
.static void
NbtIo.write
(NbtCompound nbt, File file) Writes thenbt
tofile
.static void
NbtIo.writeCompressed
(NbtCompound nbt, File file) Writes the Gzip-compressednbt
tofile
.static void
NbtIo.writeCompressed
(NbtCompound nbt, OutputStream stream) Writes the Gzip-compressednbt
tostream
.static NbtCompound
NbtHelper.writeGameProfile
(NbtCompound nbt, com.mojang.authlib.GameProfile profile) Writes the game profile tonbt
. -
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.PacketByteBuf.readNbt
(NbtTagSizeTracker sizeTracker) Reads an NBT compound from this buf.PacketByteBuf.readUnlimitedNbt()
Reads an NBT compound from this buf.Modifier and TypeMethodDescriptionPacketByteBuf.writeNbt
(@Nullable NbtCompound compound) Writes an NBT compound to this buf. -
Uses of NbtCompound in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final NbtCompound
ChunkData.heightmap
private final @Nullable 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, Function<BlockEntity, 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.potion
Modifier and TypeMethodDescriptionstatic List<StatusEffectInstance>
PotionUtil.getCustomPotionEffects
(@Nullable NbtCompound nbt) static void
PotionUtil.getCustomPotionEffects
(@Nullable NbtCompound nbt, List<StatusEffectInstance> list) static Potion
PotionUtil.getPotion
(@Nullable NbtCompound compound) static List<StatusEffectInstance>
PotionUtil.getPotionEffects
(@Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.predicate
-
Uses of NbtCompound in net.minecraft.predicate.item
-
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 TypeMethodDescriptionprivate void
ScoreboardState.readDisplaySlotsNbt
(NbtCompound nbt) ScoreboardState.readNbt
(NbtCompound nbt) ServerScoreboard.stateFromNbt
(NbtCompound nbt) private void
ScoreboardState.writeDisplaySlotsNbt
(NbtCompound nbt) ScoreboardState.writeNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.server
Modifier and TypeMethodDescriptionPlayerManager.getUserData()
Gets the user data of the player hosting the Minecraft server.PlayerManager.loadPlayerData
(ServerPlayerEntity player) -
Uses of NbtCompound in net.minecraft.server.command
Modifier and TypeFieldDescriptionfinal @Nullable NbtCompound
CloneCommand.BlockInfo.blockEntityNbt
Modifier and TypeMethodDescriptionprivate static int
SummonCommand.execute
(ServerCommandSource source, Identifier entity, Vec3d pos, NbtCompound nbt, boolean initialize) private static int
DataCommand.executeInsert
(int integer, NbtCompound sourceNbt, NbtPathArgumentType.NbtPath path, List<NbtElement> elements) 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) ModifierConstructorDescriptionBlockInfo
(BlockPos pos, BlockState state, @Nullable NbtCompound blockEntityNbt) -
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) void
ServerRecipeBook.readNbt
(NbtCompound nbt, RecipeManager recipeManager) void
ServerPlayerEntity.setGameMode
(@Nullable NbtCompound nbt) void
ServerPlayerEntity.writeCustomDataToNbt
(NbtCompound nbt) 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 TypeFieldDescriptionfinal NbtCompound
Structure.StructureBlockInfo.nbt
final NbtCompound
Structure.StructureEntityInfo.nbt
Modifier and TypeMethodDescriptionfinal NbtCompound
StructurePiece.toNbt
(StructureContext context) StructureStart.toNbt
(StructureContext context, ChunkPos chunkPos) Structure.writeNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionprivate static StructurePlacementData
RuinedPortalStructurePiece.createPlacementData
(StructureManager manager, NbtCompound nbt, Identifier id) StructureManager.createStructure
(NbtCompound nbt) Structure.getEntity
(ServerWorldAccess world, NbtCompound nbt) StructurePieceType.load
(StructureContext context, NbtCompound nbt) default StructurePiece
StructurePieceType.ManagerAware.load
(StructureContext context, NbtCompound nbt) StructurePieceType.ManagerAware.load
(StructureManager structureManager, NbtCompound nbt) StructurePieceType.Simple.load
(NbtCompound nbt) default StructurePiece
StructurePieceType.Simple.load
(StructureContext context, NbtCompound nbt) static @Nullable StructureStart
StructureStart.method_41621
(StructureContext structureContext, NbtCompound nbtCompound, long long2) void
Structure.readNbt
(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) Structure.writeNbt
(NbtCompound nbt) protected abstract void
StructurePiece.writeNbt
(StructureContext context, 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
(StructureManager manager, NbtCompound nbt) Piece
(StructureManager manager, NbtCompound nbt) Piece
(StructurePieceType type, NbtCompound nbt) Piece
(StructureManager manager, NbtCompound nbt) Piece
(StructurePieceType type, NbtCompound nbt) Piece
(StructureManager holder, NbtCompound nbt) Piece
(StructureManager manager, NbtCompound nbt) Piece
(StructurePieceType type, NbtCompound nbt) Piece
(StructureManager manager, NbtCompound nbt) PoolStructurePiece
(StructureContext context, NbtCompound nbt) PortalRoom
(NbtCompound nbt) PrisonHall
(NbtCompound nbt) RightTurn
(NbtCompound nbt) RuinedPortalStructurePiece
(StructureManager manager, NbtCompound nbt) protected
ShiftableStructurePiece
(StructurePieceType type, NbtCompound nbt) SimpleRoom
(NbtCompound nbt) SimpleRoomTop
(NbtCompound nbt) SimpleStructurePiece
(StructurePieceType type, NbtCompound nbt, StructureManager structureManager, 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) 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 TypeFieldDescriptionprivate final @Nullable NbtCompound
StructureProcessorRule.outputNbt
ModifierConstructorDescriptionStructureProcessorRule
(RuleTest inputPredicate, RuleTest locationPredicate, PosRuleTest positionPredicate, BlockState outputState, Optional<NbtCompound> nbt) -
Uses of NbtCompound in net.minecraft.test
-
Uses of NbtCompound in net.minecraft.text
Modifier and TypeFieldDescriptionprivate final @Nullable NbtCompound
HoverEvent.ItemStackContent.nbt
Modifier and TypeMethodDescriptionBlockNbtDataSource.get
(ServerCommandSource source) EntityNbtDataSource.get
(ServerCommandSource source) NbtDataSource.get
(ServerCommandSource source) StorageNbtDataSource.get
(ServerCommandSource source) ModifierConstructorDescription(package private)
ItemStackContent
(Item item, int count, @Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.village
-
Uses of NbtCompound in net.minecraft.village.raid
Modifier and TypeMethodDescriptionRaid.writeNbt
(NbtCompound nbt) RaidManager.writeNbt
(NbtCompound nbt) Modifier and TypeMethodDescriptionstatic RaidManager
RaidManager.fromNbt
(ServerWorld world, NbtCompound nbt) Raid.writeNbt
(NbtCompound nbt) RaidManager.writeNbt
(NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final NbtCompound
MobSpawnerEntry.entity
The field for theentity
record component.Modifier and TypeFieldDescriptionprivate final Map<String,
Long2ObjectMap<NbtCompound>> FeatureUpdater.featureIdToChunkNbt
Modifier and TypeMethodDescriptionSaveProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) MobSpawnerEntry.entity()
Returns the value of theentity
record component.SaveProperties.getCustomBossEvents()
SaveProperties.getDragonFight()
MobSpawnerEntry.getNbt()
SaveProperties.getPlayerData()
FeatureUpdater.getUpdatedReferences
(NbtCompound nbt) private NbtCompound
FeatureUpdater.getUpdatedStarts
(NbtCompound nbt, ChunkPos pos) WorldSaveHandler.loadPlayerData
(PlayerEntity player) static NbtCompound
ChunkSerializer.serialize
(ServerWorld world, Chunk chunk) GameRules.toNbt()
ChunkUpdateState.writeNbt
(NbtCompound nbt) CommandBlockExecutor.writeNbt
(NbtCompound nbt) ForcedChunkState.writeNbt
(NbtCompound nbt) IdCountsState.writeNbt
(NbtCompound nbt) MobSpawnerLogic.writeNbt
(NbtCompound nbt) abstract NbtCompound
PersistentState.writeNbt
(NbtCompound nbt) private static NbtCompound
ChunkSerializer.writeStructures
(StructureContext context, ChunkPos pos, Map<StructureType, StructureStart> starts, Map<StructureType, LongSet> references) Modifier and TypeMethodDescriptionvoid
World.addFireworkParticle
(double x, double y, double z, double velocityX, double velocityY, double velocityZ, @Nullable NbtCompound nbt) SaveProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) private @Nullable Object2IntMap<StructureType>
StructureLocator.collectStructuresAndReferences
(NbtCompound nbt) static ProtoChunk
ChunkSerializer.deserialize
(ServerWorld world, PointOfInterestStorage poiStorage, ChunkPos chunkPos, NbtCompound nbt) static ChunkUpdateState
ChunkUpdateState.fromNbt
(NbtCompound nbt) static ForcedChunkState
ForcedChunkState.fromNbt
(NbtCompound nbt) static IdCountsState
IdCountsState.fromNbt
(NbtCompound nbt) static ChunkStatus.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) void
MobSpawnerLogic.readNbt
(@Nullable World world, BlockPos pos, NbtCompound nbt) private static Map<StructureType,
LongSet> ChunkSerializer.readStructureReferences
(DynamicRegistryManager dynamicRegistryManager, ChunkPos chunkPos, NbtCompound nbtCompound) private static Map<StructureType,
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) void
SaveProperties.setDragonFight
(NbtCompound dragonFight) ChunkUpdateState.writeNbt
(NbtCompound nbt) CommandBlockExecutor.writeNbt
(NbtCompound nbt) ForcedChunkState.writeNbt
(NbtCompound nbt) IdCountsState.writeNbt
(NbtCompound nbt) MobSpawnerLogic.writeNbt
(NbtCompound nbt) abstract NbtCompound
PersistentState.writeNbt
(NbtCompound nbt) Modifier and TypeMethodDescription<T extends PersistentState>
TPersistentStateManager.get
(Function<NbtCompound, T> readFunction, String id) <T extends PersistentState>
TPersistentStateManager.getOrCreate
(Function<NbtCompound, T> readFunction, Supplier<T> supplier, String id) private <T extends PersistentState>
TPersistentStateManager.readFromFile
(Function<NbtCompound, T> readFunction, String id) ModifierConstructorDescriptionMobSpawnerEntry
(NbtCompound nbtCompound, Optional<MobSpawnerEntry.CustomSpawnRules> optional) -
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) ReadOnlyChunk.getBlockEntityNbt
(BlockPos pos) abstract @Nullable NbtCompound
Chunk.getPackedBlockEntityNbt
(BlockPos pos) ProtoChunk.getPackedBlockEntityNbt
(BlockPos pos) ReadOnlyChunk.getPackedBlockEntityNbt
(BlockPos pos) WorldChunk.getPackedBlockEntityNbt
(BlockPos pos) 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
ReadOnlyChunk.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 NbtCompound
LevelProperties.dragonFight
private @Nullable NbtCompound
LevelProperties.playerData
Modifier and TypeMethodDescriptionLevelProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) LevelProperties.getCustomBossEvents()
LevelProperties.getDragonFight()
LevelProperties.getPlayerData()
Modifier and TypeMethodDescriptionLevelProperties.cloneWorldNbt
(DynamicRegistryManager registryManager, @Nullable NbtCompound playerNbt) static LevelProperties
LevelProperties.readProperties
(com.mojang.serialization.Dynamic<NbtElement> dynamic, com.mojang.datafixers.DataFixer dataFixer, int dataVersion, @Nullable NbtCompound playerData, LevelInfo levelInfo, SaveVersionInfo saveVersionInfo, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle) void
LevelProperties.setCustomBossEvents
(@Nullable NbtCompound customBossEvents) void
LevelProperties.setDragonFight
(NbtCompound dragonFight) private void
LevelProperties.updateProperties
(DynamicRegistryManager registryManager, NbtCompound levelNbt, @Nullable NbtCompound playerNbt) ModifierConstructorDescriptionprivate
LevelProperties
(@Nullable com.mojang.datafixers.DataFixer dataFixer, int dataVersion, @Nullable NbtCompound playerData, boolean modded, int spawnX, int spawnY, int spawnZ, 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, Timer<MinecraftServer> scheduledEvents, @Nullable NbtCompound customBossEvents, NbtCompound dragonFight, LevelInfo levelInfo, GeneratorOptions generatorOptions, com.mojang.serialization.Lifecycle lifecycle) -
Uses of NbtCompound in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionvoid
LevelStorage.Session.backupLevelDataFile
(DynamicRegistryManager registryManager, SaveProperties saveProperties, @Nullable NbtCompound nbt) -
Uses of NbtCompound in net.minecraft.world.storage
Modifier and TypeFieldDescription(package private) @Nullable NbtCompound
StorageIoWorker.Result.nbt
Modifier and TypeMethodDescriptionprivate NbtCompound
EntityChunkDataAccess.fixChunkData
(NbtCompound chunkNbt) VersionedChunkStorage.updateChunkNbt
(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> generatorCodecKey) Modifier and TypeMethodDescriptionprivate CompletableFuture<Optional<NbtCompound>>
StorageIoWorker.readChunkData
(ChunkPos pos) Modifier and TypeMethodDescriptionprivate NbtCompound
EntityChunkDataAccess.fixChunkData
(NbtCompound chunkNbt) static int
EntityChunkDataAccess.getChunkDataVersion
(NbtCompound chunkNbt) private 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.Codec<? extends ChunkGenerator>>> generatorCodecKey) void
VersionedChunkStorage.setNbt
(ChunkPos chunkPos, NbtCompound nbt) StorageIoWorker.setResult
(ChunkPos pos, @Nullable NbtCompound nbt) VersionedChunkStorage.updateChunkNbt
(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.Codec<? 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)