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> p_87661_, String p_87662_) CompoundTagArgument.parse
(com.mojang.brigadier.StringReader p_87659_) 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 p_306231_, com.mojang.brigadier.CommandDispatcher<T> p_305923_) 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 pStructureLocationPath, CompoundTag pTag) 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 pStructureLocationPath, CompoundTag pTag) 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 p_400179_, Tag p_399751_) 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 p_399536_) 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 p_178054_) (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 p_178076_) (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 pTag) void
StringTagVisitor.visitCompound
(CompoundTag pTag) void
TagVisitor.visitCompound
(CompoundTag pTag) void
TextComponentTagVisitor.visitCompound
(CompoundTag pTag) 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 p_320394_) -
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 pSource) DataSource.getData
(CommandSourceStack pSource) EntityDataSource.getData
(CommandSourceStack pSource) StorageDataSource.getData
(CommandSourceStack pSource) -
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 p_195637_, BlockEntityType<?> p_195638_, CompoundTag p_195639_) 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> p_306010_) (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 p_309636_, ExecutionControl<T> p_309536_, com.mojang.brigadier.CommandDispatcher<T> p_309639_, T p_309605_, CommandFunction<T> p_309610_, ResourceLocation p_309719_, CommandResultCallback p_309544_, boolean p_309542_) 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> pExecutionControl, 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 p_309624_, List<T> p_306057_, Function<T, T> p_306045_, IntPredicate p_306343_, com.mojang.brigadier.context.ContextChain<T> p_306308_, CompoundTag p_306076_, ExecutionControl<T> p_306202_, InCommandFunction<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> p_397920_, ChainModifiers p_309703_) 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> p_139496_, CompoundTag p_139497_, NbtPathArgument.NbtPath p_139498_, List<Tag> p_139499_) 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.dialog.action
Fields in net.minecraft.server.dialog.action with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final Optional
<CompoundTag> CustomAll.additions
The field for theadditions
record component.Methods in net.minecraft.server.dialog.action that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionCustomAll.additions()
Returns the value of theadditions
record component.Constructor parameters in net.minecraft.server.dialog.action with type arguments of type CompoundTagModifierConstructorDescriptionCustomAll
(ResourceLocation id, Optional<CompoundTag> additions) Creates an instance of aCustomAll
record class. -
Uses of CompoundTag in net.minecraft.server.level
Methods in net.minecraft.server.level that return CompoundTagModifier and TypeMethodDescriptionprivate CompoundTag
ChunkMap.upgradeChunkTag
(CompoundTag p_214948_) Methods in net.minecraft.server.level that return types with arguments of type CompoundTagMethods in net.minecraft.server.level with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate CompoundTag
ChunkMap.upgradeChunkTag
(CompoundTag p_214948_) -
Uses of CompoundTag in net.minecraft.server.players
Methods in net.minecraft.server.players that return CompoundTag -
Uses of CompoundTag in net.minecraft.util.datafix
Methods in net.minecraft.util.datafix that return CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer p_265128_, CompoundTag p_265422_, int p_265549_, int p_265304_) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer p_265583_, CompoundTag p_265401_, int p_265111_) Methods in net.minecraft.util.datafix with parameters of type CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer p_265128_, CompoundTag p_265422_, int p_265549_, int p_265304_) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer p_265583_, CompoundTag p_265401_, int p_265111_) -
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 p_368632_) 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.entity
Fields in net.minecraft.world.entity declared as CompoundTagMethods in net.minecraft.world.entity that return CompoundTagMethods in net.minecraft.world.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic Entity
EntityType.loadEntityRecursive
(CompoundTag pEntityTag, Level pLevel, EntitySpawnReason pSpawnReason, Function<Entity, Entity> pAdapter) -
Uses of CompoundTag in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic void
Bucketable.loadDefaultDataFromBucketTag
(Mob pMob, CompoundTag pTag) Deprecated.void
AbstractFish.loadFromBucketTag
(CompoundTag pTag) void
Bucketable.loadFromBucketTag
(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item declared as CompoundTag -
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 TypeMethodDescriptionprivate void
Player.playShoulderEntityAmbientSound
(CompoundTag pEntityCompound) 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.raid
Methods in net.minecraft.world.entity.raid with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.item
Methods in net.minecraft.world.item that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTag
AdventureModePredicate.saveBlockEntity
(BlockEntity pBlockEntity, RegistryAccess pRegistryAccess, ProblemReporter pProblemReporter) -
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()
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.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 pRegistries) BeaconBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) BlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) BrushableBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) CampfireBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) ConduitBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) CreakingHeartBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) DecoratedPotBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) JigsawBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) SignBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) SkullBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) SpawnerBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) StructureBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) TestBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) TestInstanceBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) TheEndGatewayBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) TrialSpawnerBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) final CompoundTag
BlockEntity.saveCustomOnly
(HolderLookup.Provider pRegistries) final CompoundTag
BlockEntity.saveWithFullMetadata
(HolderLookup.Provider pRegistries) final CompoundTag
BlockEntity.saveWithoutMetadata
(HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.block.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic BlockPos
BlockEntity.getPosFromTag
(ChunkPos pChunkPos, CompoundTag pTag) static BlockEntity
BlockEntity.loadStatic
(BlockPos pPos, BlockState pState, CompoundTag pTag, HolderLookup.Provider pRegistries) -
Uses of CompoundTag in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return CompoundTagModifier and TypeMethodDescriptionTrialSpawnerStateData.getUpdateTag
(TrialSpawnerState pSpawnerState) Method 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 CompoundTagModifier and TypeMethodDescriptionVaultBlockEntity.getUpdateTag
(HolderLookup.Provider pRegistries) -
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 pRegistries) -
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 pPos) abstract CompoundTag
ChunkAccess.getBlockEntityNbtForSaving
(BlockPos pPos, HolderLookup.Provider pRegistries) ImposterProtoChunk.getBlockEntityNbtForSaving
(BlockPos pPos, HolderLookup.Provider pRegistries) LevelChunk.getBlockEntityNbtForSaving
(BlockPos pPos, HolderLookup.Provider pRegistries) ProtoChunk.getBlockEntityNbtForSaving
(BlockPos pPos, HolderLookup.Provider pRegistries) 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 pTag) Constructors in net.minecraft.world.level.chunk with parameters of type CompoundTag -
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 pChunkPos, CompoundTag pData) 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 pPos, Supplier<CompoundTag> pTagSupplier) 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 pContext, CompoundTag pTag) protected void
ScatteredFeaturePiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected abstract void
StructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
TemplateStructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) static StructureStart
StructureStart.loadStaticStart
(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) private it.unimi.dsi.fastutil.objects.Object2IntMap
<Structure> StructureCheck.loadStructures
(CompoundTag p_197312_) 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 pType, CompoundTag pTag) 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 pContext, CompoundTag pTag) StructurePieceType.load
(StructurePieceSerializationContext pContext, CompoundTag pTag) default StructurePiece
StructurePieceType.StructureTemplateType.load
(StructurePieceSerializationContext pContext, CompoundTag pTag) 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 pContext, CompoundTag pTag) protected void
DesertPyramidPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
EndCityPieces.EndCityPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
IglooPieces.IglooPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
JungleTemplePiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
MineshaftPieces.MineShaftCorridor.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
MineshaftPieces.MineShaftCrossing.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
MineshaftPieces.MineShaftPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
MineshaftPieces.MineShaftRoom.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
NetherFortressPieces.BridgeEndFiller.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
NetherFortressPieces.MonsterThrone.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
NetherFortressPieces.NetherBridgePiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
NetherFossilPieces.NetherFossilPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
OceanMonumentPieces.OceanMonumentPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
OceanRuinPieces.OceanRuinPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
RuinedPortalPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
ShipwreckPieces.ShipwreckPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.ChestCorridor.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.FillerCorridor.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.FiveCrossing.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.Library.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.PortalRoom.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.RoomCrossing.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.StairsDown.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.Straight.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
StrongholdPieces.StrongholdPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
SwampHutPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected void
WoodlandMansionPieces.WoodlandMansionPiece.addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) 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 pType, CompoundTag pTag) 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 pType, CompoundTag pTag) MineShaftRoom
(CompoundTag pTag) MineShaftStairs
(CompoundTag pTag) MonsterThrone
(CompoundTag pTag) MonumentBuilding
(CompoundTag pTag) NetherBridgePiece
(StructurePieceType pType, CompoundTag pTag) NetherFossilPiece
(StructureTemplateManager pStructureManager, CompoundTag pTag) OceanMonumentPiece
(StructurePieceType pType, CompoundTag pTag) 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 pType, CompoundTag pTag) StairsRoom
(CompoundTag pTag) StartPiece
(CompoundTag pTag) StartPiece
(CompoundTag pTag) Straight
(CompoundTag pTag) StrongholdPiece
(StructurePieceType pType, CompoundTag pTag) 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
(ProblemReporter pProblemReporter, 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 pRandom, CompoundTag pTag) AppendStatic.apply
(RandomSource pRandom, CompoundTag pTag) 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 pRandom, CompoundTag pTag) AppendStatic.apply
(RandomSource pRandom, CompoundTag pTag) 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
TagValueInput.input
private final CompoundTag
PrimaryLevelData.loadedPlayerTag
private final CompoundTag
TagValueOutput.output
Fields in net.minecraft.world.level.storage with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final List
<CompoundTag> TagValueInput.CompoundListWrapper.list
private final Map
<String, CompoundTag> CommandStorage.Container.storage
Methods in net.minecraft.world.level.storage that return CompoundTagModifier and TypeMethodDescriptionTagValueOutput.buildResult()
PrimaryLevelData.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 TypeMethodDescriptionstatic ValueInput
TagValueInput.create
(ProblemReporter pProblemReporter, HolderLookup.Provider pLookup, CompoundTag pInput) PrimaryLevelData.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) void
TagValueOutput.store
(CompoundTag tag) private void
DimensionDataStorage.tryWrite
(SavedDataType<?> pType, CompoundTag pTag) (package private) ValueInput
TagValueInput.CompoundListWrapper.wrapChild
(int pIndex, CompoundTag pTag) private ValueInput
TagValueInput.wrapChild
(String pKey, CompoundTag pTag) (package private) static ValueInput
TagValueInput.wrapChild
(ProblemReporter pProblemReporter, ValueInputContextHelper pContext, CompoundTag pTag) Method parameters in net.minecraft.world.level.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionstatic ValueInput.ValueInputList
TagValueInput.create
(ProblemReporter pProblemReporter, HolderLookup.Provider pLookup, List<CompoundTag> pInput) private void
LevelStorageSource.LevelStorageAccess.modifyLevelDataWithoutDatafix
(Consumer<CompoundTag> pModifier) Constructors in net.minecraft.world.level.storage with parameters of type CompoundTagModifierConstructorDescriptionprivate
PrimaryLevelData
(CompoundTag p_277888_, boolean p_278109_, BlockPos p_320000_, float p_277542_, long p_277414_, long p_277635_, int p_277672_, int p_277714_, int p_278088_, boolean p_277943_, int p_278037_, boolean p_277644_, boolean p_277749_, boolean p_278004_, WorldBorder.Settings p_277729_, int p_277595_, int p_277794_, UUID p_277341_, Set<String> p_277989_, Set<String> p_277399_, TimerQueue<MinecraftServer> p_277860_, CompoundTag p_277936_, EndDragonFight.Data p_289764_, LevelSettings p_278064_, WorldOptions p_278072_, PrimaryLevelData.SpecialWorldProperty p_277548_, com.mojang.serialization.Lifecycle p_277915_) private
TagValueInput
(ProblemReporter pProblemReporter, ValueInputContextHelper pContext, CompoundTag pInput) (package private)
TagValueOutput
(ProblemReporter p_422479_, com.mojang.serialization.DynamicOps<Tag> p_421675_, CompoundTag p_421646_) Constructor parameters in net.minecraft.world.level.storage with type arguments of type CompoundTagModifierConstructorDescriptionCompoundListWrapper
(ProblemReporter pProblemReporter, ValueInputContextHelper pContext, List<CompoundTag> pList) private
Container
(Map<String, CompoundTag> p_401367_) -
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> p_330259_, CompoundTag p_330792_) -
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> p_82255_) Methods in net.minecraft.world.level.timers with parameters of type CompoundTag -
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
ValueOutputExtension.store
(CompoundTag tag) Store the elements of the giventag
in the root level of this object, with the same keys as in thetag
. -
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
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)