Uses of Class
net.minecraft.nbt.CompoundTag
Packages that use CompoundTag
Package
Description
-
Uses of CompoundTag in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
NbtPredicate.tag
The field for thetag
record component.Methods in net.minecraft.advancements.critereon that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTag
NbtPredicate.getEntityTagToCompare
(Entity pEntity) NbtPredicate.tag()
Returns the value of thetag
record component.Methods in net.minecraft.advancements.critereon with parameters of type CompoundTagConstructors in net.minecraft.advancements.critereon with parameters of type CompoundTagModifierConstructorDescriptionNbtPredicate
(CompoundTag tag) Creates an instance of aNbtPredicate
record class. -
Uses of CompoundTag in net.minecraft.client
Fields in net.minecraft.client with type parameters of type CompoundTagMethods in net.minecraft.client that return CompoundTagMethods in net.minecraft.client with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate void
KeyboardHandler.copyCreateBlockCommand
(BlockState pState, BlockPos pPos, CompoundTag pCompound) private void
KeyboardHandler.copyCreateEntityCommand
(ResourceLocation pEntityId, Vec3 pPos, CompoundTag pCompound) private CompoundTag
Options.dataFix
(CompoundTag pNbt) boolean
DebugQueryHandler.handleResponse
(int pTransactionId, CompoundTag pTag) Method parameters in net.minecraft.client with type arguments of type CompoundTagModifier and TypeMethodDescriptionvoid
DebugQueryHandler.queryBlockEntityTag
(BlockPos pPos, Consumer<CompoundTag> pTag) void
DebugQueryHandler.queryEntityTag
(int pEntId, Consumer<CompoundTag> pTag) private int
DebugQueryHandler.startTransaction
(Consumer<CompoundTag> pCallback) -
Uses of CompoundTag in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return CompoundTagMethods in net.minecraft.client.multiplayer with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ServerData
ServerData.read
(CompoundTag pNbtCompound) Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance. -
Uses of CompoundTag in net.minecraft.client.server
Fields in net.minecraft.client.server declared as CompoundTagMethods in net.minecraft.client.server that return CompoundTag -
Uses of CompoundTag in net.minecraft.commands.arguments
Fields in net.minecraft.commands.arguments declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
NbtPathArgument.MatchElementNode.pattern
private final CompoundTag
NbtPathArgument.MatchObjectNode.pattern
Methods in net.minecraft.commands.arguments that return CompoundTagModifier and TypeMethodDescriptionstatic <S> CompoundTag
CompoundTagArgument.getCompoundTag
(com.mojang.brigadier.context.CommandContext<S> pContext, String pName) CompoundTagArgument.parse
(com.mojang.brigadier.StringReader pReader) Methods in net.minecraft.commands.arguments with parameters of type CompoundTagModifier and TypeMethodDescriptionNbtPathArgument.createTagPredicate
(CompoundTag pTag) int
NbtPathArgument.NbtPath.insert
(int pIndex, CompoundTag pRootTag, List<Tag> pTagsToInsert) Constructors in net.minecraft.commands.arguments with parameters of type CompoundTagModifierConstructorDescriptionMatchElementNode
(CompoundTag pPattern) MatchObjectNode
(String pName, CompoundTag pPattern) -
Uses of CompoundTag in net.minecraft.commands.arguments.blocks
Fields in net.minecraft.commands.arguments.blocks declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
BlockPredicateArgument.BlockPredicate.nbt
private final CompoundTag
BlockPredicateArgument.TagPredicate.nbt
private final CompoundTag
BlockStateParser.BlockResult.nbt
The field for thenbt
record component.private CompoundTag
BlockStateParser.nbt
private final CompoundTag
BlockStateParser.TagResult.nbt
The field for thenbt
record component.private final CompoundTag
BlockInput.tag
Methods in net.minecraft.commands.arguments.blocks that return CompoundTagModifier and TypeMethodDescriptionBlockStateParser.BlockResult.nbt()
Returns the value of thenbt
record component.BlockStateParser.TagResult.nbt()
Returns the value of thenbt
record component.Constructors in net.minecraft.commands.arguments.blocks with parameters of type CompoundTagModifierConstructorDescriptionBlockInput
(BlockState pState, Set<Property<?>> pProperties, CompoundTag pTag) BlockPredicate
(BlockState pState, Set<Property<?>> pProperties, CompoundTag pNbt) BlockResult
(BlockState blockState, Map<Property<?>, Comparable<?>> properties, CompoundTag nbt) Creates an instance of aBlockResult
record class.(package private)
TagPredicate
(HolderSet<Block> pTag, Map<String, String> pVagueProperties, CompoundTag pNbt) Creates an instance of aTagResult
record class. -
Uses of CompoundTag in net.minecraft.commands.functions
Methods in net.minecraft.commands.functions with parameters of type CompoundTagModifier and TypeMethodDescriptionCommandFunction.instantiate
(CompoundTag pArguments, com.mojang.brigadier.CommandDispatcher<T> pDispatcher) MacroFunction.instantiate
(CompoundTag p_305810_, com.mojang.brigadier.CommandDispatcher<T> p_306149_) PlainTextFunction.instantiate
(CompoundTag p_306181_, com.mojang.brigadier.CommandDispatcher<T> p_306210_) -
Uses of CompoundTag in net.minecraft.data.structures
Methods in net.minecraft.data.structures that return CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply
(String pStructureLocationPath, CompoundTag pTag) StructureUpdater.apply
(String p_126503_, CompoundTag p_126504_) private CompoundTag
SnbtToNbt.applyFilters
(String pFileName, CompoundTag pTag) static CompoundTag
StructureUpdater.update
(String pStructureLocationPath, CompoundTag pTag) Methods in net.minecraft.data.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply
(String pStructureLocationPath, CompoundTag pTag) StructureUpdater.apply
(String p_126503_, CompoundTag p_126504_) private CompoundTag
SnbtToNbt.applyFilters
(String pFileName, CompoundTag pTag) static CompoundTag
StructureUpdater.update
(String pStructureLocationPath, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.nbt
Fields in net.minecraft.nbt with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CompoundTag> CompoundTag.CODEC
static final com.mojang.serialization.Codec
<CompoundTag> TagParser.FLATTENED_CODEC
static final com.mojang.serialization.Codec
<CompoundTag> TagParser.LENIENT_CODEC
static final TagType
<CompoundTag> CompoundTag.TYPE
Methods in net.minecraft.nbt that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.addCurrentDataVersion
(CompoundTag pTag) static CompoundTag
NbtUtils.addDataVersion
(CompoundTag pTag, int pDataVersion) protected CompoundTag
NbtOps.NbtRecordBuilder.append
(String pKey, Tag pValue, CompoundTag pTag) private static CompoundTag
TagParser.castToCompoundOrThrow
(com.mojang.brigadier.StringReader pReader, Tag pTag) CompoundTag.copy()
CompoundTag.getCompoundOrEmpty
(String pKey) ListTag.getCompoundOrEmpty
(int pIndex) protected CompoundTag
NbtOps.NbtRecordBuilder.initBuilder()
CompoundTag.merge
(CompoundTag pOther) Copies all the tags ofother
into this tag, then returns itself.(package private) static CompoundTag
NbtUtils.packStructureTemplate
(CompoundTag pTag) static CompoundTag
TagParser.parseCompoundAsArgument
(com.mojang.brigadier.StringReader pReader) static CompoundTag
TagParser.parseCompoundFully
(String pData) static CompoundTag
Reads a compound tag from a file.static CompoundTag
NbtIo.read
(DataInput pInput, NbtAccounter pAccounter) Reads a compound tag from a file.static CompoundTag
static CompoundTag
NbtIo.readCompressed
(InputStream pZippedStream, NbtAccounter pAccounter) static CompoundTag
NbtIo.readCompressed
(Path pPath, NbtAccounter pAccounter) protected CompoundTag
CompoundTag.shallowCopy()
static CompoundTag
NbtUtils.snbtToStructure
(String pText) (package private) static CompoundTag
NbtUtils.unpackBlockState
(String pBlockStateText) (package private) static CompoundTag
NbtUtils.unpackStructureTemplate
(CompoundTag pTag) private static CompoundTag
ListTag.wrapElement
(Tag pTag) static CompoundTag
NbtUtils.writeBlockState
(BlockState pState) static CompoundTag
NbtUtils.writeFluidState
(FluidState pState) Methods in net.minecraft.nbt that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionCompoundTag.asCompound()
default Optional
<CompoundTag> Tag.asCompound()
ListTag.compoundStream()
CompoundTag.getCompound
(String pKey) ListTag.getCompound
(int pIndex) CompoundTag.getType()
Methods in net.minecraft.nbt with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.addCurrentDataVersion
(CompoundTag pTag) static CompoundTag
NbtUtils.addDataVersion
(CompoundTag pTag, int pDataVersion) protected CompoundTag
NbtOps.NbtRecordBuilder.append
(String pKey, Tag pValue, CompoundTag pTag) protected com.mojang.serialization.DataResult
<Tag> NbtOps.NbtRecordBuilder.build
(CompoundTag p_129190_, Tag p_129191_) static int
NbtUtils.getDataVersion
(CompoundTag pTag, int pDefaultValue) SnbtPrinterTagVisitor.getKeys
(CompoundTag pTag) private static boolean
ListTag.isWrapper
(CompoundTag pTag) CompoundTag.merge
(CompoundTag pOther) Copies all the tags ofother
into this tag, then returns itself.(package private) static String
NbtUtils.packBlockState
(CompoundTag pTag) (package private) static CompoundTag
NbtUtils.packStructureTemplate
(CompoundTag pTag) static BlockState
NbtUtils.readBlockState
(HolderGetter<Block> pBlockGetter, CompoundTag pTag) private static <S extends StateHolder<?,
S>, T extends Comparable<T>>
SNbtUtils.setValueHelper
(S pStateHolder, Property<T> pProperty, String pPropertyName, CompoundTag pPropertiesTag, CompoundTag pBlockStateTag) static String
NbtUtils.structureToSnbt
(CompoundTag pTag) private static Tag
ListTag.tryUnwrap
(CompoundTag pTag) (package private) static CompoundTag
NbtUtils.unpackStructureTemplate
(CompoundTag pTag) void
SnbtPrinterTagVisitor.visitCompound
(CompoundTag p_178120_) void
StringTagVisitor.visitCompound
(CompoundTag p_178166_) void
TagVisitor.visitCompound
(CompoundTag pTag) void
TextComponentTagVisitor.visitCompound
(CompoundTag p_178260_) static void
NbtIo.write
(CompoundTag pCompoundTag, DataOutput pOutput) static void
NbtIo.write
(CompoundTag pCompoundTag, Path pPath) static void
NbtIo.writeCompressed
(CompoundTag pCompoundTag, OutputStream pOutputStream) Writes and compresses a compound tag to a GNU zipped file.static void
NbtIo.writeCompressed
(CompoundTag pCompoundTag, Path pPath) -
Uses of CompoundTag in net.minecraft.nbt.visitors
Fields in net.minecraft.nbt.visitors declared as CompoundTag -
Uses of CompoundTag in net.minecraft.network
Methods in net.minecraft.network that return CompoundTagModifier and TypeMethodDescriptionFriendlyByteBuf.readNbt()
static CompoundTag
FriendlyByteBuf.readNbt
(io.netty.buffer.ByteBuf pBuffer) -
Uses of CompoundTag in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionBlockDataSource.getData
(CommandSourceStack p_237323_) DataSource.getData
(CommandSourceStack pSource) EntityDataSource.getData
(CommandSourceStack p_237341_) StorageDataSource.getData
(CommandSourceStack p_237491_) -
Uses of CompoundTag in net.minecraft.network.codec
Fields in net.minecraft.network.codec with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final StreamCodec
<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.COMPOUND_TAG
static final StreamCodec
<io.netty.buffer.ByteBuf, Optional<CompoundTag>> ByteBufCodecs.OPTIONAL_COMPOUND_TAG
static final StreamCodec
<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.TRUSTED_COMPOUND_TAG
Methods in net.minecraft.network.codec that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionstatic StreamCodec
<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.compoundTagCodec
(Supplier<NbtAccounter> pAccounterSupplier) -
Uses of CompoundTag in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
ClientboundBlockEntityDataPacket.tag
(package private) final CompoundTag
ClientboundLevelChunkPacketData.BlockEntityInfo.tag
private final CompoundTag
ClientboundTagQueryPacket.tag
Methods in net.minecraft.network.protocol.game that return CompoundTagModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.getTag()
ClientboundTagQueryPacket.getTag()
Methods in net.minecraft.network.protocol.game with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ClientboundLevelChunkPacketData.BlockEntityTagOutput.accept
(BlockPos pPos, BlockEntityType<?> pType, CompoundTag pNbt) Method parameters in net.minecraft.network.protocol.game with type arguments of type CompoundTagModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create
(BlockEntity pBlockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> pDataGetter) Constructors in net.minecraft.network.protocol.game with parameters of type CompoundTagModifierConstructorDescriptionprivate
BlockEntityInfo
(int pPackedXZ, int pY, BlockEntityType<?> pType, CompoundTag pTag) private
ClientboundBlockEntityDataPacket
(BlockPos pPos, BlockEntityType<?> pType, CompoundTag pTag) ClientboundTagQueryPacket
(int pTransactionId, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final EntityDataSerializer
<CompoundTag> EntityDataSerializers.COMPOUND_TAG
-
Uses of CompoundTag in net.minecraft.server.bossevents
Methods in net.minecraft.server.bossevents that return CompoundTagMethods in net.minecraft.server.bossevents with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
CustomBossEvents.load
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) -
Uses of CompoundTag in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
CloneCommands.CloneBlockEntityInfo.tag
The field for thetag
record component.Methods in net.minecraft.server.commands that return CompoundTagModifier and TypeMethodDescriptionprotected abstract CompoundTag
FunctionCommand.FunctionCustomExecutor.arguments
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) (package private) static CompoundTag
FunctionCommand.getArgumentTag
(NbtPathArgument.NbtPath pNbtPath, DataAccessor pDataAccessor) CloneCommands.CloneBlockEntityInfo.tag()
Returns the value of thetag
record component.Methods in net.minecraft.server.commands with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.instantiateAndQueueFunctions
(CompoundTag pArguments, ExecutionControl<T> pExecutionControl, com.mojang.brigadier.CommandDispatcher<T> pDispatcher, T pSource, CommandFunction<T> pFunction, ResourceLocation pFunctionId, CommandResultCallback pResultCallback, boolean pReturnParentFrame) static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions
(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExecutionControl, FunctionCommand.Callbacks<T> pCallbacks, ChainModifiers pChainModifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn
(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExectutionControl, FunctionCommand.Callbacks<T> pCallbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn
(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExecutionControl, FunctionCommand.Callbacks<T> pCallbacks) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest
(T pOriginalSource, List<T> pSources, Function<T, T> pSourceModifier, IntPredicate pSuccessCheck, com.mojang.brigadier.context.ContextChain<T> pContextChain, CompoundTag pArguments, ExecutionControl<T> pExecutionControl, InCommandFunction<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> pFunctionsGetter, ChainModifiers pChainModifiers) private static int
SummonCommand.spawnEntity
(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) Constructors in net.minecraft.server.commands with parameters of type CompoundTagModifierConstructorDescription(package private)
CloneBlockEntityInfo
(CompoundTag tag, DataComponentMap components) Creates an instance of aCloneBlockEntityInfo
record class. -
Uses of CompoundTag in net.minecraft.server.commands.data
Methods in net.minecraft.server.commands.data that return CompoundTagModifier and TypeMethodDescriptionBlockDataAccessor.getData()
DataAccessor.getData()
EntityDataAccessor.getData()
StorageDataAccessor.getData()
Methods in net.minecraft.server.commands.data with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static int
DataCommands.mergeData
(CommandSourceStack pSource, DataAccessor pAccessor, CompoundTag pNbt) Merges the given NBT into the targeted object's NBT.int
DataCommands.DataManipulator.modify
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, CompoundTag pNbt, NbtPathArgument.NbtPath pNbtPath, List<Tag> pTags) void
BlockDataAccessor.setData
(CompoundTag pOther) void
DataAccessor.setData
(CompoundTag pOther) void
EntityDataAccessor.setData
(CompoundTag pOther) void
StorageDataAccessor.setData
(CompoundTag pOther) -
Uses of CompoundTag in net.minecraft.server.level
Methods in net.minecraft.server.level that return CompoundTagMethods in net.minecraft.server.level that return types with arguments of type CompoundTagMethods in net.minecraft.server.level with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ServerPlayer.addAdditionalSaveData
(CompoundTag pCompound) private void
ServerPlayer.loadAndSpawnEnderPearl
(CompoundTag pTag) void
ServerPlayer.loadAndSpawnEnderPearls
(CompoundTag pTag) void
ServerPlayer.loadAndSpawnParentVehicle
(CompoundTag pTag) void
ServerPlayer.loadGameTypes
(CompoundTag pTag) void
ServerPlayer.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.private static GameType
ServerPlayer.readPlayerMode
(CompoundTag pTag, String pKey) private void
ServerPlayer.saveEnderPearls
(CompoundTag pTag) private void
ServerPlayer.saveParentVehicle
(CompoundTag pTag) private void
ServerPlayer.storeGameTypes
(CompoundTag pTag) private CompoundTag
ChunkMap.upgradeChunkTag
(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.server.players
Methods in net.minecraft.server.players that return CompoundTagMethods in net.minecraft.server.players that return types with arguments of type CompoundTag -
Uses of CompoundTag in net.minecraft.stats
Methods in net.minecraft.stats that return CompoundTagMethods in net.minecraft.stats with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ServerRecipeBook.fromNbt
(CompoundTag pTag, Predicate<ResourceKey<Recipe<?>>> pIsRecognized) static RecipeBookSettings
RecipeBookSettings.read
(CompoundTag pTag) void
RecipeBookSettings.write
(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.util.datafix
Methods in net.minecraft.util.datafix that return CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion, int pNewVersion) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion) Methods in net.minecraft.util.datafix with parameters of type CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion, int pNewVersion) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion) -
Uses of CompoundTag in net.minecraft.util.datafix.fixes
Methods in net.minecraft.util.datafix.fixes that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTag
private static CompoundTag
TrialSpawnerConfigInRegistryFix.VanillaTrialChambers.removeDefaults
(CompoundTag pTag) Methods in net.minecraft.util.datafix.fixes with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Dynamic
<Tag> TrialSpawnerConfigInRegistryFix.VanillaTrialChambers.asDynamic
(CompoundTag pTag) private static CompoundTag
TrialSpawnerConfigInRegistryFix.VanillaTrialChambers.removeDefaults
(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.util.worldupdate
Methods in net.minecraft.util.worldupdate that return CompoundTagModifier and TypeMethodDescriptionprotected CompoundTag
WorldUpgrader.EntityUpgrader.upgradeTag
(SimpleRegionStorage p_321667_, CompoundTag p_321776_) protected CompoundTag
WorldUpgrader.PoiUpgrader.upgradeTag
(SimpleRegionStorage p_321589_, CompoundTag p_321492_) protected abstract CompoundTag
WorldUpgrader.SimpleRegionStorageUpgrader.upgradeTag
(SimpleRegionStorage pRegionStorage, CompoundTag pChunkTag) Methods in net.minecraft.util.worldupdate with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected CompoundTag
WorldUpgrader.EntityUpgrader.upgradeTag
(SimpleRegionStorage p_321667_, CompoundTag p_321776_) protected CompoundTag
WorldUpgrader.PoiUpgrader.upgradeTag
(SimpleRegionStorage p_321589_, CompoundTag p_321492_) protected abstract CompoundTag
WorldUpgrader.SimpleRegionStorageUpgrader.upgradeTag
(SimpleRegionStorage pRegionStorage, CompoundTag pChunkTag) -
Uses of CompoundTag in net.minecraft.world
Methods in net.minecraft.world that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTag
ContainerHelper.saveAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, boolean pAlwaysPutTag, HolderLookup.Provider pLevelRegistry) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) Methods in net.minecraft.world with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
LockCode.addToTag
(CompoundTag pTag, HolderLookup.Provider pRegistries) static LockCode
LockCode.fromTag
(CompoundTag pTag, HolderLookup.Provider pRegistries) static void
ContainerHelper.loadAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, boolean pAlwaysPutTag, HolderLookup.Provider pLevelRegistry) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) default boolean
RandomizableContainer.tryLoadLootTable
(CompoundTag pTag) default boolean
RandomizableContainer.trySaveLootTable
(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as CompoundTagMethods in net.minecraft.world.entity that return CompoundTagModifier and TypeMethodDescriptionEntity.getPersistentData()
Entity.saveWithoutId
(CompoundTag pCompound) Writes this entity, including passengers, to NBT, regardless as to whether it is removed or a passenger.Methods in net.minecraft.world.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AgeableMob.addAdditionalSaveData
(CompoundTag p_146761_) protected void
AreaEffectCloud.addAdditionalSaveData
(CompoundTag pCompound) protected void
Display.addAdditionalSaveData
(CompoundTag p_270779_) protected void
Display.BlockDisplay.addAdditionalSaveData
(CompoundTag p_270469_) protected void
Display.ItemDisplay.addAdditionalSaveData
(CompoundTag p_270669_) protected void
Display.TextDisplay.addAdditionalSaveData
(CompoundTag p_270268_) protected abstract void
Entity.addAdditionalSaveData
(CompoundTag pTag) void
ExperienceOrb.addAdditionalSaveData
(CompoundTag pCompound) void
GlowSquid.addAdditionalSaveData
(CompoundTag p_147122_) protected void
Interaction.addAdditionalSaveData
(CompoundTag p_273772_) protected void
LightningBolt.addAdditionalSaveData
(CompoundTag pCompound) void
LivingEntity.addAdditionalSaveData
(CompoundTag pCompound) protected void
Marker.addAdditionalSaveData
(CompoundTag p_147257_) void
Mob.addAdditionalSaveData
(CompoundTag pCompound) protected void
OminousItemSpawner.addAdditionalSaveData
(CompoundTag p_338411_) void
TamableAnimal.addAdditionalSaveData
(CompoundTag pCompound) default void
NeutralMob.addPersistentAngerSaveData
(CompoundTag pNbt) static Optional
<EntityType<?>> EntityType.by
(CompoundTag pTag) EntityType.create
(CompoundTag pTag, Level pLevel, EntitySpawnReason pSpawnReason) void
Entity.load
(CompoundTag pCompound) Reads the entity from NBT (calls an abstract helper method to read specialized data)static Entity
EntityType.loadEntityRecursive
(CompoundTag pEntityTag, Level pLevel, EntitySpawnReason pSpawnReason, Function<Entity, Entity> pAdapter) private static byte
Display.TextDisplay.loadFlag
(byte pCurrentValue, CompoundTag pTag, String pFlag, byte pMask) EntityType.loadStaticEntity
(CompoundTag pEntityTag, Level pLevel, EntitySpawnReason pSpawnReason) static <StoredEntityType extends UniquelyIdentifyable>
EntityReference<StoredEntityType> EntityReference.read
(CompoundTag pTag, String pKey) void
AgeableMob.readAdditionalSaveData
(CompoundTag p_146752_) protected void
AreaEffectCloud.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Display.BlockDisplay.readAdditionalSaveData
(CompoundTag p_270139_) protected void
Display.ItemDisplay.readAdditionalSaveData
(CompoundTag p_270713_) protected void
Display.readAdditionalSaveData
(CompoundTag p_270854_) protected void
Display.TextDisplay.readAdditionalSaveData
(CompoundTag p_270714_) protected abstract void
Entity.readAdditionalSaveData
(CompoundTag pTag) (abstract) Protected helper method to read subclass entity data from NBT.void
ExperienceOrb.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
GlowSquid.readAdditionalSaveData
(CompoundTag p_147117_) protected void
Interaction.readAdditionalSaveData
(CompoundTag p_272702_) protected void
LightningBolt.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
LivingEntity.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Marker.readAdditionalSaveData
(CompoundTag p_147254_) void
Mob.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
OminousItemSpawner.readAdditionalSaveData
(CompoundTag p_338507_) void
TamableAnimal.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.default void
Leashable.readLeashData
(CompoundTag pTag) default void
NeutralMob.readPersistentAngerSaveData
(Level pLevel, CompoundTag pTag) static <StoredEntityType extends UniquelyIdentifyable>
EntityReference<StoredEntityType> EntityReference.readWithOldOwnerConversion
(CompoundTag pTag, String pKey, Level pLevel) boolean
Entity.save
(CompoundTag pCompound) Writes this entity to NBT, unless it has been removed or it is a passenger.boolean
Entity.saveAsPassenger
(CompoundTag pCompound) Writes this entity to NBT, unless it has been removed.Entity.saveWithoutId
(CompoundTag pCompound) Writes this entity, including passengers, to NBT, regardless as to whether it is removed or a passenger.void
EntityReference.store
(CompoundTag pTag, String pKey) private static void
Display.TextDisplay.storeFlag
(byte pCurrentValue, CompoundTag pTag, String pFlag, byte pMask) default void
Leashable.writeLeashData
(CompoundTag pTag, Leashable.LeashData pLeashData) -
Uses of CompoundTag in net.minecraft.world.entity.ai.attributes
Methods in net.minecraft.world.entity.ai.attributes that return CompoundTagMethods in net.minecraft.world.entity.ai.attributes with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Bat.addAdditionalSaveData
(CompoundTag pCompound) void
Bat.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractFish.addAdditionalSaveData
(CompoundTag pCompound) void
Animal.addAdditionalSaveData
(CompoundTag pCompound) void
Bee.addAdditionalSaveData
(CompoundTag pCompound) void
Cat.addAdditionalSaveData
(CompoundTag pCompound) void
Chicken.addAdditionalSaveData
(CompoundTag pCompound) void
Cow.addAdditionalSaveData
(CompoundTag p_401080_) void
Dolphin.addAdditionalSaveData
(CompoundTag pCompound) void
Fox.addAdditionalSaveData
(CompoundTag pCompound) void
IronGolem.addAdditionalSaveData
(CompoundTag pCompound) void
MushroomCow.addAdditionalSaveData
(CompoundTag pCompound) void
Ocelot.addAdditionalSaveData
(CompoundTag pCompound) void
Panda.addAdditionalSaveData
(CompoundTag pCompound) void
Parrot.addAdditionalSaveData
(CompoundTag pCompound) void
Pig.addAdditionalSaveData
(CompoundTag pCompound) void
PolarBear.addAdditionalSaveData
(CompoundTag pCompound) void
Pufferfish.addAdditionalSaveData
(CompoundTag pCompound) void
Rabbit.addAdditionalSaveData
(CompoundTag pCompound) void
Salmon.addAdditionalSaveData
(CompoundTag p_365152_) void
SnowGolem.addAdditionalSaveData
(CompoundTag pCompound) void
TropicalFish.addAdditionalSaveData
(CompoundTag pCompound) void
Turtle.addAdditionalSaveData
(CompoundTag pCompound) static void
Bucketable.loadDefaultDataFromBucketTag
(Mob pMob, CompoundTag pTag) Deprecated.void
AbstractFish.loadFromBucketTag
(CompoundTag p_148708_) void
Bucketable.loadFromBucketTag
(CompoundTag pTag) void
AbstractFish.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Animal.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Bee.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Cat.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Chicken.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Cow.readAdditionalSaveData
(CompoundTag p_401438_) void
Dolphin.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Fox.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
IronGolem.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
MushroomCow.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Ocelot.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Panda.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Parrot.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Pig.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
PolarBear.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Pufferfish.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Rabbit.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Salmon.readAdditionalSaveData
(CompoundTag p_360554_) void
SnowGolem.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
TropicalFish.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Turtle.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Allay.addAdditionalSaveData
(CompoundTag p_218367_) void
Allay.readAdditionalSaveData
(CompoundTag p_218350_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Armadillo.addAdditionalSaveData
(CompoundTag p_316752_) void
Armadillo.readAdditionalSaveData
(CompoundTag p_316298_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Axolotl.addAdditionalSaveData
(CompoundTag p_149158_) void
Axolotl.loadFromBucketTag
(CompoundTag p_149163_) void
Axolotl.readAdditionalSaveData
(CompoundTag p_149145_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Camel.addAdditionalSaveData
(CompoundTag p_250330_) void
Camel.readAdditionalSaveData
(CompoundTag p_250781_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Frog.addAdditionalSaveData
(CompoundTag p_218508_) void
Tadpole.addAdditionalSaveData
(CompoundTag p_218709_) void
Tadpole.loadFromBucketTag
(CompoundTag p_218715_) void
Frog.readAdditionalSaveData
(CompoundTag p_218496_) void
Tadpole.readAdditionalSaveData
(CompoundTag p_218698_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Goat.addAdditionalSaveData
(CompoundTag p_149385_) void
Goat.readAdditionalSaveData
(CompoundTag p_149373_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractChestedHorse.addAdditionalSaveData
(CompoundTag pCompound) void
AbstractHorse.addAdditionalSaveData
(CompoundTag pCompound) void
Horse.addAdditionalSaveData
(CompoundTag pCompound) void
Llama.addAdditionalSaveData
(CompoundTag pCompound) void
SkeletonHorse.addAdditionalSaveData
(CompoundTag pCompound) void
TraderLlama.addAdditionalSaveData
(CompoundTag pCompound) void
AbstractChestedHorse.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
AbstractHorse.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Horse.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Llama.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
SkeletonHorse.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
TraderLlama.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Sheep.addAdditionalSaveData
(CompoundTag p_405242_) void
Sheep.readAdditionalSaveData
(CompoundTag p_404738_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Wolf.addAdditionalSaveData
(CompoundTag p_406244_) void
Wolf.readAdditionalSaveData
(CompoundTag p_406278_) -
Uses of CompoundTag in net.minecraft.world.entity.boss
Methods in net.minecraft.world.entity.boss with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
EnderDragonPart.addAdditionalSaveData
(CompoundTag pCompound) protected void
EnderDragonPart.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
EndCrystal.addAdditionalSaveData
(CompoundTag pCompound) void
EnderDragon.addAdditionalSaveData
(CompoundTag pCompound) protected void
EndCrystal.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
EnderDragon.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
WitherBoss.addAdditionalSaveData
(CompoundTag pCompound) void
WitherBoss.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return CompoundTagMethods in net.minecraft.world.entity.decoration with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ArmorStand.addAdditionalSaveData
(CompoundTag pCompound) void
BlockAttachedEntity.addAdditionalSaveData
(CompoundTag p_344925_) void
ItemFrame.addAdditionalSaveData
(CompoundTag pCompound) void
LeashFenceKnotEntity.addAdditionalSaveData
(CompoundTag pCompound) void
Painting.addAdditionalSaveData
(CompoundTag pCompound) void
ArmorStand.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
BlockAttachedEntity.readAdditionalSaveData
(CompoundTag p_346402_) void
ItemFrame.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
LeashFenceKnotEntity.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Painting.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.private void
ArmorStand.readPose
(CompoundTag pCompound) -
Uses of CompoundTag in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item declared as CompoundTagMethods in net.minecraft.world.entity.item with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
FallingBlockEntity.addAdditionalSaveData
(CompoundTag pCompound) void
ItemEntity.addAdditionalSaveData
(CompoundTag pCompound) protected void
PrimedTnt.addAdditionalSaveData
(CompoundTag pCompound) protected void
FallingBlockEntity.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
ItemEntity.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
PrimedTnt.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Bogged.addAdditionalSaveData
(CompoundTag p_331631_) void
Creeper.addAdditionalSaveData
(CompoundTag pCompound) void
EnderMan.addAdditionalSaveData
(CompoundTag pCompound) void
Endermite.addAdditionalSaveData
(CompoundTag pCompound) void
Evoker.addAdditionalSaveData
(CompoundTag pCompound) void
Ghast.addAdditionalSaveData
(CompoundTag pCompound) void
PatrollingMonster.addAdditionalSaveData
(CompoundTag pCompound) void
Phantom.addAdditionalSaveData
(CompoundTag pCompound) void
Pillager.addAdditionalSaveData
(CompoundTag pCompound) void
Ravager.addAdditionalSaveData
(CompoundTag pCompound) void
Shulker.addAdditionalSaveData
(CompoundTag pCompound) void
Skeleton.addAdditionalSaveData
(CompoundTag p_149836_) void
Slime.addAdditionalSaveData
(CompoundTag pCompound) void
SpellcasterIllager.addAdditionalSaveData
(CompoundTag pCompound) void
Vex.addAdditionalSaveData
(CompoundTag pCompound) void
Vindicator.addAdditionalSaveData
(CompoundTag pCompound) void
Zoglin.addAdditionalSaveData
(CompoundTag pCompound) void
Zombie.addAdditionalSaveData
(CompoundTag pCompound) void
ZombieVillager.addAdditionalSaveData
(CompoundTag pCompound) void
ZombifiedPiglin.addAdditionalSaveData
(CompoundTag pCompound) void
AbstractSkeleton.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Bogged.readAdditionalSaveData
(CompoundTag p_331225_) void
Creeper.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
EnderMan.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Endermite.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Evoker.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Ghast.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
PatrollingMonster.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Phantom.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Pillager.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Ravager.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Shulker.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Skeleton.readAdditionalSaveData
(CompoundTag p_149833_) void
Slime.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
SpellcasterIllager.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Vex.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Vindicator.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Zoglin.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Zombie.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
ZombieVillager.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
ZombifiedPiglin.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.creaking
Methods in net.minecraft.world.entity.monster.creaking with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Creaking.addAdditionalSaveData
(CompoundTag p_389514_) void
Creaking.readAdditionalSaveData
(CompoundTag p_389407_) -
Uses of CompoundTag in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Hoglin.addAdditionalSaveData
(CompoundTag pCompound) void
Hoglin.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractPiglin.addAdditionalSaveData
(CompoundTag pCompound) void
Piglin.addAdditionalSaveData
(CompoundTag pCompound) void
AbstractPiglin.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Piglin.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Warden.addAdditionalSaveData
(CompoundTag p_219434_) void
Warden.readAdditionalSaveData
(CompoundTag p_219415_) -
Uses of CompoundTag in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractVillager.addAdditionalSaveData
(CompoundTag pCompound) void
Villager.addAdditionalSaveData
(CompoundTag pCompound) void
WanderingTrader.addAdditionalSaveData
(CompoundTag pCompound) void
AbstractVillager.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Villager.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
WanderingTrader.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.default void
InventoryCarrier.readInventoryFromTag
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) default void
InventoryCarrier.writeInventoryToTag
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) -
Uses of CompoundTag in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player with type parameters of type CompoundTagModifier and TypeFieldDescriptionprotected static final EntityDataAccessor
<CompoundTag> Player.DATA_SHOULDER_LEFT
protected static final EntityDataAccessor
<CompoundTag> Player.DATA_SHOULDER_RIGHT
Methods in net.minecraft.world.entity.player that return CompoundTagMethods in net.minecraft.world.entity.player with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Player.addAdditionalSaveData
(CompoundTag pCompound) void
Abilities.addSaveData
(CompoundTag pCompound) void
Abilities.loadSaveData
(CompoundTag pCompound) private void
Player.playShoulderEntityAmbientSound
(CompoundTag pEntityCompound) void
Player.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.private void
Player.respawnEntityOnShoulder
(CompoundTag pEntityCompound) boolean
Player.setEntityOnShoulder
(CompoundTag pEntityCompound) protected void
Player.setShoulderEntityLeft
(CompoundTag pEntityCompound) protected void
Player.setShoulderEntityRight
(CompoundTag pEntityCompound) -
Uses of CompoundTag in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractArrow.addAdditionalSaveData
(CompoundTag pCompound) void
AbstractHurtingProjectile.addAdditionalSaveData
(CompoundTag pCompound) protected void
EvokerFangs.addAdditionalSaveData
(CompoundTag pCompound) void
EyeOfEnder.addAdditionalSaveData
(CompoundTag pCompound) void
Fireball.addAdditionalSaveData
(CompoundTag pCompound) void
FireworkRocketEntity.addAdditionalSaveData
(CompoundTag pCompound) void
FishingHook.addAdditionalSaveData
(CompoundTag pCompound) void
LargeFireball.addAdditionalSaveData
(CompoundTag pCompound) protected void
Projectile.addAdditionalSaveData
(CompoundTag pCompound) protected void
ShulkerBullet.addAdditionalSaveData
(CompoundTag pCompound) void
SpectralArrow.addAdditionalSaveData
(CompoundTag pCompound) void
ThrowableItemProjectile.addAdditionalSaveData
(CompoundTag pCompound) void
ThrownTrident.addAdditionalSaveData
(CompoundTag pCompound) void
WitherSkull.addAdditionalSaveData
(CompoundTag p_306205_) void
AbstractArrow.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
AbstractHurtingProjectile.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
EvokerFangs.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
EyeOfEnder.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
Fireball.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
FireworkRocketEntity.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
FishingHook.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
LargeFireball.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Projectile.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
ShulkerBullet.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
SpectralArrow.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
ThrowableItemProjectile.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
ThrownTrident.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.void
WitherSkull.readAdditionalSaveData
(CompoundTag p_305818_) -
Uses of CompoundTag in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Raider.addAdditionalSaveData
(CompoundTag pCompound) static Raids
Raids.load
(CompoundTag pTag) void
Raider.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.variant
Methods in net.minecraft.world.entity.variant with parameters of type CompoundTagModifier and TypeMethodDescriptionVariantUtils.readVariant
(CompoundTag pTag, RegistryAccess pRegistryAccess, ResourceKey<? extends Registry<T>> pRegistryKey) static <T> void
VariantUtils.writeVariant
(CompoundTag pTag, Holder<T> pVariant) -
Uses of CompoundTag in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
AbstractBoat.addAdditionalSaveData
(CompoundTag p_376268_) protected void
AbstractChestBoat.addAdditionalSaveData
(CompoundTag p_376826_) protected void
AbstractMinecart.addAdditionalSaveData
(CompoundTag pCompound) protected void
AbstractMinecartContainer.addAdditionalSaveData
(CompoundTag pCompound) protected void
MinecartCommandBlock.addAdditionalSaveData
(CompoundTag pCompound) protected void
MinecartFurnace.addAdditionalSaveData
(CompoundTag pCompound) protected void
MinecartHopper.addAdditionalSaveData
(CompoundTag pCompound) protected void
MinecartSpawner.addAdditionalSaveData
(CompoundTag pCompound) protected void
MinecartTNT.addAdditionalSaveData
(CompoundTag pCompound) default void
ContainerEntity.addChestVehicleSaveData
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) protected void
AbstractBoat.readAdditionalSaveData
(CompoundTag p_376432_) protected void
AbstractChestBoat.readAdditionalSaveData
(CompoundTag p_376621_) protected void
AbstractMinecart.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
AbstractMinecartContainer.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartCommandBlock.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartFurnace.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartHopper.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartSpawner.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartTNT.readAdditionalSaveData
(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.default void
ContainerEntity.readChestVehicleSaveData
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) -
Uses of CompoundTag in net.minecraft.world.food
Methods in net.minecraft.world.food with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
FoodData.addAdditionalSaveData
(CompoundTag pCompoundTag) Writes the food data for the player.void
FoodData.readAdditionalSaveData
(CompoundTag pCompoundTag) Reads the food data for the player. -
Uses of CompoundTag in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic void
BlockItem.setBlockEntityData
(ItemStack pStack, BlockEntityType<?> pBlockEntityType, CompoundTag pBlockEntityData) -
Uses of CompoundTag in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as CompoundTagMethods in net.minecraft.world.item.component that return CompoundTagMethods in net.minecraft.world.item.component with parameters of type CompoundTagModifier and TypeMethodDescriptionboolean
CustomData.matchedBy
(CompoundTag pTag) static CustomData
CustomData.of
(CompoundTag pTag) static void
CustomData.set
(DataComponentType<CustomData> pComponentType, ItemStack pStack, CompoundTag pTag) Method parameters in net.minecraft.world.item.component with type arguments of type CompoundTagModifier and TypeMethodDescriptionCustomData.update
(Consumer<CompoundTag> pUpdater) static void
CustomData.update
(DataComponentType<CustomData> pComponentType, ItemStack pStack, Consumer<CompoundTag> pUpdater) Constructors in net.minecraft.world.item.component with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level
Fields in net.minecraft.world.level declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
SpawnData.entityToSpawn
The field for theentityToSpawn
record component.Methods in net.minecraft.world.level that return CompoundTagModifier and TypeMethodDescriptionGameRules.createTag()
SpawnData.entityToSpawn()
Returns the value of theentityToSpawn
record component.SpawnData.getEntityToSpawn()
BaseCommandBlock.save
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) BaseSpawner.save
(CompoundTag pTag) Methods in net.minecraft.world.level with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
BaseCommandBlock.load
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) void
BaseSpawner.load
(Level pLevel, BlockPos pPos, CompoundTag pTag) BaseCommandBlock.save
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) BaseSpawner.save
(CompoundTag pTag) Constructors in net.minecraft.world.level with parameters of type CompoundTagModifierConstructorDescriptionSpawnData
(CompoundTag entityToSpawn, Optional<SpawnData.CustomSpawnRules> customSpawnRules, Optional<EquipmentTable> equipment) Creates an instance of aSpawnData
record class. -
Uses of CompoundTag in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
SculkSpreader.load
(CompoundTag pTag) void
SculkSpreader.save
(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as CompoundTagMethods in net.minecraft.world.level.block.entity that return CompoundTagModifier and TypeMethodDescriptionBlockEntity.getPersistentData()
BannerBlockEntity.getUpdateTag
(HolderLookup.Provider p_324478_) BeaconBlockEntity.getUpdateTag
(HolderLookup.Provider p_324570_) BlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) BrushableBlockEntity.getUpdateTag
(HolderLookup.Provider p_323531_) CampfireBlockEntity.getUpdateTag
(HolderLookup.Provider p_324612_) ConduitBlockEntity.getUpdateTag
(HolderLookup.Provider p_324390_) CreakingHeartBlockEntity.getUpdateTag
(HolderLookup.Provider p_379306_) DecoratedPotBlockEntity.getUpdateTag
(HolderLookup.Provider p_324359_) JigsawBlockEntity.getUpdateTag
(HolderLookup.Provider p_323882_) SignBlockEntity.getUpdateTag
(HolderLookup.Provider p_324439_) SkullBlockEntity.getUpdateTag
(HolderLookup.Provider p_323711_) SpawnerBlockEntity.getUpdateTag
(HolderLookup.Provider p_324015_) StructureBlockEntity.getUpdateTag
(HolderLookup.Provider p_324257_) TestBlockEntity.getUpdateTag
(HolderLookup.Provider p_397116_) TestInstanceBlockEntity.getUpdateTag
(HolderLookup.Provider p_397498_) TheEndGatewayBlockEntity.getUpdateTag
(HolderLookup.Provider p_324313_) TrialSpawnerBlockEntity.getUpdateTag
(HolderLookup.Provider p_323524_) final CompoundTag
BlockEntity.saveCustomAndMetadata
(HolderLookup.Provider pRegistries) final CompoundTag
BlockEntity.saveCustomOnly
(HolderLookup.Provider pRegistries) final CompoundTag
BlockEntity.saveWithFullMetadata
(HolderLookup.Provider pRegistries) final CompoundTag
BlockEntity.saveWithId
(HolderLookup.Provider pRegistries) final CompoundTag
BlockEntity.saveWithoutMetadata
(HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.block.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate void
CrafterBlockEntity.addDisabledSlots
(CompoundTag pTag) static void
BlockEntity.addEntityType
(CompoundTag pTag, BlockEntityType<?> pEntityType) private void
CrafterBlockEntity.addTriggered
(CompoundTag pTag) static BlockPos
BlockEntity.getPosFromTag
(ChunkPos pChunkPos, CompoundTag pTag) protected void
AbstractFurnaceBlockEntity.loadAdditional
(CompoundTag p_155025_, HolderLookup.Provider p_323468_) protected void
BannerBlockEntity.loadAdditional
(CompoundTag p_338645_, HolderLookup.Provider p_338247_) protected void
BarrelBlockEntity.loadAdditional
(CompoundTag p_155055_, HolderLookup.Provider p_324230_) protected void
BaseContainerBlockEntity.loadAdditional
(CompoundTag p_338606_, HolderLookup.Provider p_338309_) protected void
BeaconBlockEntity.loadAdditional
(CompoundTag p_338669_, HolderLookup.Provider p_338291_) protected void
BeehiveBlockEntity.loadAdditional
(CompoundTag p_338675_, HolderLookup.Provider p_338666_) protected void
BlockEntity.loadAdditional
(CompoundTag pTag, HolderLookup.Provider pRegistries) protected void
BrewingStandBlockEntity.loadAdditional
(CompoundTag p_338530_, HolderLookup.Provider p_338200_) protected void
BrushableBlockEntity.loadAdditional
(CompoundTag p_338786_, HolderLookup.Provider p_338480_) protected void
CampfireBlockEntity.loadAdditional
(CompoundTag p_155312_, HolderLookup.Provider p_323804_) protected void
ChestBlockEntity.loadAdditional
(CompoundTag p_155349_, HolderLookup.Provider p_324564_) protected void
ChiseledBookShelfBlockEntity.loadAdditional
(CompoundTag p_338883_, HolderLookup.Provider p_338454_) protected void
CommandBlockEntity.loadAdditional
(CompoundTag p_338502_, HolderLookup.Provider p_338638_) protected void
ComparatorBlockEntity.loadAdditional
(CompoundTag p_338778_, HolderLookup.Provider p_338355_) protected void
ConduitBlockEntity.loadAdditional
(CompoundTag p_338591_, HolderLookup.Provider p_338280_) protected void
CrafterBlockEntity.loadAdditional
(CompoundTag p_307457_, HolderLookup.Provider p_324538_) protected void
CreakingHeartBlockEntity.loadAdditional
(CompoundTag p_389460_, HolderLookup.Provider p_389519_) protected void
DecoratedPotBlockEntity.loadAdditional
(CompoundTag p_338486_, HolderLookup.Provider p_338310_) protected void
DispenserBlockEntity.loadAdditional
(CompoundTag p_155496_, HolderLookup.Provider p_323868_) protected void
EnchantingTableBlockEntity.loadAdditional
(CompoundTag p_341199_, HolderLookup.Provider p_341063_) protected void
HopperBlockEntity.loadAdditional
(CompoundTag p_155588_, HolderLookup.Provider p_324320_) protected void
JigsawBlockEntity.loadAdditional
(CompoundTag p_155608_, HolderLookup.Provider p_324139_) protected void
JukeboxBlockEntity.loadAdditional
(CompoundTag p_155616_, HolderLookup.Provider p_324026_) protected void
LecternBlockEntity.loadAdditional
(CompoundTag p_155625_, HolderLookup.Provider p_324025_) protected void
SculkCatalystBlockEntity.loadAdditional
(CompoundTag p_338264_, HolderLookup.Provider p_338447_) protected void
SculkSensorBlockEntity.loadAdditional
(CompoundTag p_338719_, HolderLookup.Provider p_338792_) protected void
SculkShriekerBlockEntity.loadAdditional
(CompoundTag p_222868_, HolderLookup.Provider p_324354_) protected void
ShulkerBoxBlockEntity.loadAdditional
(CompoundTag p_155678_, HolderLookup.Provider p_324114_) protected void
SignBlockEntity.loadAdditional
(CompoundTag p_155716_, HolderLookup.Provider p_324351_) protected void
SkullBlockEntity.loadAdditional
(CompoundTag p_155745_, HolderLookup.Provider p_323876_) protected void
SpawnerBlockEntity.loadAdditional
(CompoundTag p_338334_, HolderLookup.Provider p_338853_) protected void
StructureBlockEntity.loadAdditional
(CompoundTag p_155800_, HolderLookup.Provider p_324076_) void
TestBlockEntity.loadAdditional
(CompoundTag p_397510_, HolderLookup.Provider p_397910_) protected void
TestInstanceBlockEntity.loadAdditional
(CompoundTag p_398056_, HolderLookup.Provider p_397876_) protected void
TheEndGatewayBlockEntity.loadAdditional
(CompoundTag p_155840_, HolderLookup.Provider p_323480_) protected void
TrialSpawnerBlockEntity.loadAdditional
(CompoundTag p_338752_, HolderLookup.Provider p_338872_) final void
BlockEntity.loadCustomOnly
(CompoundTag pTag, HolderLookup.Provider pRegistries) BeaconBlockEntity.loadEffect
(CompoundTag pTag, String pKey) void
ShulkerBoxBlockEntity.loadFromTag
(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) static BlockEntity
BlockEntity.loadStatic
(BlockPos pPos, BlockState pState, CompoundTag pTag, HolderLookup.Provider pRegistries) final void
BlockEntity.loadWithComponents
(CompoundTag pTag, HolderLookup.Provider pRegistries) void
BannerBlockEntity.removeComponentsFromTag
(CompoundTag p_331690_) void
BaseContainerBlockEntity.removeComponentsFromTag
(CompoundTag p_330762_) void
BeaconBlockEntity.removeComponentsFromTag
(CompoundTag p_331401_) void
BeehiveBlockEntity.removeComponentsFromTag
(CompoundTag p_331127_) void
BlockEntity.removeComponentsFromTag
(CompoundTag pTag) Deprecated.void
CampfireBlockEntity.removeComponentsFromTag
(CompoundTag p_332690_) void
ChiseledBookShelfBlockEntity.removeComponentsFromTag
(CompoundTag p_332725_) void
CommandBlockEntity.removeComponentsFromTag
(CompoundTag p_331967_) void
DecoratedPotBlockEntity.removeComponentsFromTag
(CompoundTag p_330569_) void
EnchantingTableBlockEntity.removeComponentsFromTag
(CompoundTag p_341218_) void
RandomizableContainerBlockEntity.removeComponentsFromTag
(CompoundTag p_331200_) void
SkullBlockEntity.removeComponentsFromTag
(CompoundTag p_331773_) protected void
AbstractFurnaceBlockEntity.saveAdditional
(CompoundTag p_187452_, HolderLookup.Provider p_323656_) protected void
BannerBlockEntity.saveAdditional
(CompoundTag p_187456_, HolderLookup.Provider p_324143_) protected void
BarrelBlockEntity.saveAdditional
(CompoundTag p_187459_, HolderLookup.Provider p_323686_) protected void
BaseContainerBlockEntity.saveAdditional
(CompoundTag p_187461_, HolderLookup.Provider p_324280_) protected void
BeaconBlockEntity.saveAdditional
(CompoundTag p_187463_, HolderLookup.Provider p_324268_) protected void
BeehiveBlockEntity.saveAdditional
(CompoundTag p_187467_, HolderLookup.Provider p_324426_) protected void
BlockEntity.saveAdditional
(CompoundTag pTag, HolderLookup.Provider pRegistries) protected void
BrewingStandBlockEntity.saveAdditional
(CompoundTag p_187484_, HolderLookup.Provider p_324461_) protected void
BrushableBlockEntity.saveAdditional
(CompoundTag p_277339_, HolderLookup.Provider p_323885_) protected void
CampfireBlockEntity.saveAdditional
(CompoundTag p_187486_, HolderLookup.Provider p_324005_) protected void
ChestBlockEntity.saveAdditional
(CompoundTag p_187489_, HolderLookup.Provider p_324448_) protected void
ChiseledBookShelfBlockEntity.saveAdditional
(CompoundTag p_251872_, HolderLookup.Provider p_323649_) protected void
CommandBlockEntity.saveAdditional
(CompoundTag p_187491_, HolderLookup.Provider p_324575_) protected void
ComparatorBlockEntity.saveAdditional
(CompoundTag p_187493_, HolderLookup.Provider p_323979_) protected void
ConduitBlockEntity.saveAdditional
(CompoundTag p_187495_, HolderLookup.Provider p_323702_) protected void
CrafterBlockEntity.saveAdditional
(CompoundTag p_307531_, HolderLookup.Provider p_324381_) protected void
CreakingHeartBlockEntity.saveAdditional
(CompoundTag p_389474_, HolderLookup.Provider p_389560_) protected void
DecoratedPotBlockEntity.saveAdditional
(CompoundTag p_272957_, HolderLookup.Provider p_323719_) protected void
DispenserBlockEntity.saveAdditional
(CompoundTag p_187498_, HolderLookup.Provider p_323791_) protected void
EnchantingTableBlockEntity.saveAdditional
(CompoundTag p_341088_, HolderLookup.Provider p_341376_) protected void
HopperBlockEntity.saveAdditional
(CompoundTag p_187502_, HolderLookup.Provider p_324174_) protected void
JigsawBlockEntity.saveAdditional
(CompoundTag p_187504_, HolderLookup.Provider p_323960_) protected void
JukeboxBlockEntity.saveAdditional
(CompoundTag p_187507_, HolderLookup.Provider p_323723_) protected void
LecternBlockEntity.saveAdditional
(CompoundTag p_187509_, HolderLookup.Provider p_323474_) protected void
SculkCatalystBlockEntity.saveAdditional
(CompoundTag p_222789_, HolderLookup.Provider p_324018_) protected void
SculkSensorBlockEntity.saveAdditional
(CompoundTag p_187511_, HolderLookup.Provider p_323787_) protected void
SculkShriekerBlockEntity.saveAdditional
(CompoundTag p_222878_, HolderLookup.Provider p_324505_) protected void
ShulkerBoxBlockEntity.saveAdditional
(CompoundTag p_187513_, HolderLookup.Provider p_324152_) protected void
SignBlockEntity.saveAdditional
(CompoundTag p_187515_, HolderLookup.Provider p_324471_) protected void
SkullBlockEntity.saveAdditional
(CompoundTag p_187518_, HolderLookup.Provider p_324418_) protected void
SpawnerBlockEntity.saveAdditional
(CompoundTag p_187521_, HolderLookup.Provider p_324509_) protected void
StructureBlockEntity.saveAdditional
(CompoundTag p_187524_, HolderLookup.Provider p_323617_) void
TestBlockEntity.saveAdditional
(CompoundTag p_397693_, HolderLookup.Provider p_397360_) protected void
TestInstanceBlockEntity.saveAdditional
(CompoundTag p_397008_, HolderLookup.Provider p_397043_) protected void
TheEndGatewayBlockEntity.saveAdditional
(CompoundTag p_187527_, HolderLookup.Provider p_324553_) protected void
TrialSpawnerBlockEntity.saveAdditional
(CompoundTag p_311806_, HolderLookup.Provider p_324342_) private void
BlockEntity.saveId
(CompoundTag pTag) private void
BlockEntity.saveMetadata
(CompoundTag pTag) private static void
BeaconBlockEntity.storeEffect
(CompoundTag pTag, String pKey, Holder<MobEffect> pEffect) private boolean
BrushableBlockEntity.tryLoadLootTable
(CompoundTag pTag) private boolean
BrushableBlockEntity.trySaveLootTable
(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return CompoundTagMethod parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type CompoundTagModifier and TypeMethodDescriptionTrialSpawnerConfigs.customSpawnData
(EntityType<T> pEntityType, Consumer<CompoundTag> pTagConsumer) TrialSpawnerConfigs.customSpawnDataWithEquipment
(EntityType<T> pEntityType, Consumer<CompoundTag> pTagConsumer, ResourceKey<LootTable> pLootTableKey) -
Uses of CompoundTag in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault that return CompoundTagMethods in net.minecraft.world.level.block.entity.vault with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
VaultBlockEntity.loadAdditional
(CompoundTag p_324011_, HolderLookup.Provider p_324430_) protected void
VaultBlockEntity.saveAdditional
(CompoundTag p_323998_, HolderLookup.Provider p_324356_) -
Uses of CompoundTag in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return CompoundTagModifier and TypeMethodDescriptionPistonMovingBlockEntity.getUpdateTag
(HolderLookup.Provider p_324521_) Methods in net.minecraft.world.level.block.piston with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
PistonMovingBlockEntity.loadAdditional
(CompoundTag p_155930_, HolderLookup.Provider p_324214_) protected void
PistonMovingBlockEntity.saveAdditional
(CompoundTag p_187530_, HolderLookup.Provider p_323923_) -
Uses of CompoundTag in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final List
<CompoundTag> ProtoChunk.entities
protected final Map
<BlockPos, CompoundTag> ChunkAccess.pendingBlockEntities
Methods in net.minecraft.world.level.chunk that return CompoundTagModifier and TypeMethodDescriptionChunkAccess.getBlockEntityNbt
(BlockPos pPos) ImposterProtoChunk.getBlockEntityNbt
(BlockPos p_62757_) abstract CompoundTag
ChunkAccess.getBlockEntityNbtForSaving
(BlockPos pPos, HolderLookup.Provider pRegistries) ImposterProtoChunk.getBlockEntityNbtForSaving
(BlockPos p_62760_, HolderLookup.Provider p_323691_) LevelChunk.getBlockEntityNbtForSaving
(BlockPos p_62932_, HolderLookup.Provider p_323699_) ProtoChunk.getBlockEntityNbtForSaving
(BlockPos p_63275_, HolderLookup.Provider p_324473_) UpgradeData.write()
final CompoundTag
ChunkAccess.writeAttachmentsToNBT
(HolderLookup.Provider provider) FOR INTERNAL USE ONLYMethods in net.minecraft.world.level.chunk that return types with arguments of type CompoundTagMethods in net.minecraft.world.level.chunk with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ProtoChunk.addEntity
(CompoundTag pTag) private BlockEntity
LevelChunk.promotePendingBlockEntity
(BlockPos pPos, CompoundTag pTag) final void
ChunkAccess.readAttachmentsFromNBT
(HolderLookup.Provider provider, CompoundTag tag) FOR INTERNAL USE ONLYvoid
ChunkAccess.setBlockEntityNbt
(CompoundTag pTag) void
ImposterProtoChunk.setBlockEntityNbt
(CompoundTag p_62728_) Constructors in net.minecraft.world.level.chunk with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.chunk.status
Method parameters in net.minecraft.world.level.chunk.status with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate static void
ChunkStatusTasks.postLoadProtoChunk
(ServerLevel pLevel, List<CompoundTag> pEntityTags) -
Uses of CompoundTag in net.minecraft.world.level.chunk.storage
Fields in net.minecraft.world.level.chunk.storage declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
SerializableChunkData.attachmentData
The field for theattachmentData
record component.(package private) CompoundTag
IOWorker.PendingStore.data
private final CompoundTag
SerializableChunkData.structureData
The field for thestructureData
record component.Fields in net.minecraft.world.level.chunk.storage with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final List
<CompoundTag> SerializableChunkData.blockEntities
The field for theblockEntities
record component.private final List
<CompoundTag> SerializableChunkData.entities
The field for theentities
record component.Methods in net.minecraft.world.level.chunk.storage that return CompoundTagModifier and TypeMethodDescriptionSerializableChunkData.attachmentData()
Returns the value of theattachmentData
record component.(package private) CompoundTag
IOWorker.PendingStore.copyData()
private static CompoundTag
SerializableChunkData.packStructureData
(StructurePieceSerializationContext pContext, ChunkPos pPos, Map<Structure, StructureStart> pStructureStarts, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> pReferences) SerializableChunkData.structureData()
Returns the value of thestructureData
record component.ChunkStorage.upgradeChunkTag
(ResourceKey<Level> pLevelKey, Supplier<DimensionDataStorage> pStorage, CompoundTag pChunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> pChunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag
(CompoundTag pTag, int pVersion) SerializableChunkData.write()
Methods in net.minecraft.world.level.chunk.storage that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionSerializableChunkData.blockEntities()
Returns the value of theblockEntities
record component.SerializableChunkData.entities()
Returns the value of theentities
record component.Methods in net.minecraft.world.level.chunk.storage with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ChunkStatus
SerializableChunkData.getChunkStatusFromTag
(CompoundTag pTag) static int
ChunkStorage.getVersion
(CompoundTag pChunkData) static void
ChunkStorage.injectDatafixingContext
(CompoundTag pChunkData, ResourceKey<Level> pLevelKey, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> pChunkGeneratorKey) private boolean
IOWorker.isOldChunk
(CompoundTag pChunkData) static SerializableChunkData
SerializableChunkData.parse
(LevelHeightAccessor pLevelHeightAccessor, RegistryAccess pRegistries, CompoundTag pTag) private static void
ChunkStorage.removeDatafixingContext
(CompoundTag pTag) private static void
SerializableChunkData.saveTicks
(CompoundTag pTag, ChunkAccess.PackedTicks pTicks) IOWorker.store
(ChunkPos pChunkPos, CompoundTag pChunkData) SerializableChunkData.unpackStructureReferences
(RegistryAccess pRegistries, ChunkPos pPos, CompoundTag pTag) private static Map
<Structure, StructureStart> SerializableChunkData.unpackStructureStart
(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) ChunkStorage.upgradeChunkTag
(ResourceKey<Level> pLevelKey, Supplier<DimensionDataStorage> pStorage, CompoundTag pChunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> pChunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag
(CompoundTag pTag, int pVersion) RecreatingSimpleRegionStorage.write
(ChunkPos p_321592_, CompoundTag p_321676_) protected void
RegionFileStorage.write
(ChunkPos pChunkPos, CompoundTag pChunkData) SimpleRegionStorage.write
(ChunkPos pChunkPos, CompoundTag pData) Method parameters in net.minecraft.world.level.chunk.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate static LevelChunk.PostLoadProcessor
SerializableChunkData.postLoadChunk
(ServerLevel pLevel, List<CompoundTag> pEntities, List<CompoundTag> pBlockEntities) IOWorker.store
(ChunkPos pChunkPos, Supplier<CompoundTag> pDataSupplier) ChunkStorage.write
(ChunkPos pPos, Supplier<CompoundTag> pTagSupplier) RecreatingChunkStorage.write
(ChunkPos p_321778_, Supplier<CompoundTag> p_363767_) Constructors in net.minecraft.world.level.chunk.storage with parameters of type CompoundTagModifierConstructorDescriptionPendingStore
(CompoundTag pData) (package private)
SerializableChunkData
(Registry<Biome> biomeRegistry, ChunkPos chunkPos, int minSectionY, long lastUpdateTime, long inhabitedTime, ChunkStatus chunkStatus, BlendingData.Packed blendingData, BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, long[] carvingMask, Map<Heightmap.Types, long[]> heightmaps, ChunkAccess.PackedTicks packedTicks, it.unimi.dsi.fastutil.shorts.ShortList[] postProcessingSections, boolean lightCorrect, List<SerializableChunkData.SectionData> sectionData, List<CompoundTag> entities, List<CompoundTag> blockEntities, CompoundTag structureData) Deprecated.Neo: use constructor with additional data insteadSerializableChunkData
(Registry<Biome> biomeRegistry, ChunkPos chunkPos, int minSectionY, long lastUpdateTime, long inhabitedTime, ChunkStatus chunkStatus, BlendingData.Packed blendingData, BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, long[] carvingMask, Map<Heightmap.Types, long[]> heightmaps, ChunkAccess.PackedTicks packedTicks, it.unimi.dsi.fastutil.shorts.ShortList[] postProcessingSections, boolean lightCorrect, List<SerializableChunkData.SectionData> sectionData, List<CompoundTag> entities, List<CompoundTag> blockEntities, CompoundTag structureData, CompoundTag attachmentData, ListTag auxLightData) Creates an instance of aSerializableChunkData
record class. -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final Map
<String, it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> LegacyStructureDataHandler.dataMap
Methods in net.minecraft.world.level.levelgen.structure that return CompoundTagModifier and TypeMethodDescriptionfinal CompoundTag
StructurePiece.createTag
(StructurePieceSerializationContext pContext) StructureStart.createTag
(StructurePieceSerializationContext pContext, ChunkPos pChunkPos) LegacyStructureDataHandler.updateFromLegacy
(CompoundTag pTag) private CompoundTag
LegacyStructureDataHandler.updateStructureStart
(CompoundTag pTag, ChunkPos pChunkPos) Methods in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
PoolElementStructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_192425_, CompoundTag p_192426_) protected void
ScatteredFeaturePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_192471_, CompoundTag p_192472_) protected abstract void
StructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
TemplateStructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_192690_, CompoundTag p_192691_) static StructureStart
StructureStart.loadStaticStart
(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) private it.unimi.dsi.fastutil.objects.Object2IntMap
<Structure> StructureCheck.loadStructures
(CompoundTag pTag) LegacyStructureDataHandler.updateFromLegacy
(CompoundTag pTag) private CompoundTag
LegacyStructureDataHandler.updateStructureStart
(CompoundTag pTag, ChunkPos pChunkPos) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifierConstructorDescriptionPoolElementStructurePiece
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected
ScatteredFeaturePiece
(StructurePieceType p_209929_, CompoundTag p_209930_) StructurePiece
(StructurePieceType pType, CompoundTag pTag) TemplateStructurePiece
(StructurePieceType pType, CompoundTag pTag, StructureTemplateManager pStructureTemplateManager, Function<ResourceLocation, StructurePlaceSettings> pPlaceSettingsFactory) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pieces
Methods in net.minecraft.world.level.levelgen.structure.pieces with parameters of type CompoundTagModifier and TypeMethodDescriptionStructurePieceType.ContextlessType.load
(CompoundTag pTag) default StructurePiece
StructurePieceType.ContextlessType.load
(StructurePieceSerializationContext p_210164_, CompoundTag p_210165_) StructurePieceType.load
(StructurePieceSerializationContext pContext, CompoundTag pTag) default StructurePiece
StructurePieceType.StructureTemplateType.load
(StructurePieceSerializationContext p_210169_, CompoundTag p_210170_) StructurePieceType.StructureTemplateType.load
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pools
Fields in net.minecraft.world.level.levelgen.structure.pools declared as CompoundTagMethods in net.minecraft.world.level.levelgen.structure.pools that return CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.structures
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
BuriedTreasurePieces.BuriedTreasurePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227378_, CompoundTag p_227379_) protected void
DesertPyramidPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227413_, CompoundTag p_227414_) protected void
EndCityPieces.EndCityPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227500_, CompoundTag p_227501_) protected void
IglooPieces.IglooPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227579_, CompoundTag p_227580_) protected void
JungleTemplePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227682_, CompoundTag p_227683_) protected void
MineshaftPieces.MineShaftCorridor.addAdditionalSaveData
(StructurePieceSerializationContext p_227806_, CompoundTag p_227807_) protected void
MineshaftPieces.MineShaftCrossing.addAdditionalSaveData
(StructurePieceSerializationContext p_227862_, CompoundTag p_227863_) protected void
MineshaftPieces.MineShaftPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227898_, CompoundTag p_227899_) protected void
MineshaftPieces.MineShaftRoom.addAdditionalSaveData
(StructurePieceSerializationContext p_227926_, CompoundTag p_227927_) protected void
NetherFortressPieces.BridgeEndFiller.addAdditionalSaveData
(StructurePieceSerializationContext p_228081_, CompoundTag p_228082_) protected void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228259_, CompoundTag p_228260_) protected void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228321_, CompoundTag p_228322_) protected void
NetherFortressPieces.MonsterThrone.addAdditionalSaveData
(StructurePieceSerializationContext p_228377_, CompoundTag p_228378_) protected void
NetherFortressPieces.NetherBridgePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228389_, CompoundTag p_228390_) protected void
NetherFossilPieces.NetherFossilPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228558_, CompoundTag p_228559_) protected void
OceanMonumentPieces.OceanMonumentPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228872_, CompoundTag p_228873_) protected void
OceanRuinPieces.OceanRuinPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229039_, CompoundTag p_229040_) protected void
RuinedPortalPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229158_, CompoundTag p_229159_) protected void
ShipwreckPieces.ShipwreckPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229373_, CompoundTag p_229374_) protected void
StrongholdPieces.ChestCorridor.addAdditionalSaveData
(StructurePieceSerializationContext p_229492_, CompoundTag p_229493_) protected void
StrongholdPieces.FillerCorridor.addAdditionalSaveData
(StructurePieceSerializationContext p_229517_, CompoundTag p_229518_) protected void
StrongholdPieces.FiveCrossing.addAdditionalSaveData
(StructurePieceSerializationContext p_229554_, CompoundTag p_229555_) protected void
StrongholdPieces.Library.addAdditionalSaveData
(StructurePieceSerializationContext p_229612_, CompoundTag p_229613_) protected void
StrongholdPieces.PortalRoom.addAdditionalSaveData
(StructurePieceSerializationContext p_229654_, CompoundTag p_229655_) protected void
StrongholdPieces.RoomCrossing.addAdditionalSaveData
(StructurePieceSerializationContext p_229745_, CompoundTag p_229746_) protected void
StrongholdPieces.StairsDown.addAdditionalSaveData
(StructurePieceSerializationContext p_229795_, CompoundTag p_229796_) protected void
StrongholdPieces.Straight.addAdditionalSaveData
(StructurePieceSerializationContext p_229840_, CompoundTag p_229841_) protected void
StrongholdPieces.StrongholdPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229891_, CompoundTag p_229892_) protected void
SwampHutPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229969_, CompoundTag p_229970_) protected void
WoodlandMansionPieces.WoodlandMansionPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_230208_, CompoundTag p_230209_) OceanRuinPieces.OceanRuinPiece.create
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) private static StructurePlaceSettings
RuinedPortalPiece.makeSettings
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag, ResourceLocation pLocation) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifierConstructorDescriptionBridgeCrossing
(CompoundTag pTag) protected
BridgeCrossing
(StructurePieceType p_228030_, CompoundTag p_228031_) BridgeEndFiller
(CompoundTag pTag) BridgeStraight
(CompoundTag pTag) CastleEntrance
(CompoundTag pTag) CastleStalkRoom
(CompoundTag pTag) ChestCorridor
(CompoundTag pTag) EndCityPiece
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) FillerCorridor
(CompoundTag pTag) FiveCrossing
(CompoundTag pTag) IglooPiece
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) JungleTemplePiece
(CompoundTag pTag) LeftTurn
(CompoundTag pTag) Library
(CompoundTag pTag) MineShaftCorridor
(CompoundTag pTag) MineShaftCrossing
(CompoundTag pTag) MineShaftPiece
(StructurePieceType p_227872_, CompoundTag p_227873_) MineShaftRoom
(CompoundTag pTag) MineShaftStairs
(CompoundTag pTag) MonsterThrone
(CompoundTag pTag) MonumentBuilding
(CompoundTag pTag) NetherBridgePiece
(StructurePieceType p_228384_, CompoundTag p_228385_) NetherFossilPiece
(StructureTemplateManager pStructureManager, CompoundTag pTag) OceanMonumentPiece
(StructurePieceType p_228841_, CompoundTag p_228842_) private
OceanRuinPiece
(StructureTemplateManager pStructureTemplateManager, CompoundTag pGenDepth, Rotation pRotation, float pIntegrity, OceanRuinStructure.Type pBiomeType, boolean pIsLarge) PortalRoom
(CompoundTag pTag) PrisonHall
(CompoundTag pTag) RightTurn
(CompoundTag pTag) RoomCrossing
(CompoundTag pTag) RoomCrossing
(CompoundTag pTag) RuinedPortalPiece
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) ShipwreckPiece
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) StairsDown
(CompoundTag pTag) StairsDown
(StructurePieceType p_229770_, CompoundTag p_229771_) StairsRoom
(CompoundTag pTag) StartPiece
(CompoundTag p_228516_) StartPiece
(CompoundTag p_229805_) Straight
(CompoundTag pTag) StrongholdPiece
(StructurePieceType p_229878_, CompoundTag p_229879_) SwampHutPiece
(CompoundTag pTag) Turn
(StructurePieceType p_229934_, CompoundTag p_229935_) WoodlandMansionPiece
(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
StructureTemplate.StructureBlockInfo.nbt
The field for thenbt
record component.final CompoundTag
StructureTemplate.StructureEntityInfo.nbt
Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return CompoundTagModifier and TypeMethodDescriptionProcessorRule.getOutputTag
(RandomSource pRandom, CompoundTag pTag) StructureTemplate.StructureBlockInfo.nbt()
Returns the value of thenbt
record component.StructureTemplate.save
(CompoundTag pTag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException
(ServerLevelAccessor pLevel, CompoundTag pTag) static JigsawBlockEntity.JointType
StructureTemplate.getJointType
(CompoundTag pTag, BlockState pState) ProcessorRule.getOutputTag
(RandomSource pRandom, CompoundTag pTag) void
StructureTemplate.load
(HolderGetter<Block> pBlockGetter, CompoundTag pTag) StructureTemplateManager.readStructure
(CompoundTag pNbt) StructureTemplate.save
(CompoundTag pTag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifierConstructorDescriptionStructureBlockInfo
(BlockPos pos, BlockState state, CompoundTag nbt) Creates an instance of aStructureBlockInfo
record class.StructureEntityInfo
(Vec3 pPos, BlockPos pBlockPos, CompoundTag pNbt) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
Fields in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity declared as CompoundTagMethods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity that return CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply
(RandomSource p_277994_, CompoundTag p_277854_) AppendStatic.apply
(RandomSource p_277835_, CompoundTag p_277892_) Clear.apply
(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply
(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply
(RandomSource pRandom, CompoundTag pTag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply
(RandomSource p_277994_, CompoundTag p_277854_) AppendStatic.apply
(RandomSource p_277835_, CompoundTag p_277892_) Clear.apply
(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply
(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply
(RandomSource pRandom, CompoundTag pTag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.storage
Fields in net.minecraft.world.level.storage declared as CompoundTagModifier and TypeFieldDescriptionprivate CompoundTag
PrimaryLevelData.customBossEvents
private final CompoundTag
PrimaryLevelData.loadedPlayerTag
Fields in net.minecraft.world.level.storage with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final Map
<String, CompoundTag> CommandStorage.Container.storage
Methods in net.minecraft.world.level.storage that return CompoundTagModifier and TypeMethodDescriptionPrimaryLevelData.createTag
(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) WorldData.createTag
(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) private <T extends SavedData>
CompoundTagDimensionDataStorage.encodeUnchecked
(SavedDataType<T> pType, SavedData pData, RegistryOps<Tag> pOps) CommandStorage.get
(ResourceLocation pId) PrimaryLevelData.getCustomBossEvents()
WorldData.getCustomBossEvents()
PrimaryLevelData.getLoadedPlayerTag()
WorldData.getLoadedPlayerTag()
(package private) static CompoundTag
LevelStorageSource.readLevelDataTagRaw
(Path pLevelPath) DimensionDataStorage.readTagFromDisk
(String pFilename, DataFixTypes pDataFixType, int pVersion) Methods in net.minecraft.world.level.storage that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionprivate Map
<SavedDataType<?>, CompoundTag> DimensionDataStorage.collectDirtyTagsToSave()
private Optional
<CompoundTag> Methods in net.minecraft.world.level.storage with parameters of type CompoundTagModifier and TypeMethodDescriptionPrimaryLevelData.createTag
(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) WorldData.createTag
(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) void
CommandStorage.Container.put
(String pId, CompoundTag pNbt) void
LevelStorageSource.LevelStorageAccess.saveDataTag
(RegistryAccess pRegistries, WorldData pServerConfiguration, CompoundTag pHostPlayerNBT) private void
LevelStorageSource.LevelStorageAccess.saveLevelData
(CompoundTag pTag) void
CommandStorage.set
(ResourceLocation pId, CompoundTag pNbt) void
PrimaryLevelData.setCustomBossEvents
(CompoundTag pNbt) void
WorldData.setCustomBossEvents
(CompoundTag pNbt) private void
PrimaryLevelData.setTagData
(RegistryAccess pRegistry, CompoundTag pNbt, CompoundTag pPlayerNBT) private void
DimensionDataStorage.tryWrite
(SavedDataType<?> pType, CompoundTag pTag) Method parameters in net.minecraft.world.level.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate void
LevelStorageSource.LevelStorageAccess.modifyLevelDataWithoutDatafix
(Consumer<CompoundTag> pModifier) Constructors in net.minecraft.world.level.storage with parameters of type CompoundTagModifierConstructorDescriptionprivate
PrimaryLevelData
(CompoundTag pLoadedPlayerTag, boolean pWasModded, BlockPos pSpawnPos, float pSpawnAngle, long pGameTime, long pDayTime, int pVersion, int pClearWeatherTime, int pRainTime, boolean pRaining, int pThunderTime, boolean pThundering, boolean pInitialized, boolean pDifficultyLocked, WorldBorder.Settings pWorldBorder, int pWanderingTraderSpawnDelay, int pWanderingTraderSpawnChance, UUID pWanderingTraderId, Set<String> pKnownServerBrands, Set<String> pRemovedFeatureFlags, TimerQueue<MinecraftServer> pScheduledEvents, CompoundTag pCustomBossEvents, EndDragonFight.Data pEndDragonFightData, LevelSettings pSettings, WorldOptions pWorldOptions, PrimaryLevelData.SpecialWorldProperty pSpecialWorldProperty, com.mojang.serialization.Lifecycle pWorldGenSettingsLifecycle) Constructor parameters in net.minecraft.world.level.storage with type arguments of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as CompoundTagMethods in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> SetCustomDataFunction.setCustomData
(CompoundTag pTag) Deprecated.Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifierConstructorDescriptionprivate
SetCustomDataFunction
(List<LootItemCondition> pConditions, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.timers
Methods in net.minecraft.world.level.timers that return CompoundTagModifier and TypeMethodDescriptionprivate CompoundTag
TimerQueue.storeEvent
(TimerQueue.Event<T> pEvent) Methods in net.minecraft.world.level.timers with parameters of type CompoundTag -
Uses of CompoundTag in net.neoforged.neoforge.attachment
Methods in net.neoforged.neoforge.attachment that return CompoundTagModifier and TypeMethodDescriptionfinal @Nullable CompoundTag
AttachmentHolder.serializeAttachments
(HolderLookup.Provider provider) Writes the serializable attachments to a tag.Methods in net.neoforged.neoforge.attachment with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected final void
AttachmentHolder.deserializeAttachments
(HolderLookup.Provider provider, CompoundTag tag) Reads serializable attachments from a tag previously created viaAttachmentHolder.serializeAttachments(HolderLookup.Provider)
.void
AttachmentHolder.AsField.deserializeInternal
(HolderLookup.Provider provider, CompoundTag tag) -
Uses of CompoundTag in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic @Nullable MobEffect
CommonHooks.loadMobEffect
(CompoundTag nbt, String key, @Nullable MobEffect fallback) static void
CommonHooks.readAdditionalLevelSaveData
(CompoundTag rootTag, LevelStorageSource.LevelDirectory levelDirectory) static void
CommonHooks.saveMobEffect
(CompoundTag nbt, String key, MobEffect effect) static void
CommonHooks.writeAdditionalLevelSaveData
(WorldData worldData, CompoundTag levelTag) static void
IOUtilities.writeNbt
(CompoundTag tag, Path path) Behaves much the same asNbtIo.write(CompoundTag, Path)
, but usesIOUtilities.atomicWrite(Path, WriteCallback)
behind the scenes to ensure the data is stored resiliently.static void
IOUtilities.writeNbtCompressed
(CompoundTag tag, Path path) Behaves much the same asNbtIo.writeCompressed(CompoundTag, Path)
, but usesIOUtilities.atomicWrite(Path, WriteCallback)
behind the scenes to ensure the data is stored resiliently. -
Uses of CompoundTag in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return CompoundTagModifier and TypeMethodDescriptionIBlockEntityExtension.getPersistentData()
Gets aCompoundTag
that can be used to store custom data for this block entity.IEntityExtension.getPersistentData()
Returns a NBTTagCompound that can be used to store custom data for this entity.Methods in net.neoforged.neoforge.common.extensions with parameters of type CompoundTagModifier and TypeMethodDescriptiondefault void
IBlockEntityExtension.handleUpdateTag
(CompoundTag tag, HolderLookup.Provider lookupProvider) Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag(HolderLookup.Provider)
, is received on the client. -
Uses of CompoundTag in net.neoforged.neoforge.common.util
Fields in net.neoforged.neoforge.common.util declared as CompoundTagMethods in net.neoforged.neoforge.common.util that return CompoundTagModifier and TypeMethodDescriptionprivate static @Nullable CompoundTag
BlockSnapshot.getBlockEntityTag
(LevelAccessor level, BlockPos pos) Checks for a block entity at a given position, and saves it to NBT with full metadata if it exists.@Nullable CompoundTag
BlockSnapshot.getTag()
Returns the recorded block entity NBT data, if one was present.static @Nullable CompoundTag
JsonUtils.readNBT
(JsonObject json, String key) Constructors in net.neoforged.neoforge.common.util with parameters of type CompoundTagModifierConstructorDescriptionprivate
BlockSnapshot
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, BlockState state, @Nullable CompoundTag nbt, int flags) -
Uses of CompoundTag in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic FluidStack
FluidStack.parseOptional
(HolderLookup.Provider lookupProvider, CompoundTag tag) Tries to parse a fluid stack, defaulting toFluidStack.EMPTY
on parsing failure. -
Uses of CompoundTag in net.neoforged.neoforge.fluids.capability.templates
Methods in net.neoforged.neoforge.fluids.capability.templates that return CompoundTagModifier and TypeMethodDescriptionFluidTank.writeToNBT
(HolderLookup.Provider lookupProvider, CompoundTag nbt) Methods in net.neoforged.neoforge.fluids.capability.templates with parameters of type CompoundTagModifier and TypeMethodDescriptionFluidTank.readFromNBT
(HolderLookup.Provider lookupProvider, CompoundTag nbt) FluidTank.writeToNBT
(HolderLookup.Provider lookupProvider, CompoundTag nbt) -
Uses of CompoundTag in net.neoforged.neoforge.items
Methods in net.neoforged.neoforge.items that return CompoundTagMethods in net.neoforged.neoforge.items with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ItemStackHandler.deserializeNBT
(HolderLookup.Provider provider, CompoundTag nbt)