Uses of Class
net.minecraft.nbt.CompoundTag
Packages that use CompoundTag
Package
Description
-
Uses of CompoundTag in net.minecraft.advancements.criterion
Fields in net.minecraft.advancements.criterion declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagNbtPredicate.tagThe field for thetagrecord component.Methods in net.minecraft.advancements.criterion that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagNbtPredicate.getEntityTagToCompare(Entity entity) NbtPredicate.tag()Returns the value of thetagrecord component.Methods in net.minecraft.advancements.criterion with parameters of type CompoundTagConstructors in net.minecraft.advancements.criterion with parameters of type CompoundTagModifierConstructorDescriptionNbtPredicate(CompoundTag tag) Creates an instance of aNbtPredicaterecord class. -
Uses of CompoundTag in net.minecraft.client
Fields in net.minecraft.client with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate @Nullable Consumer<CompoundTag> DebugQueryHandler.callbackMethods in net.minecraft.client that return CompoundTagMethods in net.minecraft.client with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate voidKeyboardHandler.copyCreateBlockCommand(BlockState state, BlockPos blockPos, @Nullable CompoundTag entityTag) private voidKeyboardHandler.copyCreateEntityCommand(Identifier id, Vec3 pos, @Nullable CompoundTag entityTag) private CompoundTagOptions.dataFix(CompoundTag tag) booleanDebugQueryHandler.handleResponse(int transactionId, @Nullable CompoundTag tag) Method parameters in net.minecraft.client with type arguments of type CompoundTagModifier and TypeMethodDescriptionvoidDebugQueryHandler.queryBlockEntityTag(BlockPos blockPos, Consumer<CompoundTag> callback) voidDebugQueryHandler.queryEntityTag(int entityId, Consumer<CompoundTag> callback) private intDebugQueryHandler.startTransaction(Consumer<CompoundTag> callback) -
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 ServerDataServerData.read(CompoundTag tag) Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance. -
Uses of CompoundTag in net.minecraft.commands.arguments
Classes in net.minecraft.commands.arguments that implement interfaces with type arguments of type CompoundTagFields in net.minecraft.commands.arguments declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagNbtPathArgument.MatchElementNode.patternprivate final CompoundTagNbtPathArgument.MatchObjectNode.patternMethods in net.minecraft.commands.arguments that return CompoundTagModifier and TypeMethodDescriptionstatic <S> CompoundTagCompoundTagArgument.getCompoundTag(com.mojang.brigadier.context.CommandContext<S> context, String name) CompoundTagArgument.parse(com.mojang.brigadier.StringReader reader) Methods in net.minecraft.commands.arguments with parameters of type CompoundTagModifier and TypeMethodDescriptionNbtPathArgument.createTagPredicate(CompoundTag pattern) intNbtPathArgument.NbtPath.insert(int index, CompoundTag target, List<Tag> toInsert) Constructors in net.minecraft.commands.arguments with parameters of type CompoundTagModifierConstructorDescriptionMatchElementNode(CompoundTag pattern) MatchObjectNode(String name, CompoundTag pattern) MatchRootObjectNode(CompoundTag pattern) -
Uses of CompoundTag in net.minecraft.commands.arguments.blocks
Fields in net.minecraft.commands.arguments.blocks declared as CompoundTagModifier and TypeFieldDescriptionprivate final @Nullable CompoundTagBlockPredicateArgument.BlockPredicate.nbtprivate final @Nullable CompoundTagBlockPredicateArgument.TagPredicate.nbtprivate final @Nullable CompoundTagBlockStateParser.BlockResult.nbtThe field for thenbtrecord component.private @Nullable CompoundTagBlockStateParser.nbtprivate final @Nullable CompoundTagBlockStateParser.TagResult.nbtThe field for thenbtrecord component.private final @Nullable CompoundTagBlockInput.tagMethods in net.minecraft.commands.arguments.blocks that return CompoundTagModifier and TypeMethodDescription@Nullable CompoundTagBlockStateParser.BlockResult.nbt()Returns the value of thenbtrecord component.@Nullable CompoundTagBlockStateParser.TagResult.nbt()Returns the value of thenbtrecord component.Constructors in net.minecraft.commands.arguments.blocks with parameters of type CompoundTagModifierConstructorDescriptionBlockInput(BlockState state, Set<Property<?>> properties, @Nullable CompoundTag tag) BlockPredicate(BlockState state, Set<Property<?>> properties, @Nullable CompoundTag nbt) BlockResult(BlockState blockState, Map<Property<?>, Comparable<?>> properties, @Nullable CompoundTag nbt) Creates an instance of aBlockResultrecord class.privateTagPredicate(HolderSet<Block> tag, Map<String, String> vagueProperties, @Nullable CompoundTag nbt) Creates an instance of aTagResultrecord class. -
Uses of CompoundTag in net.minecraft.commands.functions
Methods in net.minecraft.commands.functions with parameters of type CompoundTagModifier and TypeMethodDescriptionCommandFunction.instantiate(@Nullable CompoundTag arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) MacroFunction.instantiate(@Nullable CompoundTag arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) PlainTextFunction.instantiate(@Nullable CompoundTag arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) -
Uses of CompoundTag in net.minecraft.data.structures
Methods in net.minecraft.data.structures that return CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply(String name, CompoundTag input) StructureUpdater.apply(String name, CompoundTag input) private CompoundTagSnbtToNbt.applyFilters(String name, CompoundTag input) static CompoundTagStructureUpdater.update(String name, CompoundTag tag) Methods in net.minecraft.data.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply(String name, CompoundTag input) StructureUpdater.apply(String name, CompoundTag input) private CompoundTagSnbtToNbt.applyFilters(String name, CompoundTag input) static CompoundTagStructureUpdater.update(String name, CompoundTag tag) -
Uses of CompoundTag in net.minecraft.nbt
Subclasses with type arguments of type CompoundTag in net.minecraft.nbtFields in net.minecraft.nbt with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundTag> CompoundTag.CODECstatic final com.mojang.serialization.Codec<CompoundTag> TagParser.FLATTENED_CODECstatic final com.mojang.serialization.Codec<CompoundTag> TagParser.LENIENT_CODECstatic final TagType<CompoundTag> CompoundTag.TYPEMethods in net.minecraft.nbt that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagNbtUtils.addCurrentDataVersion(CompoundTag tag) static CompoundTagNbtUtils.addDataVersion(CompoundTag tag, int version) protected CompoundTagNbtOps.NbtRecordBuilder.append(String key, Tag value, CompoundTag builder) private static CompoundTagTagParser.castToCompoundOrThrow(com.mojang.brigadier.StringReader reader, Tag result) CompoundTag.copy()CompoundTag.getCompoundOrEmpty(String name) ListTag.getCompoundOrEmpty(int index) protected CompoundTagNbtOps.NbtRecordBuilder.initBuilder()CompoundTag.merge(CompoundTag other) Copies all the tags ofotherinto this tag, then returns itself.(package private) static CompoundTagNbtUtils.packStructureTemplate(CompoundTag snbt) static CompoundTagTagParser.parseCompoundAsArgument(com.mojang.brigadier.StringReader reader) static CompoundTagTagParser.parseCompoundFully(String input) static CompoundTagReads a compound tag from a file.static CompoundTagNbtIo.read(DataInput input, NbtAccounter accounter) Reads a compound tag from a file.static @Nullable CompoundTagstatic CompoundTagNbtIo.readCompressed(InputStream in, NbtAccounter accounter) static CompoundTagNbtIo.readCompressed(Path file, NbtAccounter accounter) protected CompoundTagCompoundTag.shallowCopy()static CompoundTagNbtUtils.snbtToStructure(String snbt) (package private) static CompoundTagNbtUtils.unpackBlockState(String compound) (package private) static CompoundTagNbtUtils.unpackStructureTemplate(CompoundTag template) private static CompoundTagListTag.wrapElement(Tag tag) static CompoundTagNbtUtils.writeBlockState(BlockState state) static CompoundTagNbtUtils.writeFluidState(FluidState state) 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 name) ListTag.getCompound(int index) CompoundTag.getType()Methods in net.minecraft.nbt with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagNbtUtils.addCurrentDataVersion(CompoundTag tag) static CompoundTagNbtUtils.addDataVersion(CompoundTag tag, int version) protected CompoundTagNbtOps.NbtRecordBuilder.append(String key, Tag value, CompoundTag builder) protected com.mojang.serialization.DataResult<Tag> NbtOps.NbtRecordBuilder.build(CompoundTag builder, Tag prefix) static intNbtUtils.getDataVersion(CompoundTag tag) static intNbtUtils.getDataVersion(CompoundTag tag, int _default) SnbtPrinterTagVisitor.getKeys(CompoundTag tag) private static booleanListTag.isWrapper(CompoundTag tag) CompoundTag.merge(CompoundTag other) Copies all the tags ofotherinto this tag, then returns itself.(package private) static StringNbtUtils.packBlockState(CompoundTag compound) (package private) static CompoundTagNbtUtils.packStructureTemplate(CompoundTag snbt) static BlockStateNbtUtils.readBlockState(HolderGetter<Block> blocks, CompoundTag tag) private static <S extends StateHolder<?,S>, T extends Comparable<T>>
SNbtUtils.setValueHelper(S result, Property<T> property, String key, CompoundTag properties, CompoundTag tag) static StringNbtUtils.structureToSnbt(CompoundTag structure) private static TagListTag.tryUnwrap(CompoundTag tag) (package private) static CompoundTagNbtUtils.unpackStructureTemplate(CompoundTag template) voidSnbtPrinterTagVisitor.visitCompound(CompoundTag tag) voidStringTagVisitor.visitCompound(CompoundTag tag) voidTagVisitor.visitCompound(CompoundTag tag) voidTextComponentTagVisitor.visitCompound(CompoundTag tag) static voidNbtIo.write(CompoundTag tag, DataOutput output) static voidNbtIo.write(CompoundTag tag, Path file) static voidNbtIo.writeCompressed(CompoundTag tag, OutputStream out) Writes and compresses a compound tag to a GNU zipped file.static voidNbtIo.writeCompressed(CompoundTag tag, Path file) -
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 TypeMethodDescription@Nullable CompoundTagFriendlyByteBuf.readNbt()static @Nullable CompoundTagFriendlyByteBuf.readNbt(io.netty.buffer.ByteBuf input) -
Uses of CompoundTag in net.minecraft.network.chat.contents.data
Methods in net.minecraft.network.chat.contents.data that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionBlockDataSource.getData(CommandSourceStack sender) DataSource.getData(CommandSourceStack sender) EntityDataSource.getData(CommandSourceStack sender) StorageDataSource.getData(CommandSourceStack sender) -
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_TAGstatic final StreamCodec<io.netty.buffer.ByteBuf, Optional<CompoundTag>> ByteBufCodecs.OPTIONAL_COMPOUND_TAGstatic final StreamCodec<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.TRUSTED_COMPOUND_TAGMethods 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> accounter) -
Uses of CompoundTag in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagClientboundBlockEntityDataPacket.tagprivate final @Nullable CompoundTagClientboundLevelChunkPacketData.BlockEntityInfo.tagprivate final @Nullable CompoundTagClientboundTagQueryPacket.tagMethods in net.minecraft.network.protocol.game that return CompoundTagModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.getTag()@Nullable CompoundTagClientboundTagQueryPacket.getTag()Methods in net.minecraft.network.protocol.game with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidClientboundLevelChunkPacketData.BlockEntityTagOutput.accept(BlockPos pos, BlockEntityType<?> type, @Nullable CompoundTag tag) Method parameters in net.minecraft.network.protocol.game with type arguments of type CompoundTagModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create(BlockEntity blockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> updateTagSaver) Constructors in net.minecraft.network.protocol.game with parameters of type CompoundTagModifierConstructorDescriptionprivateBlockEntityInfo(int packedXZ, int y, BlockEntityType<?> type, @Nullable CompoundTag tag) privateClientboundBlockEntityDataPacket(BlockPos pos, BlockEntityType<?> type, CompoundTag tag) ClientboundTagQueryPacket(int transactionId, @Nullable CompoundTag tag) -
Uses of CompoundTag in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagCloneCommands.CloneBlockEntityInfo.tagThe field for thetagrecord component.Methods in net.minecraft.server.commands that return CompoundTagModifier and TypeMethodDescriptionprotected abstract @Nullable CompoundTagFunctionCommand.FunctionCustomExecutor.arguments(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) private static CompoundTagFunctionCommand.getArgumentTag(NbtPathArgument.NbtPath path, DataAccessor accessor) CloneCommands.CloneBlockEntityInfo.tag()Returns the value of thetagrecord component.Methods in net.minecraft.server.commands with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic EntitySummonCommand.createEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.instantiateAndQueueFunctions(@Nullable CompoundTag arguments, ExecutionControl<T> output, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T noCallbackSource, CommandFunction<T> function, Identifier id, CommandResultCallback functionResultCollector, boolean returnParentFrame) static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions(Collection<CommandFunction<T>> functions, @Nullable CompoundTag arguments, T originalSource, T functionSource, ExecutionControl<T> output, FunctionCommand.Callbacks<T> callbacks, ChainModifiers modifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn(Collection<CommandFunction<T>> functions, @Nullable CompoundTag arguments, T originalSource, T functionSource, ExecutionControl<T> output, FunctionCommand.Callbacks<T> callbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn(Collection<CommandFunction<T>> functions, @Nullable CompoundTag arguments, T originalSource, T functionSource, ExecutionControl<T> output, FunctionCommand.Callbacks<T> callbacks) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest(T originalSource, List<T> currentSources, Function<T, T> functionContextModifier, IntPredicate check, com.mojang.brigadier.context.ContextChain<T> currentStep, @Nullable CompoundTag parameters, ExecutionControl<T> output, InCommandFunction<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> functionGetter, ChainModifiers modifiers) private static intSummonCommand.spawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) Constructors in net.minecraft.server.commands with parameters of type CompoundTagModifierConstructorDescriptionprivateCloneBlockEntityInfo(CompoundTag tag, DataComponentMap components) Creates an instance of aCloneBlockEntityInforecord 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 intDataCommands.mergeData(CommandSourceStack source, DataAccessor accessor, CompoundTag nbt) Merges the given NBT into the targeted object's NBT.intDataCommands.DataManipulator.modify(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, CompoundTag targetData, NbtPathArgument.NbtPath targetPath, List<Tag> source) voidBlockDataAccessor.setData(CompoundTag tag) voidDataAccessor.setData(CompoundTag tag) voidEntityDataAccessor.setData(CompoundTag tag) voidStorageDataAccessor.setData(CompoundTag tag) -
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.additionsThe field for theadditionsrecord component.Methods in net.minecraft.server.dialog.action that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionCustomAll.additions()Returns the value of theadditionsrecord component.Constructor parameters in net.minecraft.server.dialog.action with type arguments of type CompoundTagModifierConstructorDescriptionCustomAll(Identifier id, Optional<CompoundTag> additions) Creates an instance of aCustomAllrecord class. -
Uses of CompoundTag in net.minecraft.server.level
Fields in net.minecraft.server.level declared as CompoundTagModifier and TypeFieldDescriptionprivate CompoundTagServerPlayer.shoulderEntityLeftprivate CompoundTagServerPlayer.shoulderEntityRightMethods in net.minecraft.server.level that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagChunkMap.getChunkDataFixContextTag(ResourceKey<Level> dimension, Optional<Identifier> generatorIdentifier) ServerPlayer.getShoulderEntityLeft()ServerPlayer.getShoulderEntityRight()private CompoundTagChunkMap.upgradeChunkTag(CompoundTag tag) 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 voidServerPlayer.playShoulderEntityAmbientSound(CompoundTag shoulderEntityTag) private voidServerPlayer.respawnEntityOnShoulder(CompoundTag tag) booleanServerPlayer.setEntityOnShoulder(CompoundTag entityTag) protected voidServerPlayer.setShoulderEntityLeft(CompoundTag tag) protected voidServerPlayer.setShoulderEntityRight(CompoundTag tag) private CompoundTagChunkMap.upgradeChunkTag(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.server.players
Methods in net.minecraft.server.players that return types with arguments of type 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 fixer, CompoundTag tag, int fromVersion, int toVersion) DataFixTypes.updateToCurrentVersion(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int fromVersion) Methods in net.minecraft.util.datafix with parameters of type CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int fromVersion, int toVersion) DataFixTypes.updateToCurrentVersion(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int fromVersion) -
Uses of CompoundTag in net.minecraft.util.datafix.fixes
Methods in net.minecraft.util.datafix.fixes that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTagprivate static CompoundTagTrialSpawnerConfigInRegistryFix.VanillaTrialChambers.removeDefaults(CompoundTag tag) Methods in net.minecraft.util.datafix.fixes with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Dynamic<Tag> TrialSpawnerConfigInRegistryFix.VanillaTrialChambers.asDynamic(CompoundTag normalTag) private static CompoundTagTrialSpawnerConfigInRegistryFix.VanillaTrialChambers.removeDefaults(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.util.filefix.access
Methods in net.minecraft.util.filefix.access with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidChunkNbt.updateChunk(ChunkPos pos, CompoundTag dataFixContext, UnaryOperator<CompoundTag> fixer) Method parameters in net.minecraft.util.filefix.access with type arguments of type CompoundTagModifier and TypeMethodDescriptionvoidChunkNbt.updateChunk(ChunkPos pos, CompoundTag dataFixContext, UnaryOperator<CompoundTag> fixer) -
Uses of CompoundTag in net.minecraft.util.filefix.fixes
Methods in net.minecraft.util.filefix.fixes with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static voidLegacyStructureFileFix.storeLegacyStructureDataToChunks(it.unimi.dsi.fastutil.longs.Long2ObjectMap<LegacyStructureFileFix.LegacyStructureData> structures, ChunkNbt chunksAccess, CompoundTag dataFixContext, UpgradeProgress upgradeProgress) -
Uses of CompoundTag in net.minecraft.util.worldupdate
Fields in net.minecraft.util.worldupdate declared as CompoundTagModifier and TypeFieldDescriptionprivate @Nullable CompoundTagRegionStorageUpgrader.Builder.dataFixContextTagprivate final @Nullable CompoundTagRegionStorageUpgrader.dataFixContextTagMethods in net.minecraft.util.worldupdate that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagWorldUpgrader.getDataFixContextTag(Registry<LevelStem> dimensions, ResourceKey<Level> dimension) protected CompoundTagRegionStorageUpgrader.upgradeTag(SimpleRegionStorage storage, CompoundTag chunkTag, int targetVersion) Methods in net.minecraft.util.worldupdate with parameters of type CompoundTagModifier and TypeMethodDescriptionbooleanRegionStorageUpgrader.TagModifier.modifyTagAfterFix(ChunkPos pos, CompoundTag upgradedTag) RegionStorageUpgrader.Builder.setDataFixContextTag(@Nullable CompoundTag dataFixContextTag) protected CompoundTagRegionStorageUpgrader.upgradeTag(SimpleRegionStorage storage, CompoundTag chunkTag, int targetVersion) static booleanWorldUpgrader.verifyChunkPos(ChunkPos pos, CompoundTag upgradedTag) static booleanWorldUpgrader.verifyChunkPosAndEraseCache(ChunkPos pos, CompoundTag upgradedTag) Constructors in net.minecraft.util.worldupdate with parameters of type CompoundTagModifierConstructorDescriptionprotectedRegionStorageUpgrader(com.mojang.datafixers.DataFixer dataFixer, DataFixTypes dataFixType, String type, String folderName, int defaultVersion, boolean recreateRegionFiles, UpgradeProgress upgradeProgress, int startIndex, @Nullable CompoundTag dataFixContextTag, it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegionStorageUpgrader.TagModifier> tagModifiers) -
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 @Nullable EntityEntityType.loadEntityRecursive(CompoundTag tag, Level level, EntitySpawnReason reason, EntityProcessor postLoad) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> type, CompoundTag tag, Level level, EntitySpawnReason reason, EntityProcessor postLoad) -
Uses of CompoundTag in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic voidBucketable.loadDefaultDataFromBucketTag(Mob entity, CompoundTag tag) Deprecated.voidBucketable.loadFromBucketTag(CompoundTag tag) -
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.fish
Methods in net.minecraft.world.entity.animal.fish 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
Methods in net.minecraft.world.entity.player with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected static Optional<Parrot.Variant> Player.extractParrotVariant(CompoundTag tag) -
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 CompoundTagAdventureModePredicate.saveBlockEntity(BlockEntity blockEntity, RegistryAccess registryAccess, ProblemReporter reporter) -
Uses of CompoundTag in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagCustomData.tagprivate final CompoundTagTypedEntityData.tagFields in net.minecraft.world.item.component with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundTag> CustomData.COMPOUND_TAG_CODECMethods in net.minecraft.world.item.component that return CompoundTagModifier and TypeMethodDescriptionCustomData.copyTag()TypedEntityData.copyTagWithoutId()TypedEntityData.getUnsafe()Deprecated.private static CompoundTagTypedEntityData.stripId(CompoundTag tag) private CompoundTagTypedEntityData.tag()Methods in net.minecraft.world.item.component with parameters of type CompoundTagModifier and TypeMethodDescriptionbooleanCustomData.matchedBy(CompoundTag expectedTag) static CustomDataCustomData.of(CompoundTag tag) static <T> TypedEntityData<T> TypedEntityData.of(T type, CompoundTag data) static voidCustomData.set(DataComponentType<CustomData> component, ItemStack itemStack, CompoundTag tag) private static CompoundTagTypedEntityData.stripId(CompoundTag tag) Method parameters in net.minecraft.world.item.component with type arguments of type CompoundTagModifier and TypeMethodDescriptionCustomData.update(Consumer<CompoundTag> consumer) static voidCustomData.update(DataComponentType<CustomData> component, ItemStack itemStack, Consumer<CompoundTag> consumer) Constructors in net.minecraft.world.item.component with parameters of type CompoundTagModifierConstructorDescriptionprivateCustomData(CompoundTag tag) privateTypedEntityData(IdType type, CompoundTag data) -
Uses of CompoundTag in net.minecraft.world.level
Fields in net.minecraft.world.level declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagSpawnData.entityToSpawnThe field for theentityToSpawnrecord component.Methods in net.minecraft.world.level that return CompoundTagModifier and TypeMethodDescriptionSpawnData.entityToSpawn()Returns the value of theentityToSpawnrecord 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 aSpawnDatarecord 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 registries) BeaconBlockEntity.getUpdateTag(HolderLookup.Provider registries) BlockEntity.getUpdateTag(HolderLookup.Provider registries) BrushableBlockEntity.getUpdateTag(HolderLookup.Provider registries) CampfireBlockEntity.getUpdateTag(HolderLookup.Provider registries) ConduitBlockEntity.getUpdateTag(HolderLookup.Provider registries) CreakingHeartBlockEntity.getUpdateTag(HolderLookup.Provider registries) DecoratedPotBlockEntity.getUpdateTag(HolderLookup.Provider registries) JigsawBlockEntity.getUpdateTag(HolderLookup.Provider registries) ShelfBlockEntity.getUpdateTag(HolderLookup.Provider registries) SignBlockEntity.getUpdateTag(HolderLookup.Provider registries) SkullBlockEntity.getUpdateTag(HolderLookup.Provider registries) SpawnerBlockEntity.getUpdateTag(HolderLookup.Provider registries) StructureBlockEntity.getUpdateTag(HolderLookup.Provider registries) TestBlockEntity.getUpdateTag(HolderLookup.Provider registries) TestInstanceBlockEntity.getUpdateTag(HolderLookup.Provider registries) TheEndGatewayBlockEntity.getUpdateTag(HolderLookup.Provider registries) TrialSpawnerBlockEntity.getUpdateTag(HolderLookup.Provider registries) final CompoundTagBlockEntity.saveCustomOnly(HolderLookup.Provider registries) final CompoundTagBlockEntity.saveWithFullMetadata(HolderLookup.Provider registries) final CompoundTagBlockEntity.saveWithoutMetadata(HolderLookup.Provider registries) Methods in net.minecraft.world.level.block.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic BlockPosBlockEntity.getPosFromTag(ChunkPos base, CompoundTag entityTag) static @Nullable BlockEntityBlockEntity.loadStatic(BlockPos pos, BlockState state, CompoundTag tag, HolderLookup.Provider registries) -
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> type, Consumer<CompoundTag> tagModifier) TrialSpawnerConfigs.customSpawnDataWithEquipment(EntityType<T> type, Consumer<CompoundTag> tagModifier, @Nullable ResourceKey<LootTable> equipmentLootTable) -
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 registries) -
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 registries) -
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.entitiesprotected final Map<BlockPos, CompoundTag> ChunkAccess.pendingBlockEntitiesMethods in net.minecraft.world.level.chunk that return CompoundTagModifier and TypeMethodDescription@Nullable CompoundTagChunkAccess.getBlockEntityNbt(BlockPos blockPos) @Nullable CompoundTagImposterProtoChunk.getBlockEntityNbt(BlockPos blockPos) abstract @Nullable CompoundTagChunkAccess.getBlockEntityNbtForSaving(BlockPos blockPos, HolderLookup.Provider registryAccess) @Nullable CompoundTagImposterProtoChunk.getBlockEntityNbtForSaving(BlockPos blockPos, HolderLookup.Provider registryAccess) @Nullable CompoundTagLevelChunk.getBlockEntityNbtForSaving(BlockPos blockPos, HolderLookup.Provider registryAccess) @Nullable CompoundTagProtoChunk.getBlockEntityNbtForSaving(BlockPos blockPos, HolderLookup.Provider registryAccess) UpgradeData.write()final @Nullable CompoundTagChunkAccess.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 TypeMethodDescriptionvoidProtoChunk.addEntity(CompoundTag tag) private @Nullable BlockEntityLevelChunk.promotePendingBlockEntity(BlockPos pos, CompoundTag tag) final voidChunkAccess.readAttachmentsFromNBT(HolderLookup.Provider provider, CompoundTag tag) FOR INTERNAL USE ONLYvoidChunkAccess.setBlockEntityNbt(CompoundTag entityTag) voidImposterProtoChunk.setBlockEntityNbt(CompoundTag entityTag) Constructors in net.minecraft.world.level.chunk with parameters of type CompoundTagModifierConstructorDescriptionUpgradeData(CompoundTag tag, LevelHeightAccessor levelHeightAccessor) -
Uses of CompoundTag in net.minecraft.world.level.chunk.storage
Fields in net.minecraft.world.level.chunk.storage declared as CompoundTagModifier and TypeFieldDescriptionprivate final @Nullable CompoundTagSerializableChunkData.attachmentDataThe field for theattachmentDatarecord component.private @Nullable CompoundTagIOWorker.PendingStore.dataprivate final CompoundTagSerializableChunkData.structureDataThe field for thestructureDatarecord component.Fields in net.minecraft.world.level.chunk.storage with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final List<CompoundTag> SerializableChunkData.blockEntitiesThe field for theblockEntitiesrecord component.private final List<CompoundTag> SerializableChunkData.entitiesThe field for theentitiesrecord component.static final Supplier<CompoundTag> IOWorker.STORE_EMPTYMethods in net.minecraft.world.level.chunk.storage that return CompoundTagModifier and TypeMethodDescription@Nullable CompoundTagSerializableChunkData.attachmentData()Returns the value of theattachmentDatarecord component.private @Nullable CompoundTagIOWorker.PendingStore.copyData()private static CompoundTagSerializableChunkData.packStructureData(StructurePieceSerializationContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> references) @Nullable CompoundTagSerializableChunkData.structureData()Returns the value of thestructureDatarecord component.SimpleRegionStorage.upgradeChunkTag(CompoundTag chunkTag, int defaultVersion) SimpleRegionStorage.upgradeChunkTag(CompoundTag chunkTag, int defaultVersion, @Nullable CompoundTag dataFixContextTag, int targetVersion) 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 theblockEntitiesrecord component.SerializableChunkData.entities()Returns the value of theentitiesrecord component.Methods in net.minecraft.world.level.chunk.storage with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ChunkStatusSerializableChunkData.getChunkStatusFromTag(@Nullable CompoundTag tag) static voidSimpleRegionStorage.injectDatafixingContext(CompoundTag chunkTag, @Nullable CompoundTag contextTag) private booleanIOWorker.isOldChunk(CompoundTag tag) static SerializableChunkDataSerializableChunkData.parse(LevelHeightAccessor levelHeight, PalettedContainerFactory containerFactory, CompoundTag chunkData) private static voidSimpleRegionStorage.removeDatafixingContext(CompoundTag chunkTag) private static voidSerializableChunkData.saveTicks(CompoundTag levelData, ChunkAccess.PackedTicks ticksForSerialization) IOWorker.store(ChunkPos pos, CompoundTag value) SerializableChunkData.unpackStructureReferences(RegistryAccess registryAccess, ChunkPos pos, CompoundTag tag) private static Map<Structure, StructureStart> SerializableChunkData.unpackStructureStart(StructurePieceSerializationContext context, CompoundTag tag, long seed) SimpleRegionStorage.upgradeChunkTag(CompoundTag chunkTag, int defaultVersion) SimpleRegionStorage.upgradeChunkTag(CompoundTag chunkTag, int defaultVersion, @Nullable CompoundTag dataFixContextTag, int targetVersion) protected voidRegionFileStorage.write(ChunkPos pos, @Nullable CompoundTag value) SimpleRegionStorage.write(ChunkPos pos, CompoundTag value) Method parameters in net.minecraft.world.level.chunk.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate static @Nullable LevelChunk.PostLoadProcessorSerializableChunkData.postLoadChunk(ServerLevel level, List<CompoundTag> entities, List<CompoundTag> blockEntities) IOWorker.store(ChunkPos pos, Supplier<CompoundTag> supplier) RecreatingSimpleRegionStorage.write(ChunkPos pos, Supplier<CompoundTag> supplier) SimpleRegionStorage.write(ChunkPos pos, Supplier<CompoundTag> supplier) Constructors in net.minecraft.world.level.chunk.storage with parameters of type CompoundTagModifierConstructorDescriptionPendingStore(@Nullable CompoundTag data) SerializableChunkData(PalettedContainerFactory containerFactory, ChunkPos chunkPos, int minSectionY, long lastUpdateTime, long inhabitedTime, ChunkStatus chunkStatus, @Nullable BlendingData.Packed blendingData, @Nullable BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, long @Nullable [] carvingMask, Map<Heightmap.Types, long[]> heightmaps, ChunkAccess.PackedTicks packedTicks, @Nullable it.unimi.dsi.fastutil.shorts.ShortList[] postProcessingSections, boolean lightCorrect, List<SerializableChunkData.SectionData> sectionData, List<CompoundTag> entities, List<CompoundTag> blockEntities, CompoundTag structureData, @Nullable CompoundTag attachmentData, @Nullable ListTag auxLightData) Creates an instance of aSerializableChunkDatarecord class.(package private)SerializableChunkData(PalettedContainerFactory containerFactory, ChunkPos chunkPos, int minSectionY, long lastUpdateTime, long inhabitedTime, ChunkStatus chunkStatus, @Nullable BlendingData.Packed blendingData, @Nullable BelowZeroRetrogen belowZeroRetrogen, UpgradeData upgradeData, long @Nullable [] 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 instead -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure
Methods in net.minecraft.world.level.levelgen.structure that return CompoundTagModifier and TypeMethodDescriptionfinal CompoundTagStructurePiece.createTag(StructurePieceSerializationContext context) StructureStart.createTag(StructurePieceSerializationContext context, ChunkPos chunkPos) Methods in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidPoolElementStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidScatteredFeaturePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected abstract voidStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidTemplateStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) static @Nullable StructureStartStructureStart.loadStaticStart(StructurePieceSerializationContext context, CompoundTag tag, long seed) private @Nullable it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> StructureCheck.loadStructures(CompoundTag chunkTag) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifierConstructorDescriptionprotectedScatteredFeaturePiece(StructurePieceType type, CompoundTag tag) StructurePiece(StructurePieceType type, CompoundTag tag) TemplateStructurePiece(StructurePieceType type, CompoundTag tag, StructureTemplateManager structureTemplateManager, Function<Identifier, StructurePlaceSettings> structurePlaceSettingsSupplier) -
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 tag) default StructurePieceStructurePieceType.ContextlessType.load(StructurePieceSerializationContext context, CompoundTag tag) StructurePieceType.load(StructurePieceSerializationContext context, CompoundTag tag) default StructurePieceStructurePieceType.StructureTemplateType.load(StructurePieceSerializationContext context, CompoundTag tag) StructurePieceType.StructureTemplateType.load(StructureTemplateManager structureTemplateManager, CompoundTag tag) -
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 voidBuriedTreasurePieces.BuriedTreasurePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidDesertPyramidPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidEndCityPieces.EndCityPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidIglooPieces.IglooPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidJungleTemplePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidMineshaftPieces.MineShaftCorridor.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidMineshaftPieces.MineShaftCrossing.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidMineshaftPieces.MineShaftPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidMineshaftPieces.MineShaftRoom.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidNetherFortressPieces.BridgeEndFiller.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidNetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidNetherFortressPieces.CastleSmallCorridorRightTurnPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidNetherFortressPieces.MonsterThrone.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidNetherFortressPieces.NetherBridgePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidNetherFossilPieces.NetherFossilPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidOceanMonumentPieces.OceanMonumentPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidOceanRuinPieces.OceanRuinPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidRuinedPortalPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidShipwreckPieces.ShipwreckPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.ChestCorridor.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.FillerCorridor.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.FiveCrossing.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.Library.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.PortalRoom.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.RoomCrossing.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.StairsDown.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.Straight.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidStrongholdPieces.StrongholdPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidSwampHutPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidWoodlandMansionPieces.WoodlandMansionPiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) OceanRuinPieces.OceanRuinPiece.create(StructureTemplateManager structureTemplateManager, CompoundTag tag) private static StructurePlaceSettingsRuinedPortalPiece.makeSettings(StructureTemplateManager structureTemplateManager, CompoundTag tag, Identifier location) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifierConstructorDescriptionprotectedBridgeCrossing(StructurePieceType type, CompoundTag tag) ChestCorridor(CompoundTag tag) EndCityPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) FiveCrossing(CompoundTag tag) IglooPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) LeftTurn(CompoundTag tag) Library(CompoundTag tag) MineShaftPiece(StructurePieceType type, CompoundTag tag) MineShaftRoom(CompoundTag tag) MonsterThrone(CompoundTag tag) NetherBridgePiece(StructurePieceType type, CompoundTag tag) NetherFossilPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) OceanMonumentPiece(StructurePieceType type, CompoundTag tag) privateOceanRuinPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag, Rotation rotation, float integrity, OceanRuinStructure.Type biomeType, boolean isLarge) PortalRoom(CompoundTag tag) PrisonHall(CompoundTag tag) RightTurn(CompoundTag tag) RoomCrossing(CompoundTag tag) RoomCrossing(CompoundTag tag) RuinedPortalPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) ShipwreckPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) StairsDown(CompoundTag tag) StairsDown(StructurePieceType type, CompoundTag tag) StairsRoom(CompoundTag tag) StartPiece(CompoundTag tag) StartPiece(CompoundTag tag) Straight(CompoundTag tag) StrongholdPiece(StructurePieceType type, CompoundTag tag) SwampHutPiece(CompoundTag tag) Turn(StructurePieceType type, CompoundTag tag) WoodlandMansionPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) -
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 @Nullable CompoundTagStructureTemplate.StructureBlockInfo.nbtThe field for thenbtrecord component.final CompoundTagStructureTemplate.StructureEntityInfo.nbtMethods in net.minecraft.world.level.levelgen.structure.templatesystem that return CompoundTagModifier and TypeMethodDescription@Nullable CompoundTagProcessorRule.getOutputTag(RandomSource random, @Nullable CompoundTag existingTag) @Nullable CompoundTagStructureTemplate.StructureBlockInfo.nbt()Returns the value of thenbtrecord component.StructureTemplate.save(CompoundTag tag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException(ProblemReporter reporter, ServerLevelAccessor level, CompoundTag tag) static JigsawBlockEntity.JointTypeStructureTemplate.getJointType(CompoundTag nbt, BlockState state) @Nullable CompoundTagProcessorRule.getOutputTag(RandomSource random, @Nullable CompoundTag existingTag) voidStructureTemplate.load(HolderGetter<Block> blockLookup, CompoundTag tag) StructureTemplate.save(CompoundTag tag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifierConstructorDescriptionStructureBlockInfo(BlockPos pos, BlockState state, @Nullable CompoundTag nbt) Creates an instance of aStructureBlockInforecord class.StructureEntityInfo(Vec3 pos, BlockPos blockPos, CompoundTag nbt) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem.loader
Methods in net.minecraft.world.level.levelgen.structure.templatesystem.loader that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTagTemplateSource.readStructure(InputStream input) private static CompoundTagTemplateSource.readTextStructure(InputStream input) Methods in net.minecraft.world.level.levelgen.structure.templatesystem.loader with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate StructureTemplateTemplateSource.readStructure(CompoundTag tag) -
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 random, @Nullable CompoundTag existingTag) AppendStatic.apply(RandomSource random, @Nullable CompoundTag existingTag) Clear.apply(RandomSource random, @Nullable CompoundTag existingTag) @Nullable CompoundTagPassthrough.apply(RandomSource random, @Nullable CompoundTag existingTag) @Nullable CompoundTagRuleBlockEntityModifier.apply(RandomSource random, @Nullable CompoundTag existingTag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply(RandomSource random, @Nullable CompoundTag existingTag) AppendStatic.apply(RandomSource random, @Nullable CompoundTag existingTag) Clear.apply(RandomSource random, @Nullable CompoundTag existingTag) @Nullable CompoundTagPassthrough.apply(RandomSource random, @Nullable CompoundTag existingTag) @Nullable CompoundTagRuleBlockEntityModifier.apply(RandomSource random, @Nullable CompoundTag existingTag) 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 final CompoundTagTagValueInput.inputprivate final CompoundTagTagValueOutput.outputFields in net.minecraft.world.level.storage with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final List<CompoundTag> TagValueInput.CompoundListWrapper.listprivate final Map<String, CompoundTag> CommandStorage.Container.storageMethods in net.minecraft.world.level.storage that return CompoundTagModifier and TypeMethodDescriptionTagValueOutput.buildResult()private <T extends SavedData>
CompoundTagSavedDataStorage.encodeUnchecked(SavedDataType<T> type, SavedData data, RegistryOps<Tag> ops) CommandStorage.get(Identifier id) private static CompoundTagLevelStorageSource.readLevelDataTagRaw(Path dataFile) SavedDataStorage.readTagFromDisk(Path dataFile, @Nullable DataFixTypes type, int newVersion) Methods in net.minecraft.world.level.storage that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionprivate Map<SavedDataType<?>, CompoundTag> SavedDataStorage.collectDirtyTagsToSave()private Optional<CompoundTag> Methods in net.minecraft.world.level.storage with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ValueInputTagValueInput.create(ProblemReporter problemReporter, HolderLookup.Provider holders, CompoundTag tag) voidCommandStorage.Container.put(String id, CompoundTag contents) private voidLevelStorageSource.LevelStorageAccess.saveLevelData(CompoundTag root) voidCommandStorage.set(Identifier id, CompoundTag contents) private voidPrimaryLevelData.setTagData(CompoundTag tag, @Nullable UUID singlePlayerUUID) voidTagValueOutput.store(CompoundTag tag) private voidSavedDataStorage.tryWrite(SavedDataType<?> type, CompoundTag tag) private ValueInputTagValueInput.CompoundListWrapper.wrapChild(int index, CompoundTag compoundTag) private ValueInputTagValueInput.wrapChild(String name, CompoundTag compoundTag) private static ValueInputTagValueInput.wrapChild(ProblemReporter problemReporter, ValueInputContextHelper context, CompoundTag compoundTag) static voidPrimaryLevelData.writeLastPlayed(CompoundTag tag) static voidPrimaryLevelData.writeVersionTag(CompoundTag tag) Method parameters in net.minecraft.world.level.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionstatic ValueInput.ValueInputListTagValueInput.create(ProblemReporter problemReporter, HolderLookup.Provider holders, List<CompoundTag> tags) private voidLevelStorageSource.LevelStorageAccess.modifyLevelDataWithoutDatafix(Consumer<CompoundTag> updater) Constructors in net.minecraft.world.level.storage with parameters of type CompoundTagModifierConstructorDescriptionprivateTagValueInput(ProblemReporter problemReporter, ValueInputContextHelper context, CompoundTag input) privateTagValueOutput(ProblemReporter problemReporter, com.mojang.serialization.DynamicOps<Tag> ops, CompoundTag output) Constructor parameters in net.minecraft.world.level.storage with type arguments of type CompoundTagModifierConstructorDescriptionCompoundListWrapper(ProblemReporter problemReporter, ValueInputContextHelper context, List<CompoundTag> list) privateContainer(Map<String, CompoundTag> storage) -
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 value) Deprecated.Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifierConstructorDescriptionprivateSetCustomDataFunction(List<LootItemCondition> predicates, CompoundTag tag) -
Uses of CompoundTag in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic @Nullable MobEffectCommonHooks.loadMobEffect(CompoundTag nbt, String key, @Nullable MobEffect fallback) static voidCommonHooks.readAdditionalLevelSaveData(CompoundTag rootTag, LevelStorageSource.LevelDirectory levelDirectory) static voidCommonHooks.saveMobEffect(CompoundTag nbt, String key, MobEffect effect) static voidCommonHooks.writeAdditionalLevelSaveData(WorldData worldData, CompoundTag levelTag) static voidIOUtilities.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 voidIOUtilities.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 aCompoundTagthat 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 voidValueOutputExtension.store(CompoundTag tag) Store the elements of the giventagin 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 CompoundTagBlockSnapshot.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 CompoundTagBlockSnapshot.getTag()Returns the recorded block entity NBT data, if one was present.static @Nullable CompoundTagJsonUtils.readNBT(JsonObject json, String key) Constructors in net.neoforged.neoforge.common.util with parameters of type CompoundTagModifierConstructorDescriptionprivateBlockSnapshot(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, BlockState state, @Nullable CompoundTag nbt, int flags)