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 CompoundTagNbtPredicate.tagThe field for thetagrecord component.Methods in net.minecraft.advancements.critereon that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagNbtPredicate.getEntityTagToCompare(Entity entity) NbtPredicate.tag()Returns the value of thetagrecord 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 aNbtPredicaterecord 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 voidKeyboardHandler.copyCreateBlockCommand(BlockState state, BlockPos pos, CompoundTag compound) private voidKeyboardHandler.copyCreateEntityCommand(ResourceLocation entityId, Vec3 pos, CompoundTag compound) private CompoundTagOptions.dataFix(CompoundTag nbt) booleanDebugQueryHandler.handleResponse(int transactionId, CompoundTag tag) Method parameters in net.minecraft.client with type arguments of type CompoundTagModifier and TypeMethodDescriptionvoidDebugQueryHandler.queryBlockEntityTag(BlockPos pos, Consumer<CompoundTag> tag) voidDebugQueryHandler.queryEntityTag(int entId, Consumer<CompoundTag> tag) 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 nbtCompound) 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 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 tag) intNbtPathArgument.NbtPath.insert(int index, CompoundTag rootTag, List<Tag> tagsToInsert) Constructors in net.minecraft.commands.arguments with parameters of type CompoundTagModifierConstructorDescriptionMatchElementNode(CompoundTag pattern) MatchObjectNode(String name, CompoundTag pattern) -
Uses of CompoundTag in net.minecraft.commands.arguments.blocks
Fields in net.minecraft.commands.arguments.blocks declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagBlockPredicateArgument.BlockPredicate.nbtprivate final CompoundTagBlockPredicateArgument.TagPredicate.nbtprivate final CompoundTagBlockStateParser.BlockResult.nbtThe field for thenbtrecord component.private CompoundTagBlockStateParser.nbtprivate final CompoundTagBlockStateParser.TagResult.nbtThe field for thenbtrecord component.private final CompoundTagBlockInput.tagMethods in net.minecraft.commands.arguments.blocks that return CompoundTagModifier and TypeMethodDescriptionBlockStateParser.BlockResult.nbt()Returns the value of thenbtrecord component.BlockStateParser.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, CompoundTag tag) BlockPredicate(BlockState state, Set<Property<?>> properties, CompoundTag nbt) BlockResult(BlockState blockState, Map<Property<?>, Comparable<?>> properties, CompoundTag nbt) Creates an instance of aBlockResultrecord class.(package private)TagPredicate(HolderSet<Block> tag, Map<String, String> vagueProperties, 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(CompoundTag arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) 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 structureLocationPath, CompoundTag tag) StructureUpdater.apply(String p_126503_, CompoundTag p_126504_) private CompoundTagSnbtToNbt.applyFilters(String fileName, CompoundTag tag) static CompoundTagStructureUpdater.update(String structureLocationPath, CompoundTag tag) Methods in net.minecraft.data.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply(String structureLocationPath, CompoundTag tag) StructureUpdater.apply(String p_126503_, CompoundTag p_126504_) private CompoundTagSnbtToNbt.applyFilters(String fileName, CompoundTag tag) static CompoundTagStructureUpdater.update(String structureLocationPath, CompoundTag tag) -
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.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 dataVersion) protected CompoundTagNbtOps.NbtRecordBuilder.append(String key, Tag value, CompoundTag tag) private static CompoundTagTagParser.castToCompoundOrThrow(com.mojang.brigadier.StringReader reader, Tag tag) CompoundTag.copy()CompoundTag.getCompoundOrEmpty(String key) 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 tag) static CompoundTagTagParser.parseCompoundAsArgument(com.mojang.brigadier.StringReader reader) static CompoundTagTagParser.parseCompoundFully(String data) static CompoundTagReads a compound tag from a file.static CompoundTagNbtIo.read(DataInput input, NbtAccounter accounter) Reads a compound tag from a file.static CompoundTagstatic CompoundTagNbtIo.readCompressed(InputStream zippedStream, NbtAccounter accounter) static CompoundTagNbtIo.readCompressed(Path path, NbtAccounter accounter) protected CompoundTagCompoundTag.shallowCopy()static CompoundTagNbtUtils.snbtToStructure(String text) (package private) static CompoundTagNbtUtils.unpackBlockState(String blockStateText) (package private) static CompoundTagNbtUtils.unpackStructureTemplate(CompoundTag tag) 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 key) 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 dataVersion) protected CompoundTagNbtOps.NbtRecordBuilder.append(String key, Tag value, CompoundTag tag) protected com.mojang.serialization.DataResult<Tag> NbtOps.NbtRecordBuilder.build(CompoundTag p_129190_, Tag p_129191_) static intNbtUtils.getDataVersion(CompoundTag tag, int defaultValue) 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 tag) (package private) static CompoundTagNbtUtils.packStructureTemplate(CompoundTag tag) static BlockStateNbtUtils.readBlockState(HolderGetter<Block> blockGetter, CompoundTag tag) private static <S extends StateHolder<?,S>, T extends Comparable<T>>
SNbtUtils.setValueHelper(S stateHolder, Property<T> property, String propertyName, CompoundTag propertiesTag, CompoundTag blockStateTag) static StringNbtUtils.structureToSnbt(CompoundTag tag) private static TagListTag.tryUnwrap(CompoundTag tag) (package private) static CompoundTagNbtUtils.unpackStructureTemplate(CompoundTag tag) voidSnbtPrinterTagVisitor.visitCompound(CompoundTag p_178120_) voidStringTagVisitor.visitCompound(CompoundTag p_178166_) voidTagVisitor.visitCompound(CompoundTag tag) voidTextComponentTagVisitor.visitCompound(CompoundTag p_178260_) static voidNbtIo.write(CompoundTag compoundTag, DataOutput output) static voidNbtIo.write(CompoundTag compoundTag, Path path) static voidNbtIo.writeCompressed(CompoundTag compoundTag, OutputStream outputStream) Writes and compresses a compound tag to a GNU zipped file.static voidNbtIo.writeCompressed(CompoundTag compoundTag, Path path) -
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 CompoundTagFriendlyByteBuf.readNbt(io.netty.buffer.ByteBuf buffer) -
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 p_443087_) DataSource.getData(CommandSourceStack source) EntityDataSource.getData(CommandSourceStack p_442744_) StorageDataSource.getData(CommandSourceStack p_443094_) -
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> accounterSupplier) -
Uses of CompoundTag in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagClientboundBlockEntityDataPacket.tag(package private) final CompoundTagClientboundLevelChunkPacketData.BlockEntityInfo.tagprivate final CompoundTagClientboundTagQueryPacket.tagMethods 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 TypeMethodDescriptionvoidClientboundLevelChunkPacketData.BlockEntityTagOutput.accept(BlockPos pos, BlockEntityType<?> type, CompoundTag nbt) Method parameters in net.minecraft.network.protocol.game with type arguments of type CompoundTagModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create(BlockEntity blockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> dataGetter) Constructors in net.minecraft.network.protocol.game with parameters of type CompoundTagModifierConstructorDescriptionprivateBlockEntityInfo(int packedXZ, int y, BlockEntityType<?> type, CompoundTag tag) privateClientboundBlockEntityDataPacket(BlockPos pos, BlockEntityType<?> type, CompoundTag tag) ClientboundTagQueryPacket(int transactionId, CompoundTag 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 TypeMethodDescriptionvoidCustomBossEvents.load(CompoundTag tag, HolderLookup.Provider levelRegistry) -
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 CompoundTagFunctionCommand.FunctionCustomExecutor.arguments(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) (package private) static CompoundTagFunctionCommand.getArgumentTag(NbtPathArgument.NbtPath nbtPath, DataAccessor dataAccessor) 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 tag, boolean randomizeProperties) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.instantiateAndQueueFunctions(CompoundTag arguments, ExecutionControl<T> executionControl, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, CommandFunction<T> function, ResourceLocation functionId, CommandResultCallback resultCallback, boolean returnParentFrame) static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> executionControl, FunctionCommand.Callbacks<T> callbacks, ChainModifiers chainModifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> executionControl, FunctionCommand.Callbacks<T> callbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> executionControl, FunctionCommand.Callbacks<T> callbacks) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest(T originalSource, List<T> sources, Function<T, T> sourceModifier, IntPredicate successCheck, com.mojang.brigadier.context.ContextChain<T> contextChain, CompoundTag arguments, ExecutionControl<T> executionControl, InCommandFunction<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> functionsGetter, ChainModifiers chainModifiers) private static intSummonCommand.spawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) Constructors in net.minecraft.server.commands with parameters of type CompoundTagModifierConstructorDescription(package private)CloneBlockEntityInfo(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 nbt, NbtPathArgument.NbtPath nbtPath, List<Tag> tags) voidBlockDataAccessor.setData(CompoundTag other) voidDataAccessor.setData(CompoundTag other) voidEntityDataAccessor.setData(CompoundTag other) voidStorageDataAccessor.setData(CompoundTag other) -
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(ResourceLocation 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 TypeMethodDescriptionServerPlayer.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 tag) private voidServerPlayer.respawnEntityOnShoulder(CompoundTag tag) booleanServerPlayer.setEntityOnShoulder(CompoundTag tag) 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 CompoundTagMethods 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 version, int newVersion) DataFixTypes.updateToCurrentVersion(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int version) Methods in net.minecraft.util.datafix with parameters of type CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int version, int newVersion) DataFixTypes.updateToCurrentVersion(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int version) -
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 tag) private static CompoundTagTrialSpawnerConfigInRegistryFix.VanillaTrialChambers.removeDefaults(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.util.worldupdate
Methods in net.minecraft.util.worldupdate that return CompoundTagModifier and TypeMethodDescriptionprotected CompoundTagWorldUpgrader.EntityUpgrader.upgradeTag(SimpleRegionStorage p_321667_, CompoundTag p_321776_) protected CompoundTagWorldUpgrader.PoiUpgrader.upgradeTag(SimpleRegionStorage p_321589_, CompoundTag p_321492_) protected abstract CompoundTagWorldUpgrader.SimpleRegionStorageUpgrader.upgradeTag(SimpleRegionStorage regionStorage, CompoundTag chunkTag) Methods in net.minecraft.util.worldupdate with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected CompoundTagWorldUpgrader.EntityUpgrader.upgradeTag(SimpleRegionStorage p_321667_, CompoundTag p_321776_) protected CompoundTagWorldUpgrader.PoiUpgrader.upgradeTag(SimpleRegionStorage p_321589_, CompoundTag p_321492_) protected abstract CompoundTagWorldUpgrader.SimpleRegionStorageUpgrader.upgradeTag(SimpleRegionStorage regionStorage, CompoundTag chunkTag) -
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 EntityEntityType.loadEntityRecursive(CompoundTag entityTag, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) static EntityEntityType.loadEntityRecursive(EntityType<?> entityType, CompoundTag tag, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) -
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 mob, CompoundTag tag) Deprecated.voidAbstractFish.loadFromBucketTag(CompoundTag p_148708_) 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.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 problemReporter) -
Uses of CompoundTag in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagCustomData.tag(package private) 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 tag) static CustomDataCustomData.of(CompoundTag tag) static <T> TypedEntityData<T> TypedEntityData.of(T type, CompoundTag tag) static voidCustomData.set(DataComponentType<CustomData> componentType, ItemStack stack, 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> updater) static voidCustomData.update(DataComponentType<CustomData> componentType, ItemStack stack, Consumer<CompoundTag> updater) Constructors in net.minecraft.world.item.component with parameters of type CompoundTagModifierConstructorDescriptionprivateCustomData(CompoundTag tag) (package private)TypedEntityData(IdType type, CompoundTag tag) -
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 TypeMethodDescriptionGameRules.createTag()SpawnData.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 p_324478_) BeaconBlockEntity.getUpdateTag(HolderLookup.Provider p_324570_) BlockEntity.getUpdateTag(HolderLookup.Provider registries) BrushableBlockEntity.getUpdateTag(HolderLookup.Provider p_323531_) CampfireBlockEntity.getUpdateTag(HolderLookup.Provider p_324612_) ConduitBlockEntity.getUpdateTag(HolderLookup.Provider p_324390_) CreakingHeartBlockEntity.getUpdateTag(HolderLookup.Provider p_379306_) DecoratedPotBlockEntity.getUpdateTag(HolderLookup.Provider p_324359_) JigsawBlockEntity.getUpdateTag(HolderLookup.Provider p_323882_) ShelfBlockEntity.getUpdateTag(HolderLookup.Provider p_433122_) SignBlockEntity.getUpdateTag(HolderLookup.Provider p_324439_) SkullBlockEntity.getUpdateTag(HolderLookup.Provider p_323711_) SpawnerBlockEntity.getUpdateTag(HolderLookup.Provider p_324015_) StructureBlockEntity.getUpdateTag(HolderLookup.Provider p_324257_) TestBlockEntity.getUpdateTag(HolderLookup.Provider p_397116_) TestInstanceBlockEntity.getUpdateTag(HolderLookup.Provider p_397498_) TheEndGatewayBlockEntity.getUpdateTag(HolderLookup.Provider p_324313_) TrialSpawnerBlockEntity.getUpdateTag(HolderLookup.Provider p_323524_) final 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 chunkPos, CompoundTag tag) static 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 CompoundTagModifier and TypeMethodDescriptionTrialSpawnerStateData.getUpdateTag(TrialSpawnerState spawnerState) Method parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type CompoundTagModifier and TypeMethodDescriptionTrialSpawnerConfigs.customSpawnData(EntityType<T> entityType, Consumer<CompoundTag> tagConsumer) TrialSpawnerConfigs.customSpawnDataWithEquipment(EntityType<T> entityType, Consumer<CompoundTag> tagConsumer, ResourceKey<LootTable> lootTableKey) -
Uses of CompoundTag in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault that return CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return CompoundTagModifier and TypeMethodDescriptionPistonMovingBlockEntity.getUpdateTag(HolderLookup.Provider p_324521_) -
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 TypeMethodDescriptionChunkAccess.getBlockEntityNbt(BlockPos pos) ImposterProtoChunk.getBlockEntityNbt(BlockPos p_62757_) abstract CompoundTagChunkAccess.getBlockEntityNbtForSaving(BlockPos pos, HolderLookup.Provider registries) ImposterProtoChunk.getBlockEntityNbtForSaving(BlockPos p_62760_, HolderLookup.Provider p_323691_) LevelChunk.getBlockEntityNbtForSaving(BlockPos p_62932_, HolderLookup.Provider p_323699_) ProtoChunk.getBlockEntityNbtForSaving(BlockPos p_63275_, HolderLookup.Provider p_324473_) UpgradeData.write()final 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 BlockEntityLevelChunk.promotePendingBlockEntity(BlockPos pos, CompoundTag tag) final voidChunkAccess.readAttachmentsFromNBT(HolderLookup.Provider provider, CompoundTag tag) FOR INTERNAL USE ONLYvoidChunkAccess.setBlockEntityNbt(CompoundTag tag) voidImposterProtoChunk.setBlockEntityNbt(CompoundTag p_62728_) Constructors in net.minecraft.world.level.chunk with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.chunk.storage
Fields in net.minecraft.world.level.chunk.storage declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagSerializableChunkData.attachmentDataThe field for theattachmentDatarecord component.(package private) 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.Methods in net.minecraft.world.level.chunk.storage that return CompoundTagModifier and TypeMethodDescriptionSerializableChunkData.attachmentData()Returns the value of theattachmentDatarecord component.(package private) CompoundTagIOWorker.PendingStore.copyData()private static CompoundTagSerializableChunkData.packStructureData(StructurePieceSerializationContext context, ChunkPos pos, Map<Structure, StructureStart> structureStarts, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> references) SerializableChunkData.structureData()Returns the value of thestructureDatarecord component.ChunkStorage.upgradeChunkTag(ResourceKey<Level> levelKey, Supplier<DimensionDataStorage> storage, CompoundTag chunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> chunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag(CompoundTag tag, int version) 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(CompoundTag tag) static intChunkStorage.getVersion(CompoundTag chunkData) static voidChunkStorage.injectDatafixingContext(CompoundTag chunkData, ResourceKey<Level> levelKey, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> chunkGeneratorKey) private booleanIOWorker.isOldChunk(CompoundTag chunkData) static SerializableChunkDataSerializableChunkData.parse(LevelHeightAccessor levelHeightAccessor, PalettedContainerFactory palettedContainerFactory, CompoundTag tag) private static voidChunkStorage.removeDatafixingContext(CompoundTag tag) private static voidSerializableChunkData.saveTicks(CompoundTag tag, ChunkAccess.PackedTicks ticks) IOWorker.store(ChunkPos chunkPos, CompoundTag chunkData) SerializableChunkData.unpackStructureReferences(RegistryAccess registries, ChunkPos pos, CompoundTag tag) private static Map<Structure, StructureStart> SerializableChunkData.unpackStructureStart(StructurePieceSerializationContext context, CompoundTag tag, long seed) ChunkStorage.upgradeChunkTag(ResourceKey<Level> levelKey, Supplier<DimensionDataStorage> storage, CompoundTag chunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> chunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag(CompoundTag tag, int version) RecreatingSimpleRegionStorage.write(ChunkPos p_321592_, CompoundTag p_321676_) protected voidRegionFileStorage.write(ChunkPos chunkPos, CompoundTag chunkData) SimpleRegionStorage.write(ChunkPos chunkPos, CompoundTag data) Method parameters in net.minecraft.world.level.chunk.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate static LevelChunk.PostLoadProcessorSerializableChunkData.postLoadChunk(ServerLevel level, List<CompoundTag> entities, List<CompoundTag> blockEntities) IOWorker.store(ChunkPos chunkPos, Supplier<CompoundTag> dataSupplier) ChunkStorage.write(ChunkPos pos, Supplier<CompoundTag> tagSupplier) RecreatingChunkStorage.write(ChunkPos p_321778_, Supplier<CompoundTag> p_363767_) Constructors in net.minecraft.world.level.chunk.storage with parameters of type CompoundTagModifierConstructorDescriptionPendingStore(CompoundTag data) (package private)SerializableChunkData(PalettedContainerFactory containerFactory, 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(PalettedContainerFactory containerFactory, 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 aSerializableChunkDatarecord 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.dataMapMethods in net.minecraft.world.level.levelgen.structure that return CompoundTagModifier and TypeMethodDescriptionfinal CompoundTagStructurePiece.createTag(StructurePieceSerializationContext context) StructureStart.createTag(StructurePieceSerializationContext context, ChunkPos chunkPos) LegacyStructureDataHandler.updateFromLegacy(CompoundTag tag) private CompoundTagLegacyStructureDataHandler.updateStructureStart(CompoundTag tag, ChunkPos chunkPos) Methods in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidPoolElementStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext p_192425_, CompoundTag p_192426_) protected voidScatteredFeaturePiece.addAdditionalSaveData(StructurePieceSerializationContext p_192471_, CompoundTag p_192472_) protected abstract voidStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext context, CompoundTag tag) protected voidTemplateStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext p_192690_, CompoundTag p_192691_) static StructureStartStructureStart.loadStaticStart(StructurePieceSerializationContext context, CompoundTag tag, long seed) private it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> StructureCheck.loadStructures(CompoundTag tag) LegacyStructureDataHandler.updateFromLegacy(CompoundTag tag) private CompoundTagLegacyStructureDataHandler.updateStructureStart(CompoundTag tag, ChunkPos chunkPos) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifierConstructorDescriptionprotectedScatteredFeaturePiece(StructurePieceType p_209929_, CompoundTag p_209930_) StructurePiece(StructurePieceType type, CompoundTag tag) TemplateStructurePiece(StructurePieceType type, CompoundTag tag, StructureTemplateManager structureTemplateManager, Function<ResourceLocation, StructurePlaceSettings> placeSettingsFactory) -
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 p_210164_, CompoundTag p_210165_) StructurePieceType.load(StructurePieceSerializationContext context, CompoundTag tag) default StructurePieceStructurePieceType.StructureTemplateType.load(StructurePieceSerializationContext p_210169_, CompoundTag p_210170_) 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 p_227378_, CompoundTag p_227379_) protected voidDesertPyramidPiece.addAdditionalSaveData(StructurePieceSerializationContext p_227413_, CompoundTag p_227414_) protected voidEndCityPieces.EndCityPiece.addAdditionalSaveData(StructurePieceSerializationContext p_227500_, CompoundTag p_227501_) protected voidIglooPieces.IglooPiece.addAdditionalSaveData(StructurePieceSerializationContext p_227579_, CompoundTag p_227580_) protected voidJungleTemplePiece.addAdditionalSaveData(StructurePieceSerializationContext p_227682_, CompoundTag p_227683_) protected voidMineshaftPieces.MineShaftCorridor.addAdditionalSaveData(StructurePieceSerializationContext p_227806_, CompoundTag p_227807_) protected voidMineshaftPieces.MineShaftCrossing.addAdditionalSaveData(StructurePieceSerializationContext p_227862_, CompoundTag p_227863_) protected voidMineshaftPieces.MineShaftPiece.addAdditionalSaveData(StructurePieceSerializationContext p_227898_, CompoundTag p_227899_) protected voidMineshaftPieces.MineShaftRoom.addAdditionalSaveData(StructurePieceSerializationContext p_227926_, CompoundTag p_227927_) protected voidNetherFortressPieces.BridgeEndFiller.addAdditionalSaveData(StructurePieceSerializationContext p_228081_, CompoundTag p_228082_) protected voidNetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addAdditionalSaveData(StructurePieceSerializationContext p_228259_, CompoundTag p_228260_) protected voidNetherFortressPieces.CastleSmallCorridorRightTurnPiece.addAdditionalSaveData(StructurePieceSerializationContext p_228321_, CompoundTag p_228322_) protected voidNetherFortressPieces.MonsterThrone.addAdditionalSaveData(StructurePieceSerializationContext p_228377_, CompoundTag p_228378_) protected voidNetherFortressPieces.NetherBridgePiece.addAdditionalSaveData(StructurePieceSerializationContext p_228389_, CompoundTag p_228390_) protected voidNetherFossilPieces.NetherFossilPiece.addAdditionalSaveData(StructurePieceSerializationContext p_228558_, CompoundTag p_228559_) protected voidOceanMonumentPieces.OceanMonumentPiece.addAdditionalSaveData(StructurePieceSerializationContext p_228872_, CompoundTag p_228873_) protected voidOceanRuinPieces.OceanRuinPiece.addAdditionalSaveData(StructurePieceSerializationContext p_229039_, CompoundTag p_229040_) protected voidRuinedPortalPiece.addAdditionalSaveData(StructurePieceSerializationContext p_229158_, CompoundTag p_229159_) protected voidShipwreckPieces.ShipwreckPiece.addAdditionalSaveData(StructurePieceSerializationContext p_229373_, CompoundTag p_229374_) protected voidStrongholdPieces.ChestCorridor.addAdditionalSaveData(StructurePieceSerializationContext p_229492_, CompoundTag p_229493_) protected voidStrongholdPieces.FillerCorridor.addAdditionalSaveData(StructurePieceSerializationContext p_229517_, CompoundTag p_229518_) protected voidStrongholdPieces.FiveCrossing.addAdditionalSaveData(StructurePieceSerializationContext p_229554_, CompoundTag p_229555_) protected voidStrongholdPieces.Library.addAdditionalSaveData(StructurePieceSerializationContext p_229612_, CompoundTag p_229613_) protected voidStrongholdPieces.PortalRoom.addAdditionalSaveData(StructurePieceSerializationContext p_229654_, CompoundTag p_229655_) protected voidStrongholdPieces.RoomCrossing.addAdditionalSaveData(StructurePieceSerializationContext p_229745_, CompoundTag p_229746_) protected voidStrongholdPieces.StairsDown.addAdditionalSaveData(StructurePieceSerializationContext p_229795_, CompoundTag p_229796_) protected voidStrongholdPieces.Straight.addAdditionalSaveData(StructurePieceSerializationContext p_229840_, CompoundTag p_229841_) protected voidStrongholdPieces.StrongholdPiece.addAdditionalSaveData(StructurePieceSerializationContext p_229891_, CompoundTag p_229892_) protected voidSwampHutPiece.addAdditionalSaveData(StructurePieceSerializationContext p_229969_, CompoundTag p_229970_) protected voidWoodlandMansionPieces.WoodlandMansionPiece.addAdditionalSaveData(StructurePieceSerializationContext p_230208_, CompoundTag p_230209_) OceanRuinPieces.OceanRuinPiece.create(StructureTemplateManager structureTemplateManager, CompoundTag tag) private static StructurePlaceSettingsRuinedPortalPiece.makeSettings(StructureTemplateManager structureTemplateManager, CompoundTag tag, ResourceLocation location) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifierConstructorDescriptionprotectedBridgeCrossing(StructurePieceType p_228030_, CompoundTag p_228031_) ChestCorridor(CompoundTag tag) EndCityPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) FiveCrossing(CompoundTag tag) IglooPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) LeftTurn(CompoundTag tag) Library(CompoundTag tag) MineShaftPiece(StructurePieceType p_227872_, CompoundTag p_227873_) MineShaftRoom(CompoundTag tag) MonsterThrone(CompoundTag tag) NetherBridgePiece(StructurePieceType p_228384_, CompoundTag p_228385_) NetherFossilPiece(StructureTemplateManager structureManager, CompoundTag tag) OceanMonumentPiece(StructurePieceType p_228841_, CompoundTag p_228842_) privateOceanRuinPiece(StructureTemplateManager structureTemplateManager, CompoundTag genDepth, 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 p_229770_, CompoundTag p_229771_) StairsRoom(CompoundTag tag) StartPiece(CompoundTag p_228516_) StartPiece(CompoundTag p_229805_) Straight(CompoundTag tag) StrongholdPiece(StructurePieceType p_229878_, CompoundTag p_229879_) SwampHutPiece(CompoundTag tag) Turn(StructurePieceType p_229934_, CompoundTag p_229935_) 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 CompoundTagStructureTemplate.StructureBlockInfo.nbtThe field for thenbtrecord component.final CompoundTagStructureTemplate.StructureEntityInfo.nbtMethods in net.minecraft.world.level.levelgen.structure.templatesystem that return CompoundTagModifier and TypeMethodDescriptionProcessorRule.getOutputTag(RandomSource random, CompoundTag tag) StructureTemplate.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 problemReporter, ServerLevelAccessor level, CompoundTag tag) static JigsawBlockEntity.JointTypeStructureTemplate.getJointType(CompoundTag tag, BlockState state) ProcessorRule.getOutputTag(RandomSource random, CompoundTag tag) voidStructureTemplate.load(HolderGetter<Block> blockGetter, CompoundTag tag) StructureTemplateManager.readStructure(CompoundTag nbt) StructureTemplate.save(CompoundTag tag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifierConstructorDescriptionStructureBlockInfo(BlockPos pos, BlockState state, 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.rule.blockentity
Fields in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity declared as CompoundTagMethods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity that return CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply(RandomSource p_277994_, CompoundTag p_277854_) AppendStatic.apply(RandomSource p_277835_, CompoundTag p_277892_) Clear.apply(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply(RandomSource random, CompoundTag tag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply(RandomSource p_277994_, CompoundTag p_277854_) AppendStatic.apply(RandomSource p_277835_, CompoundTag p_277892_) Clear.apply(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply(RandomSource random, CompoundTag tag) 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 CompoundTagPrimaryLevelData.customBossEventsprivate final CompoundTagTagValueInput.inputprivate final CompoundTagPrimaryLevelData.loadedPlayerTagprivate 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()PrimaryLevelData.createTag(RegistryAccess registries, CompoundTag hostPlayerNBT) WorldData.createTag(RegistryAccess registries, CompoundTag hostPlayerNBT) private <T extends SavedData>
CompoundTagDimensionDataStorage.encodeUnchecked(SavedDataType<T> type, SavedData data, RegistryOps<Tag> ops) CommandStorage.get(ResourceLocation id) PrimaryLevelData.getCustomBossEvents()WorldData.getCustomBossEvents()PrimaryLevelData.getLoadedPlayerTag()WorldData.getLoadedPlayerTag()(package private) static CompoundTagLevelStorageSource.readLevelDataTagRaw(Path levelPath) DimensionDataStorage.readTagFromDisk(String filename, DataFixTypes dataFixType, int version) 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 ValueInputTagValueInput.create(ProblemReporter problemReporter, HolderLookup.Provider lookup, CompoundTag input) PrimaryLevelData.createTag(RegistryAccess registries, CompoundTag hostPlayerNBT) WorldData.createTag(RegistryAccess registries, CompoundTag hostPlayerNBT) voidCommandStorage.Container.put(String id, CompoundTag nbt) voidLevelStorageSource.LevelStorageAccess.saveDataTag(RegistryAccess registries, WorldData serverConfiguration, CompoundTag hostPlayerNBT) private voidLevelStorageSource.LevelStorageAccess.saveLevelData(CompoundTag tag) voidCommandStorage.set(ResourceLocation id, CompoundTag nbt) voidPrimaryLevelData.setCustomBossEvents(CompoundTag nbt) voidWorldData.setCustomBossEvents(CompoundTag nbt) private voidPrimaryLevelData.setTagData(RegistryAccess registry, CompoundTag nbt, CompoundTag playerNBT) voidTagValueOutput.store(CompoundTag tag) private voidDimensionDataStorage.tryWrite(SavedDataType<?> type, CompoundTag tag) (package private) ValueInputTagValueInput.CompoundListWrapper.wrapChild(int index, CompoundTag tag) private ValueInputTagValueInput.wrapChild(String key, CompoundTag tag) (package private) static ValueInputTagValueInput.wrapChild(ProblemReporter problemReporter, ValueInputContextHelper context, 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 lookup, List<CompoundTag> input) private voidLevelStorageSource.LevelStorageAccess.modifyLevelDataWithoutDatafix(Consumer<CompoundTag> modifier) Constructors in net.minecraft.world.level.storage with parameters of type CompoundTagModifierConstructorDescriptionprivatePrimaryLevelData(CompoundTag loadedPlayerTag, boolean wasModded, LevelData.RespawnData respawnData, long gameTime, long dayTime, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, Optional<WorldBorder.Settings> legacyWorldBorderSettings, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, UUID wanderingTraderId, Set<String> knownServerBrands, Set<String> removedFeatureFlags, TimerQueue<MinecraftServer> scheduledEvents, CompoundTag customBossEvents, EndDragonFight.Data endDragonFightData, LevelSettings settings, WorldOptions worldOptions, PrimaryLevelData.SpecialWorldProperty specialWorldProperty, com.mojang.serialization.Lifecycle worldGenSettingsLifecycle) privateTagValueInput(ProblemReporter problemReporter, ValueInputContextHelper context, CompoundTag input) (package private)TagValueOutput(ProblemReporter problemReporter, com.mojang.serialization.DynamicOps<Tag> ops, CompoundTag tag) 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 tag) Deprecated.Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifierConstructorDescriptionprivateSetCustomDataFunction(List<LootItemCondition> conditions, CompoundTag tag) -
Uses of CompoundTag in net.minecraft.world.level.timers
Methods in net.minecraft.world.level.timers that return CompoundTagModifier and TypeMethodDescriptionprivate CompoundTagTimerQueue.storeEvent(TimerQueue.Event<T> event) 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 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)