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 pEntity) 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 pState, BlockPos pPos, CompoundTag pCompound) private voidKeyboardHandler.copyCreateEntityCommand(ResourceLocation pEntityId, Vec3 pPos, CompoundTag pCompound) private CompoundTagOptions.dataFix(CompoundTag pNbt) booleanDebugQueryHandler.handleResponse(int pTransactionId, CompoundTag pTag) Method parameters in net.minecraft.client with type arguments of type CompoundTagModifier and TypeMethodDescriptionvoidDebugQueryHandler.queryBlockEntityTag(BlockPos pPos, Consumer<CompoundTag> pTag) voidDebugQueryHandler.queryEntityTag(int pEntId, Consumer<CompoundTag> pTag) private intDebugQueryHandler.startTransaction(Consumer<CompoundTag> pCallback) -
Uses of CompoundTag in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return CompoundTagMethods in net.minecraft.client.multiplayer with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ServerDataServerData.read(CompoundTag pNbtCompound) Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance.ClientChunkCache.replaceWithPacketData(int pX, int pZ, FriendlyByteBuf pBuffer, CompoundTag pTag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> pConsumer) -
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> pContext, String pName) CompoundTagArgument.parse(com.mojang.brigadier.StringReader pReader) Methods in net.minecraft.commands.arguments with parameters of type CompoundTagModifier and TypeMethodDescriptionNbtPathArgument.createTagPredicate(CompoundTag pTag) intNbtPathArgument.NbtPath.insert(int pIndex, CompoundTag pRootTag, List<Tag> pTagsToInsert) Constructors in net.minecraft.commands.arguments with parameters of type CompoundTagModifierConstructorDescriptionMatchElementNode(CompoundTag pPattern) MatchObjectNode(String pName, CompoundTag pPattern) -
Uses of CompoundTag in net.minecraft.commands.arguments.blocks
Fields in net.minecraft.commands.arguments.blocks declared as CompoundTagModifier and TypeFieldDescriptionprivate final 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 pState, Set<Property<?>> pProperties, CompoundTag pTag) BlockPredicate(BlockState pState, Set<Property<?>> pProperties, CompoundTag pNbt) BlockResult(BlockState blockState, Map<Property<?>, Comparable<?>> properties, CompoundTag nbt) Creates an instance of aBlockResultrecord class.(package private)TagPredicate(HolderSet<Block> pTag, Map<String, String> pVagueProperties, CompoundTag pNbt) 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 pArguments, com.mojang.brigadier.CommandDispatcher<T> pDispatcher) MacroFunction.instantiate(CompoundTag pArguments, com.mojang.brigadier.CommandDispatcher<T> pDispatcher) PlainTextFunction.instantiate(CompoundTag p_306181_, com.mojang.brigadier.CommandDispatcher<T> p_306210_) -
Uses of CompoundTag in net.minecraft.data.structures
Methods in net.minecraft.data.structures that return CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply(String pStructureLocationPath, CompoundTag pTag) StructureUpdater.apply(String pStructureLocationPath, CompoundTag pTag) private CompoundTagSnbtToNbt.applyFilters(String pFileName, CompoundTag pTag) static CompoundTagStructureUpdater.update(String pStructureLocationPath, CompoundTag pTag) Methods in net.minecraft.data.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply(String pStructureLocationPath, CompoundTag pTag) StructureUpdater.apply(String pStructureLocationPath, CompoundTag pTag) private CompoundTagSnbtToNbt.applyFilters(String pFileName, CompoundTag pTag) static CompoundTagStructureUpdater.update(String pStructureLocationPath, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.nbt
Fields in net.minecraft.nbt with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundTag> TagParser.AS_CODECstatic final com.mojang.serialization.Codec<CompoundTag> CompoundTag.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 pTag) static CompoundTagNbtUtils.addDataVersion(CompoundTag pTag, int pDataVersion) protected CompoundTagNbtOps.NbtRecordBuilder.append(String pKey, Tag pValue, CompoundTag pTag) CompoundTag.copy()CompoundTag.getCompound(String pKey) ListTag.getCompound(int pIndex) protected CompoundTagNbtOps.NbtRecordBuilder.initBuilder()CompoundTag.merge(CompoundTag pOther) Copies all the tags ofotherinto this tag, then returns itself.(package private) static CompoundTagNbtUtils.packStructureTemplate(CompoundTag pTag) static CompoundTagstatic CompoundTagReads a compound tag from a file.static CompoundTagNbtIo.read(DataInput pInput, NbtAccounter pAccounter) Reads a compound tag from a file.static CompoundTagstatic CompoundTagNbtIo.readCompressed(InputStream pZippedStream, NbtAccounter pAccounter) static CompoundTagNbtIo.readCompressed(Path pPath, NbtAccounter pAccounter) (package private) CompoundTagTagParser.readSingleStruct()TagParser.readStruct()protected CompoundTagCompoundTag.shallowCopy()static CompoundTagNbtUtils.snbtToStructure(String pText) (package private) static CompoundTagNbtUtils.unpackBlockState(String p_178054_) (package private) static CompoundTagNbtUtils.unpackStructureTemplate(CompoundTag pTag) private static CompoundTagNbtOps.HeterogenousListCollector.wrapElement(Tag pTag) static CompoundTagNbtUtils.writeBlockState(BlockState pState) static CompoundTagNbtUtils.writeFluidState(FluidState pState) Methods in net.minecraft.nbt that return types with arguments of type CompoundTagMethods in net.minecraft.nbt with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagNbtUtils.addCurrentDataVersion(CompoundTag pTag) static CompoundTagNbtUtils.addDataVersion(CompoundTag pTag, int pDataVersion) protected CompoundTagNbtOps.NbtRecordBuilder.append(String pKey, Tag pValue, CompoundTag pTag) protected com.mojang.serialization.DataResult<Tag> NbtOps.NbtRecordBuilder.build(CompoundTag p_129190_, Tag p_129191_) static intNbtUtils.getDataVersion(CompoundTag pTag, int pDefaultValue) SnbtPrinterTagVisitor.getKeys(CompoundTag pTag) private static booleanNbtOps.HeterogenousListCollector.isWrapper(CompoundTag pTag) CompoundTag.merge(CompoundTag pOther) Copies all the tags ofotherinto this tag, then returns itself.(package private) static StringNbtUtils.packBlockState(CompoundTag p_178076_) (package private) static CompoundTagNbtUtils.packStructureTemplate(CompoundTag pTag) NbtUtils.readBlockPos(CompoundTag pTag, String pKey) static BlockStateNbtUtils.readBlockState(HolderGetter<Block> pBlockGetter, CompoundTag pTag) private static <S extends StateHolder<?,S>, T extends Comparable<T>>
SNbtUtils.setValueHelper(S pStateHolder, Property<T> pProperty, String pPropertyName, CompoundTag pPropertiesTag, CompoundTag pBlockStateTag) static StringNbtUtils.structureToSnbt(CompoundTag pTag) private static TagNbtOps.tryUnwrap(CompoundTag pTag) (package private) static CompoundTagNbtUtils.unpackStructureTemplate(CompoundTag pTag) voidSnbtPrinterTagVisitor.visitCompound(CompoundTag pTag) voidStringTagVisitor.visitCompound(CompoundTag pTag) voidTagVisitor.visitCompound(CompoundTag pTag) voidTextComponentTagVisitor.visitCompound(CompoundTag pTag) static voidNbtIo.write(CompoundTag pCompoundTag, DataOutput pOutput) static voidNbtIo.write(CompoundTag pCompoundTag, Path pPath) static voidNbtIo.writeCompressed(CompoundTag pCompoundTag, OutputStream pOutputStream) Writes and compresses a compound tag to a GNU zipped file.static voidNbtIo.writeCompressed(CompoundTag pCompoundTag, Path pPath) -
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 pBuffer) -
Uses of CompoundTag in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionBlockDataSource.getData(CommandSourceStack pSource) DataSource.getData(CommandSourceStack pSource) EntityDataSource.getData(CommandSourceStack pSource) StorageDataSource.getData(CommandSourceStack pSource) -
Uses of CompoundTag in net.minecraft.network.codec
Fields in net.minecraft.network.codec with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final StreamCodec<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.COMPOUND_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> pAccounterSupplier) -
Uses of CompoundTag in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTagClientboundLevelChunkPacketData.heightmapsprivate final CompoundTagClientboundBlockEntityDataPacket.tag(package private) final CompoundTagClientboundLevelChunkPacketData.BlockEntityInfo.tagprivate final CompoundTagClientboundTagQueryPacket.tagMethods in net.minecraft.network.protocol.game that return CompoundTagModifier and TypeMethodDescriptionClientboundLevelChunkPacketData.getHeightmaps()ClientboundBlockEntityDataPacket.getTag()ClientboundTagQueryPacket.getTag()Methods in net.minecraft.network.protocol.game with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidClientboundLevelChunkPacketData.BlockEntityTagOutput.accept(BlockPos pPos, BlockEntityType<?> pType, CompoundTag pNbt) Method parameters in net.minecraft.network.protocol.game with type arguments of type CompoundTagModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create(BlockEntity pBlockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> pDataGetter) Constructors in net.minecraft.network.protocol.game with parameters of type CompoundTagModifierConstructorDescriptionprivateBlockEntityInfo(int pPackedXZ, int pY, BlockEntityType<?> pType, CompoundTag pTag) privateClientboundBlockEntityDataPacket(BlockPos p_195637_, BlockEntityType<?> p_195638_, CompoundTag p_195639_) ClientboundTagQueryPacket(int pTransactionId, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final EntityDataSerializer<CompoundTag> EntityDataSerializers.COMPOUND_TAG -
Uses of CompoundTag in net.minecraft.server
Methods in net.minecraft.server with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate ScoreboardSaveDataServerScoreboard.createData(CompoundTag p_180014_, HolderLookup.Provider p_324580_) -
Uses of CompoundTag in net.minecraft.server.bossevents
Methods in net.minecraft.server.bossevents that return CompoundTagModifier and TypeMethodDescriptionCustomBossEvent.save(HolderLookup.Provider pLevelRegistry) CustomBossEvents.save(HolderLookup.Provider pLevelRegistry) Methods in net.minecraft.server.bossevents with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic CustomBossEventCustomBossEvent.load(CompoundTag pTag, ResourceLocation pId, HolderLookup.Provider pLevelRegistry) voidCustomBossEvents.load(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) -
Uses of CompoundTag in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as CompoundTagModifier and TypeFieldDescriptionprivate final 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> pContext) (package private) static CompoundTagFunctionCommand.getArgumentTag(NbtPathArgument.NbtPath pNbtPath, DataAccessor pDataAccessor) 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 pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.instantiateAndQueueFunctions(CompoundTag pArguments, ExecutionControl<T> pExecutionControl, com.mojang.brigadier.CommandDispatcher<T> pDispatcher, T pSource, CommandFunction<T> pFunction, ResourceLocation pFunctionId, CommandResultCallback pResultCallback, boolean pReturnParentFrame) static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExecutionControl, FunctionCommand.Callbacks<T> pCallbacks, ChainModifiers pChainModifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExectutionControl, FunctionCommand.Callbacks<T> pCallbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExecutionControl, FunctionCommand.Callbacks<T> pCallbacks) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest(T pOriginalSource, List<T> pSources, Function<T, T> pSourceModifier, IntPredicate pSuccessCheck, com.mojang.brigadier.context.ContextChain<T> pContextChain, CompoundTag pArguments, ExecutionControl<T> pExecutionControl, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> pFunctions, ChainModifiers pChainModifiers) private static intSummonCommand.spawnEntity(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) Constructors in net.minecraft.server.commands with parameters of type CompoundTagModifierConstructorDescription(package private)CloneBlockEntityInfo(CompoundTag tag, DataComponentMap components) Creates an instance of 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 pSource, DataAccessor pAccessor, CompoundTag pNbt) Merges the given NBT into the targeted object's NBT.intDataCommands.DataManipulator.modify(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, CompoundTag pNbt, NbtPathArgument.NbtPath pNbtPath, List<Tag> pTags) voidBlockDataAccessor.setData(CompoundTag pOther) voidDataAccessor.setData(CompoundTag pOther) voidEntityDataAccessor.setData(CompoundTag pOther) voidStorageDataAccessor.setData(CompoundTag pOther) -
Uses of CompoundTag in net.minecraft.server.level
Methods in net.minecraft.server.level that return CompoundTagModifier and TypeMethodDescriptionprivate CompoundTagChunkMap.upgradeChunkTag(CompoundTag p_214948_) Methods in net.minecraft.server.level that return types with arguments of type CompoundTagMethods in net.minecraft.server.level with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidServerPlayer.addAdditionalSaveData(CompoundTag pCompound) private static booleanChunkMap.isChunkDataValid(CompoundTag pTag) voidServerPlayer.loadGameTypes(CompoundTag pTag) voidServerPlayer.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.private static GameTypeServerPlayer.readPlayerMode(CompoundTag pTag, String pKey) private voidServerPlayer.storeGameTypes(CompoundTag pTag) private CompoundTagChunkMap.upgradeChunkTag(CompoundTag p_214948_) -
Uses of CompoundTag in net.minecraft.server.players
Methods in net.minecraft.server.players that return CompoundTagMethods in net.minecraft.server.players that return types with arguments of type CompoundTag -
Uses of CompoundTag in net.minecraft.stats
Methods in net.minecraft.stats that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTagServerStatsCounter.fromJson(JsonObject pJson) ServerRecipeBook.toNbt()Methods in net.minecraft.stats with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidServerRecipeBook.fromNbt(CompoundTag pTag, RecipeManager pRecipeManager) static RecipeBookSettingsRecipeBookSettings.read(CompoundTag pTag) voidRecipeBookSettings.write(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.util.datafix
Methods in net.minecraft.util.datafix that return CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion, int pNewVersion) DataFixTypes.updateToCurrentVersion(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion) Methods in net.minecraft.util.datafix with parameters of type CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion, int pNewVersion) DataFixTypes.updateToCurrentVersion(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion) -
Uses of CompoundTag in net.minecraft.util.datafix.fixes
Methods in net.minecraft.util.datafix.fixes that return CompoundTag -
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 pRegionStorage, CompoundTag pChunkTag) 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 pRegionStorage, CompoundTag pChunkTag) -
Uses of CompoundTag in net.minecraft.world
Methods in net.minecraft.world that return CompoundTagModifier and TypeMethodDescriptionRandomSequences.save(CompoundTag pTag, HolderLookup.Provider pRegistries) static CompoundTagContainerHelper.saveAllItems(CompoundTag pTag, NonNullList<ItemStack> pItems, boolean pAlwaysPutTag, HolderLookup.Provider pLevelRegistry) static CompoundTagContainerHelper.saveAllItems(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) Methods in net.minecraft.world with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidLockCode.addToTag(CompoundTag pNbt) static LockCodeLockCode.fromTag(CompoundTag pNbt) private static booleanRandomSequences.getBooleanWithDefault(CompoundTag pTag, String pKey, boolean pDefaultValue) static RandomSequencesRandomSequences.load(long pSeed, CompoundTag pTag) static voidContainerHelper.loadAllItems(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) RandomSequences.save(CompoundTag pTag, HolderLookup.Provider pRegistries) static CompoundTagContainerHelper.saveAllItems(CompoundTag pTag, NonNullList<ItemStack> pItems, boolean pAlwaysPutTag, HolderLookup.Provider pLevelRegistry) static CompoundTagContainerHelper.saveAllItems(CompoundTag pTag, NonNullList<ItemStack> pItems, HolderLookup.Provider pLevelRegistry) default booleanRandomizableContainer.tryLoadLootTable(CompoundTag pTag) default booleanRandomizableContainer.trySaveLootTable(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.effect
Methods in net.minecraft.world.effect with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic MobEffectInstanceMobEffectInstance.load(CompoundTag pNbt) Read a custom potion effect from a potion item's NBT data. -
Uses of CompoundTag in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as CompoundTagModifier and TypeFieldDescriptionprivate CompoundTagMarker.dataprivate CompoundTagEntity.persistentDataMethods in net.minecraft.world.entity that return CompoundTagModifier and TypeMethodDescriptionEntity.getPersistentData()Entity.saveWithoutId(CompoundTag pCompound) Writes this entity, including passengers, to NBT, regardless as to whether it is removed or a passenger.Methods in net.minecraft.world.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAgeableMob.addAdditionalSaveData(CompoundTag pCompound) protected voidAreaEffectCloud.addAdditionalSaveData(CompoundTag pCompound) protected voidDisplay.addAdditionalSaveData(CompoundTag pCompound) protected voidDisplay.BlockDisplay.addAdditionalSaveData(CompoundTag pCompound) protected voidDisplay.ItemDisplay.addAdditionalSaveData(CompoundTag pCompound) protected voidDisplay.TextDisplay.addAdditionalSaveData(CompoundTag pCompound) protected abstract voidEntity.addAdditionalSaveData(CompoundTag pCompound) voidExperienceOrb.addAdditionalSaveData(CompoundTag pCompound) voidGlowSquid.addAdditionalSaveData(CompoundTag pCompound) protected voidInteraction.addAdditionalSaveData(CompoundTag pCompound) voidItemBasedSteering.addAdditionalSaveData(CompoundTag pNbt) protected voidLightningBolt.addAdditionalSaveData(CompoundTag pCompound) voidLivingEntity.addAdditionalSaveData(CompoundTag pCompound) protected voidMarker.addAdditionalSaveData(CompoundTag p_147257_) voidMob.addAdditionalSaveData(CompoundTag pCompound) protected voidOminousItemSpawner.addAdditionalSaveData(CompoundTag pCompound) voidTamableAnimal.addAdditionalSaveData(CompoundTag pCompound) default voidNeutralMob.addPersistentAngerSaveData(CompoundTag pNbt) static Optional<EntityType<?>> EntityType.by(CompoundTag pCompound) EntityType.create(CompoundTag pTag, Level pLevel) voidEntity.load(CompoundTag pCompound) Reads the entity from NBT (calls an abstract helper method to read specialized data)static EntityEntityType.loadEntityRecursive(CompoundTag pCompound, Level pLevel, Function<Entity, Entity> pEntityFunction) private static byteDisplay.TextDisplay.loadFlag(byte pCurrentValue, CompoundTag pTag, String pFlag, byte pMask) EntityType.loadStaticEntity(CompoundTag pCompound, Level pLevel) voidAgeableMob.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidAreaEffectCloud.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidDisplay.BlockDisplay.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidDisplay.ItemDisplay.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidDisplay.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidDisplay.TextDisplay.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected abstract voidEntity.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidExperienceOrb.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidGlowSquid.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidInteraction.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidItemBasedSteering.readAdditionalSaveData(CompoundTag pNbt) protected voidLightningBolt.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidLivingEntity.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidMarker.readAdditionalSaveData(CompoundTag p_147254_) voidMob.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidOminousItemSpawner.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidTamableAnimal.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.default Leashable.LeashDataLeashable.readLeashData(CompoundTag pTag) default voidNeutralMob.readPersistentAngerSaveData(Level pLevel, CompoundTag pTag) booleanEntity.save(CompoundTag pCompound) Writes this entity to NBT, unless it has been removed or it is a passenger.booleanEntity.saveAsPassenger(CompoundTag pCompound) Writes this entity to NBT, unless it has been removed.Entity.saveWithoutId(CompoundTag pCompound) Writes this entity, including passengers, to NBT, regardless as to whether it is removed or a passenger.private static voidDisplay.TextDisplay.storeFlag(byte pCurrentValue, CompoundTag pTag, String pFlag, byte pMask) default voidLeashable.writeLeashData(CompoundTag pTag, Leashable.LeashData pLeashData) -
Uses of CompoundTag in net.minecraft.world.entity.ai.attributes
Methods in net.minecraft.world.entity.ai.attributes that return CompoundTagMethods in net.minecraft.world.entity.ai.attributes with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAttributeInstance.load(CompoundTag pNbt) static AttributeModifierAttributeModifier.load(CompoundTag pNbt) -
Uses of CompoundTag in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidBat.addAdditionalSaveData(CompoundTag pCompound) voidBat.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAbstractFish.addAdditionalSaveData(CompoundTag pCompound) voidAnimal.addAdditionalSaveData(CompoundTag pCompound) voidBee.addAdditionalSaveData(CompoundTag pCompound) voidCat.addAdditionalSaveData(CompoundTag pCompound) voidChicken.addAdditionalSaveData(CompoundTag pCompound) voidDolphin.addAdditionalSaveData(CompoundTag pCompound) voidFox.addAdditionalSaveData(CompoundTag pCompound) voidIronGolem.addAdditionalSaveData(CompoundTag pCompound) voidMushroomCow.addAdditionalSaveData(CompoundTag pCompound) voidOcelot.addAdditionalSaveData(CompoundTag pCompound) voidPanda.addAdditionalSaveData(CompoundTag pCompound) voidParrot.addAdditionalSaveData(CompoundTag pCompound) voidPig.addAdditionalSaveData(CompoundTag pCompound) voidPolarBear.addAdditionalSaveData(CompoundTag pCompound) voidPufferfish.addAdditionalSaveData(CompoundTag pCompound) voidRabbit.addAdditionalSaveData(CompoundTag pCompound) voidSheep.addAdditionalSaveData(CompoundTag pCompound) voidSnowGolem.addAdditionalSaveData(CompoundTag pCompound) voidTropicalFish.addAdditionalSaveData(CompoundTag pCompound) voidTurtle.addAdditionalSaveData(CompoundTag pCompound) voidWolf.addAdditionalSaveData(CompoundTag pCompound) static voidBucketable.loadDefaultDataFromBucketTag(Mob pMob, CompoundTag pTag) Deprecated.voidAbstractFish.loadFromBucketTag(CompoundTag pTag) voidBucketable.loadFromBucketTag(CompoundTag pTag) voidTropicalFish.loadFromBucketTag(CompoundTag pTag) voidAbstractFish.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidAnimal.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidBee.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidCat.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidChicken.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidDolphin.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidFox.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidIronGolem.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidMushroomCow.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidOcelot.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPanda.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidParrot.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPig.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPolarBear.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPufferfish.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidRabbit.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidSheep.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidSnowGolem.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidTropicalFish.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidTurtle.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidWolf.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAllay.addAdditionalSaveData(CompoundTag pCompound) voidAllay.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidArmadillo.addAdditionalSaveData(CompoundTag pCompound) voidArmadillo.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAxolotl.addAdditionalSaveData(CompoundTag pCompound) voidAxolotl.loadFromBucketTag(CompoundTag pTag) voidAxolotl.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidCamel.addAdditionalSaveData(CompoundTag pCompound) voidCamel.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidFrog.addAdditionalSaveData(CompoundTag pCompound) voidTadpole.addAdditionalSaveData(CompoundTag pCompound) voidTadpole.loadFromBucketTag(CompoundTag pTag) voidFrog.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidTadpole.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidGoat.addAdditionalSaveData(CompoundTag pCompound) voidGoat.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAbstractChestedHorse.addAdditionalSaveData(CompoundTag pCompound) voidAbstractHorse.addAdditionalSaveData(CompoundTag pCompound) voidHorse.addAdditionalSaveData(CompoundTag pCompound) voidLlama.addAdditionalSaveData(CompoundTag pCompound) voidSkeletonHorse.addAdditionalSaveData(CompoundTag pCompound) voidTraderLlama.addAdditionalSaveData(CompoundTag pCompound) voidAbstractChestedHorse.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidAbstractHorse.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidHorse.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidLlama.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidSkeletonHorse.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidTraderLlama.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.boss
Methods in net.minecraft.world.entity.boss with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidEnderDragonPart.addAdditionalSaveData(CompoundTag pCompound) protected voidEnderDragonPart.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidEndCrystal.addAdditionalSaveData(CompoundTag pCompound) voidEnderDragon.addAdditionalSaveData(CompoundTag pCompound) protected voidEndCrystal.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidEnderDragon.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidWitherBoss.addAdditionalSaveData(CompoundTag pCompound) voidWitherBoss.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return CompoundTagMethods in net.minecraft.world.entity.decoration with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidArmorStand.addAdditionalSaveData(CompoundTag pCompound) voidBlockAttachedEntity.addAdditionalSaveData(CompoundTag pCompound) voidItemFrame.addAdditionalSaveData(CompoundTag pCompound) voidLeashFenceKnotEntity.addAdditionalSaveData(CompoundTag pCompound) voidPainting.addAdditionalSaveData(CompoundTag pCompound) voidArmorStand.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidBlockAttachedEntity.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidItemFrame.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidLeashFenceKnotEntity.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPainting.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.private voidArmorStand.readPose(CompoundTag pCompound) -
Uses of CompoundTag in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item declared as CompoundTagMethods in net.minecraft.world.entity.item with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidFallingBlockEntity.addAdditionalSaveData(CompoundTag pCompound) voidItemEntity.addAdditionalSaveData(CompoundTag pCompound) protected voidPrimedTnt.addAdditionalSaveData(CompoundTag pCompound) protected voidFallingBlockEntity.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidItemEntity.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidPrimedTnt.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidBogged.addAdditionalSaveData(CompoundTag pCompound) voidCreeper.addAdditionalSaveData(CompoundTag pCompound) voidEnderMan.addAdditionalSaveData(CompoundTag pCompound) voidEndermite.addAdditionalSaveData(CompoundTag pCompound) voidEvoker.addAdditionalSaveData(CompoundTag pCompound) voidGhast.addAdditionalSaveData(CompoundTag pCompound) voidPatrollingMonster.addAdditionalSaveData(CompoundTag pCompound) voidPhantom.addAdditionalSaveData(CompoundTag pCompound) voidPillager.addAdditionalSaveData(CompoundTag pCompound) voidRavager.addAdditionalSaveData(CompoundTag pCompound) voidShulker.addAdditionalSaveData(CompoundTag pCompound) voidSkeleton.addAdditionalSaveData(CompoundTag pCompound) voidSlime.addAdditionalSaveData(CompoundTag pCompound) voidSpellcasterIllager.addAdditionalSaveData(CompoundTag pCompound) voidStrider.addAdditionalSaveData(CompoundTag pCompound) voidVex.addAdditionalSaveData(CompoundTag pCompound) voidVindicator.addAdditionalSaveData(CompoundTag pCompound) voidZoglin.addAdditionalSaveData(CompoundTag pCompound) voidZombie.addAdditionalSaveData(CompoundTag pCompound) voidZombieVillager.addAdditionalSaveData(CompoundTag pCompound) voidZombifiedPiglin.addAdditionalSaveData(CompoundTag pCompound) voidAbstractSkeleton.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidBogged.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidCreeper.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidEnderMan.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidEndermite.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidEvoker.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidGhast.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPatrollingMonster.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPhantom.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPillager.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidRavager.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidShulker.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidSkeleton.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidSlime.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidSpellcasterIllager.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidStrider.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidVex.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidVindicator.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidZoglin.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidZombie.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidZombieVillager.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidZombifiedPiglin.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidHoglin.addAdditionalSaveData(CompoundTag pCompound) voidHoglin.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAbstractPiglin.addAdditionalSaveData(CompoundTag pCompound) voidPiglin.addAdditionalSaveData(CompoundTag pCompound) voidAbstractPiglin.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidPiglin.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidWarden.addAdditionalSaveData(CompoundTag pCompound) voidWarden.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAbstractVillager.addAdditionalSaveData(CompoundTag pCompound) voidVillager.addAdditionalSaveData(CompoundTag pCompound) voidWanderingTrader.addAdditionalSaveData(CompoundTag pCompound) voidAbstractVillager.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidVillager.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidWanderingTrader.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.default voidInventoryCarrier.readInventoryFromTag(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) default voidInventoryCarrier.writeInventoryToTag(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) -
Uses of CompoundTag in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player with type parameters of type CompoundTagModifier and TypeFieldDescriptionprotected static final EntityDataAccessor<CompoundTag> Player.DATA_SHOULDER_LEFTprotected static final EntityDataAccessor<CompoundTag> Player.DATA_SHOULDER_RIGHTMethods in net.minecraft.world.entity.player that return CompoundTagMethods in net.minecraft.world.entity.player with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidPlayer.addAdditionalSaveData(CompoundTag pCompound) voidAbilities.addSaveData(CompoundTag pCompound) voidAbilities.loadSaveData(CompoundTag pCompound) private voidPlayer.playShoulderEntityAmbientSound(CompoundTag pEntityCompound) voidPlayer.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.private voidPlayer.respawnEntityOnShoulder(CompoundTag pEntityCompound) booleanPlayer.setEntityOnShoulder(CompoundTag pEntityCompound) protected voidPlayer.setShoulderEntityLeft(CompoundTag pEntityCompound) protected voidPlayer.setShoulderEntityRight(CompoundTag pEntityCompound) -
Uses of CompoundTag in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidAbstractArrow.addAdditionalSaveData(CompoundTag pCompound) voidAbstractHurtingProjectile.addAdditionalSaveData(CompoundTag pCompound) protected voidEvokerFangs.addAdditionalSaveData(CompoundTag pCompound) voidEyeOfEnder.addAdditionalSaveData(CompoundTag pCompound) voidFireball.addAdditionalSaveData(CompoundTag pCompound) voidFireworkRocketEntity.addAdditionalSaveData(CompoundTag pCompound) voidFishingHook.addAdditionalSaveData(CompoundTag pCompound) voidLargeFireball.addAdditionalSaveData(CompoundTag pCompound) protected voidProjectile.addAdditionalSaveData(CompoundTag pCompound) protected voidShulkerBullet.addAdditionalSaveData(CompoundTag pCompound) voidSpectralArrow.addAdditionalSaveData(CompoundTag pCompound) voidThrowableItemProjectile.addAdditionalSaveData(CompoundTag pCompound) voidThrownTrident.addAdditionalSaveData(CompoundTag pCompound) voidWitherSkull.addAdditionalSaveData(CompoundTag pCompound) voidAbstractArrow.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidAbstractHurtingProjectile.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidEvokerFangs.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidEyeOfEnder.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidFireball.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidFireworkRocketEntity.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidFishingHook.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidLargeFireball.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidProjectile.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidShulkerBullet.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidSpectralArrow.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidThrowableItemProjectile.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidThrownTrident.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidWitherSkull.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid that return CompoundTagModifier and TypeMethodDescriptionRaid.save(CompoundTag pCompound) Raids.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Methods in net.minecraft.world.entity.raid with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidRaider.addAdditionalSaveData(CompoundTag pCompound) static RaidsRaids.load(ServerLevel pLevel, CompoundTag pTag) voidRaider.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.Raid.save(CompoundTag pCompound) Raids.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Constructors in net.minecraft.world.entity.raid with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidAbstractMinecart.addAdditionalSaveData(CompoundTag pCompound) protected voidAbstractMinecartContainer.addAdditionalSaveData(CompoundTag pCompound) protected voidBoat.addAdditionalSaveData(CompoundTag pCompound) protected voidChestBoat.addAdditionalSaveData(CompoundTag pCompound) protected voidMinecartCommandBlock.addAdditionalSaveData(CompoundTag pCompound) protected voidMinecartFurnace.addAdditionalSaveData(CompoundTag pCompound) protected voidMinecartHopper.addAdditionalSaveData(CompoundTag pCompound) protected voidMinecartSpawner.addAdditionalSaveData(CompoundTag pCompound) protected voidMinecartTNT.addAdditionalSaveData(CompoundTag pCompound) default voidContainerEntity.addChestVehicleSaveData(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) protected voidAbstractMinecart.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidAbstractMinecartContainer.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidBoat.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidChestBoat.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidMinecartCommandBlock.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidMinecartFurnace.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidMinecartHopper.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidMinecartSpawner.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.protected voidMinecartTNT.readAdditionalSaveData(CompoundTag pCompound) (abstract) Protected helper method to read subclass entity data from NBT.default voidContainerEntity.readChestVehicleSaveData(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) -
Uses of CompoundTag in net.minecraft.world.food
Methods in net.minecraft.world.food with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidFoodData.addAdditionalSaveData(CompoundTag pCompoundTag) Writes the food data for the player.voidFoodData.readAdditionalSaveData(CompoundTag pCompoundTag) Reads the food data for the player. -
Uses of CompoundTag in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ItemStackItemStack.parseOptional(HolderLookup.Provider pLookupProvider, CompoundTag pTag) static voidBlockItem.setBlockEntityData(ItemStack pStack, BlockEntityType<?> pBlockEntityType, CompoundTag pBlockEntityData) -
Uses of CompoundTag in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as CompoundTagMethods in net.minecraft.world.item.component that return CompoundTagMethods in net.minecraft.world.item.component with parameters of type CompoundTagModifier and TypeMethodDescriptionCustomData.itemMatcher(DataComponentType<CustomData> pComponentType, CompoundTag pTag) booleanCustomData.matchedBy(CompoundTag pTag) static CustomDataCustomData.of(CompoundTag pTag) static voidCustomData.set(DataComponentType<CustomData> pComponentType, ItemStack pStack, CompoundTag pTag) Method parameters in net.minecraft.world.item.component with type arguments of type CompoundTagModifier and TypeMethodDescriptionCustomData.update(Consumer<CompoundTag> pUpdater) static voidCustomData.update(DataComponentType<CustomData> pComponentType, ItemStack pStack, Consumer<CompoundTag> pUpdater) Constructors in net.minecraft.world.item.component with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level
Fields in net.minecraft.world.level declared as CompoundTagModifier and TypeFieldDescriptionprivate final 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()BaseCommandBlock.save(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) BaseSpawner.save(CompoundTag pTag) ForcedChunksSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static ResourceLocationSpawner.getEntityKey(CompoundTag pTag, String pSpawnDataKey) voidBaseCommandBlock.load(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) voidBaseSpawner.load(Level pLevel, BlockPos pPos, CompoundTag pTag) static ForcedChunksSavedDataForcedChunksSavedData.load(CompoundTag p_151484_, HolderLookup.Provider p_323940_) BaseCommandBlock.save(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) BaseSpawner.save(CompoundTag pTag) ForcedChunksSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) 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
Methods in net.minecraft.world.level.block with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidSculkSpreader.load(CompoundTag pTag) voidSculkSpreader.save(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as CompoundTagMethods in net.minecraft.world.level.block.entity that return CompoundTagModifier and TypeMethodDescriptionBlockEntity.getPersistentData()BannerBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) BeaconBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) BlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) BrushableBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) CampfireBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) ConduitBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) DecoratedPotBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) JigsawBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) SignBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) SkullBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) SpawnerBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) StructureBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) TheEndGatewayBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) TrialSpawnerBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) PotDecorations.save(CompoundTag pTag) final CompoundTagBlockEntity.saveCustomAndMetadata(HolderLookup.Provider pRegistries) final CompoundTagBlockEntity.saveCustomOnly(HolderLookup.Provider pRegistries) final CompoundTagBlockEntity.saveWithFullMetadata(HolderLookup.Provider pRegistries) final CompoundTagBlockEntity.saveWithId(HolderLookup.Provider pRegistries) final CompoundTagBlockEntity.saveWithoutMetadata(HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.block.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate voidCrafterBlockEntity.addDisabledSlots(CompoundTag pTag) static voidBlockEntity.addEntityType(CompoundTag pTag, BlockEntityType<?> pEntityType) private voidCrafterBlockEntity.addTriggered(CompoundTag pTag) static BlockPosBlockEntity.getPosFromTag(CompoundTag pTag) static PotDecorationsPotDecorations.load(CompoundTag pTag) protected voidAbstractFurnaceBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBannerBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBarrelBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBaseContainerBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBeaconBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBeehiveBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBrewingStandBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBrushableBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidCampfireBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidChestBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidChiseledBookShelfBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidCommandBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidComparatorBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidConduitBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidCrafterBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidDecoratedPotBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidDispenserBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidEnchantingTableBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidHopperBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidJigsawBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidJukeboxBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidLecternBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSculkCatalystBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSculkSensorBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSculkShriekerBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidShulkerBoxBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSignBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSkullBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSpawnerBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidStructureBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidTheEndGatewayBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidTrialSpawnerBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) final voidBlockEntity.loadCustomOnly(CompoundTag pTag, HolderLookup.Provider pRegistries) BeaconBlockEntity.loadEffect(CompoundTag pTag, String pKey) voidShulkerBoxBlockEntity.loadFromTag(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) static BlockEntityBlockEntity.loadStatic(BlockPos pPos, BlockState pState, CompoundTag pTag, HolderLookup.Provider pRegistries) final voidBlockEntity.loadWithComponents(CompoundTag pTag, HolderLookup.Provider pRegistries) voidBannerBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidBaseContainerBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidBeaconBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidBeehiveBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidBlockEntity.removeComponentsFromTag(CompoundTag pTag) Deprecated.voidCampfireBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidChiseledBookShelfBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidCommandBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidDecoratedPotBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidEnchantingTableBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidRandomizableContainerBlockEntity.removeComponentsFromTag(CompoundTag pTag) voidSkullBlockEntity.removeComponentsFromTag(CompoundTag pTag) PotDecorations.save(CompoundTag pTag) protected voidAbstractFurnaceBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBannerBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBarrelBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBaseContainerBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBeaconBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBeehiveBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBrewingStandBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidBrushableBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidCampfireBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidChestBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidChiseledBookShelfBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidCommandBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidComparatorBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidConduitBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidCrafterBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidDecoratedPotBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidDispenserBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidEnchantingTableBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidHopperBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidJigsawBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidJukeboxBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidLecternBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSculkCatalystBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSculkSensorBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSculkShriekerBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidShulkerBoxBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSignBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSkullBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidSpawnerBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidStructureBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidTheEndGatewayBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidTrialSpawnerBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) private voidBlockEntity.saveId(CompoundTag pTag) private voidBlockEntity.saveMetadata(CompoundTag pTag) private static voidBeaconBlockEntity.storeEffect(CompoundTag pTag, String pKey, Holder<MobEffect> pEffect) private booleanBrushableBlockEntity.tryLoadLootTable(CompoundTag pTag) private booleanBrushableBlockEntity.trySaveLootTable(CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault that return CompoundTagModifier and TypeMethodDescriptionVaultBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.block.entity.vault with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidVaultBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidVaultBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) -
Uses of CompoundTag in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return CompoundTagModifier and TypeMethodDescriptionPistonMovingBlockEntity.getUpdateTag(HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.block.piston with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidPistonMovingBlockEntity.loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) protected voidPistonMovingBlockEntity.saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) -
Uses of CompoundTag in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final List<CompoundTag> ProtoChunk.entitiesprotected final Map<BlockPos, CompoundTag> ChunkAccess.pendingBlockEntitiesMethods in net.minecraft.world.level.chunk that return CompoundTagModifier and TypeMethodDescriptionChunkAccess.getBlockEntityNbt(BlockPos pPos) ImposterProtoChunk.getBlockEntityNbt(BlockPos pPos) abstract CompoundTagChunkAccess.getBlockEntityNbtForSaving(BlockPos pPos, HolderLookup.Provider pRegistries) ImposterProtoChunk.getBlockEntityNbtForSaving(BlockPos pPos, HolderLookup.Provider pRegistries) LevelChunk.getBlockEntityNbtForSaving(BlockPos pPos, HolderLookup.Provider pRegistries) ProtoChunk.getBlockEntityNbtForSaving(BlockPos pPos, HolderLookup.Provider pRegistries) UpgradeData.write()final 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 pTag) private static <T> voidUpgradeData.loadTicks(CompoundTag pTag, String pIdentifier, Function<String, Optional<T>> pValueFunction, List<SavedTick<T>> pTicks) private BlockEntityLevelChunk.promotePendingBlockEntity(BlockPos pPos, CompoundTag pTag) final voidChunkAccess.readAttachmentsFromNBT(HolderLookup.Provider provider, CompoundTag tag) FOR INTERNAL USE ONLYvoidLevelChunk.replaceWithPacketData(FriendlyByteBuf pBuffer, CompoundTag pTag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> pOutputTagConsumer) voidChunkAccess.setBlockEntityNbt(CompoundTag pTag) voidImposterProtoChunk.setBlockEntityNbt(CompoundTag pTag) Constructors in net.minecraft.world.level.chunk with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.chunk.status
Method parameters in net.minecraft.world.level.chunk.status with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate static voidChunkStatusTasks.postLoadProtoChunk(ServerLevel pLevel, List<CompoundTag> pEntityTags) -
Uses of CompoundTag in net.minecraft.world.level.chunk.storage
Fields in net.minecraft.world.level.chunk.storage declared as CompoundTagMethods in net.minecraft.world.level.chunk.storage that return CompoundTagModifier and TypeMethodDescription(package private) CompoundTagIOWorker.PendingStore.copyData()private static CompoundTagChunkSerializer.packStructureData(StructurePieceSerializationContext pContext, ChunkPos pPos, Map<Structure, StructureStart> pStructureMap, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> pReferenceMap) ChunkStorage.upgradeChunkTag(ResourceKey<Level> pLevelKey, Supplier<DimensionDataStorage> pStorage, CompoundTag pChunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> pChunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag(CompoundTag pTag, int pVersion) static CompoundTagChunkSerializer.write(ServerLevel pLevel, ChunkAccess pChunk) Methods in net.minecraft.world.level.chunk.storage that return types with arguments of type CompoundTagMethods in net.minecraft.world.level.chunk.storage with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ChunkTypeChunkSerializer.getChunkTypeFromTag(CompoundTag pTag) private static ListTagChunkSerializer.getListOfCompoundsOrNull(CompoundTag pTag, String pKey) static intChunkStorage.getVersion(CompoundTag pChunkData) static voidChunkStorage.injectDatafixingContext(CompoundTag pChunkData, ResourceKey<Level> pLevelKey, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> pChunkGeneratorKey) private booleanIOWorker.isOldChunk(CompoundTag pChunkData) private static LevelChunk.PostLoadProcessorChunkSerializer.postLoadChunk(ServerLevel pLevel, CompoundTag pTag) static ProtoChunkChunkSerializer.read(ServerLevel pLevel, PoiManager pPoiManager, RegionStorageInfo pRegionStorageInfo, ChunkPos pPos, CompoundTag pTag) private static ChunkPosEntityStorage.readChunkPos(CompoundTag pTag) private voidSectionStorage.readColumn(ChunkPos pChunkPos, RegistryOps<Tag> pOps, CompoundTag pTag) private static voidChunkStorage.removeDatafixingContext(CompoundTag pTag) private static voidChunkSerializer.saveTicks(ServerLevel pLevel, CompoundTag pTag, ChunkAccess.TicksToSave pTicksToSave) IOWorker.store(ChunkPos pChunkPos, CompoundTag pChunkData) ChunkSerializer.unpackStructureReferences(RegistryAccess pRegistryAccess, ChunkPos pPos, CompoundTag pTag) private static Map<Structure, StructureStart> ChunkSerializer.unpackStructureStart(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) ChunkStorage.upgradeChunkTag(ResourceKey<Level> pLevelKey, Supplier<DimensionDataStorage> pStorage, CompoundTag pChunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> pChunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag(CompoundTag pTag, int pVersion) ChunkStorage.write(ChunkPos pChunkPos, CompoundTag pData) RecreatingChunkStorage.write(ChunkPos pChunkPos, CompoundTag pData) RecreatingSimpleRegionStorage.write(ChunkPos pChunkPos, CompoundTag pData) protected voidRegionFileStorage.write(ChunkPos pChunkPos, CompoundTag pChunkData) SimpleRegionStorage.write(ChunkPos pChunkPos, CompoundTag pData) private static voidEntityStorage.writeChunkPos(CompoundTag pTag, ChunkPos pPos) Constructors in net.minecraft.world.level.chunk.storage with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.levelgen
Methods in net.minecraft.world.level.levelgen with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic BelowZeroRetrogenBelowZeroRetrogen.read(CompoundTag pTag) -
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 pContext) StructureStart.createTag(StructurePieceSerializationContext pContext, ChunkPos pChunkPos) StructureFeatureIndexSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) LegacyStructureDataHandler.updateFromLegacy(CompoundTag pTag) private CompoundTagLegacyStructureDataHandler.updateStructureStart(CompoundTag pTag, ChunkPos pChunkPos) Methods in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidPoolElementStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidScatteredFeaturePiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected abstract voidStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidTemplateStructurePiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) StructureFeatureIndexSavedData.load(CompoundTag p_163535_, HolderLookup.Provider p_323754_) static StructureStartStructureStart.loadStaticStart(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) private it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> StructureCheck.loadStructures(CompoundTag pTag) StructureFeatureIndexSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) LegacyStructureDataHandler.updateFromLegacy(CompoundTag pTag) private CompoundTagLegacyStructureDataHandler.updateStructureStart(CompoundTag pTag, ChunkPos pChunkPos) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifierConstructorDescriptionPoolElementStructurePiece(StructurePieceSerializationContext pContext, CompoundTag pTag) protectedScatteredFeaturePiece(StructurePieceType pType, CompoundTag pTag) StructurePiece(StructurePieceType pType, CompoundTag pTag) TemplateStructurePiece(StructurePieceType pType, CompoundTag pTag, StructureTemplateManager pStructureTemplateManager, Function<ResourceLocation, StructurePlaceSettings> pPlaceSettingsFactory) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pieces
Methods in net.minecraft.world.level.levelgen.structure.pieces with parameters of type CompoundTagModifier and TypeMethodDescriptionStructurePieceType.ContextlessType.load(CompoundTag pTag) default StructurePieceStructurePieceType.ContextlessType.load(StructurePieceSerializationContext pContext, CompoundTag pTag) StructurePieceType.load(StructurePieceSerializationContext pContext, CompoundTag pTag) default StructurePieceStructurePieceType.StructureTemplateType.load(StructurePieceSerializationContext pContext, CompoundTag pTag) StructurePieceType.StructureTemplateType.load(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pools
Fields in net.minecraft.world.level.levelgen.structure.pools declared as CompoundTagMethods in net.minecraft.world.level.levelgen.structure.pools that return CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.structures
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected voidBuriedTreasurePieces.BuriedTreasurePiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidDesertPyramidPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidEndCityPieces.EndCityPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidIglooPieces.IglooPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidJungleTemplePiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidMineshaftPieces.MineShaftCorridor.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidMineshaftPieces.MineShaftCrossing.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidMineshaftPieces.MineShaftPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidMineshaftPieces.MineShaftRoom.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidNetherFortressPieces.BridgeEndFiller.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidNetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidNetherFortressPieces.CastleSmallCorridorRightTurnPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidNetherFortressPieces.MonsterThrone.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidNetherFortressPieces.NetherBridgePiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidNetherFossilPieces.NetherFossilPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidOceanMonumentPieces.OceanMonumentPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidOceanRuinPieces.OceanRuinPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidRuinedPortalPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidShipwreckPieces.ShipwreckPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.ChestCorridor.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.FillerCorridor.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.FiveCrossing.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.Library.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.PortalRoom.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.RoomCrossing.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.StairsDown.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.Straight.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidStrongholdPieces.StrongholdPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidSwampHutPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected voidWoodlandMansionPieces.WoodlandMansionPiece.addAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) OceanRuinPieces.OceanRuinPiece.create(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) private static StructurePlaceSettingsRuinedPortalPiece.makeSettings(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag, ResourceLocation pLocation) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifierConstructorDescriptionBridgeCrossing(CompoundTag pTag) protectedBridgeCrossing(StructurePieceType pType, CompoundTag pTag) BridgeEndFiller(CompoundTag pTag) BridgeStraight(CompoundTag pTag) CastleEntrance(CompoundTag pTag) CastleStalkRoom(CompoundTag pTag) ChestCorridor(CompoundTag pTag) EndCityPiece(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) FillerCorridor(CompoundTag pTag) FiveCrossing(CompoundTag pTag) IglooPiece(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) JungleTemplePiece(CompoundTag pTag) LeftTurn(CompoundTag pTag) Library(CompoundTag pTag) MineShaftCorridor(CompoundTag pTag) MineShaftCrossing(CompoundTag pTag) MineShaftPiece(StructurePieceType pType, CompoundTag pTag) MineShaftRoom(CompoundTag pTag) MineShaftStairs(CompoundTag pTag) MonsterThrone(CompoundTag pTag) MonumentBuilding(CompoundTag pTag) NetherBridgePiece(StructurePieceType pType, CompoundTag pTag) NetherFossilPiece(StructureTemplateManager pStructureManager, CompoundTag pTag) OceanMonumentPiece(StructurePieceType pType, CompoundTag pTag) privateOceanRuinPiece(StructureTemplateManager pStructureTemplateManager, CompoundTag pGenDepth, Rotation pRotation, float pIntegrity, OceanRuinStructure.Type pBiomeType, boolean pIsLarge) PortalRoom(CompoundTag pTag) PrisonHall(CompoundTag pTag) RightTurn(CompoundTag pTag) RoomCrossing(CompoundTag pTag) RoomCrossing(CompoundTag pTag) RuinedPortalPiece(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) ShipwreckPiece(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) StairsDown(CompoundTag pTag) StairsDown(StructurePieceType pType, CompoundTag pTag) StairsRoom(CompoundTag pTag) StartPiece(CompoundTag pTag) StartPiece(CompoundTag pTag) Straight(CompoundTag pTag) StrongholdPiece(StructurePieceType pType, CompoundTag pTag) SwampHutPiece(CompoundTag pTag) Turn(StructurePieceType p_229934_, CompoundTag p_229935_) WoodlandMansionPiece(StructureTemplateManager pStructureTemplateManager, CompoundTag pTag) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as CompoundTagModifier and TypeFieldDescriptionprivate final 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 pRandom, CompoundTag pTag) StructureTemplate.StructureBlockInfo.nbt()Returns the value of thenbtrecord component.StructureTemplate.save(CompoundTag pTag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException(ServerLevelAccessor pLevel, CompoundTag pTag) ProcessorRule.getOutputTag(RandomSource pRandom, CompoundTag pTag) voidStructureTemplate.load(HolderGetter<Block> pBlockGetter, CompoundTag pTag) StructureTemplateManager.readStructure(CompoundTag pNbt) StructureTemplate.save(CompoundTag pTag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifierConstructorDescriptionStructureBlockInfo(BlockPos pos, BlockState state, CompoundTag nbt) Creates an instance of aStructureBlockInforecord class.StructureEntityInfo(Vec3 pPos, BlockPos pBlockPos, CompoundTag pNbt) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
Fields in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity declared as CompoundTagMethods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity that return CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply(RandomSource pRandom, CompoundTag pTag) AppendStatic.apply(RandomSource pRandom, CompoundTag pTag) Clear.apply(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply(RandomSource pRandom, CompoundTag pTag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply(RandomSource pRandom, CompoundTag pTag) AppendStatic.apply(RandomSource pRandom, CompoundTag pTag) Clear.apply(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply(RandomSource pRandom, CompoundTag pTag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.saveddata
Fields in net.minecraft.world.level.saveddata with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final BiFunction<CompoundTag, HolderLookup.Provider, T> SavedData.Factory.deserializerThe field for thedeserializerrecord component.Methods in net.minecraft.world.level.saveddata that return CompoundTagModifier and TypeMethodDescriptionabstract CompoundTagSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.saveddata that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionSavedData.Factory.deserializer()Returns the value of thedeserializerrecord component.Methods in net.minecraft.world.level.saveddata with parameters of type CompoundTagModifier and TypeMethodDescriptionabstract CompoundTagSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Constructor parameters in net.minecraft.world.level.saveddata with type arguments of type CompoundTagModifierConstructorDescriptionFactory(Supplier<T> constructor, BiFunction<CompoundTag, HolderLookup.Provider, T> deserializer) Factory(Supplier<T> constructor, BiFunction<CompoundTag, HolderLookup.Provider, T> deserializer, @Nullable DataFixTypes type) Creates an instance of aFactoryrecord class. -
Uses of CompoundTag in net.minecraft.world.level.saveddata.maps
Methods in net.minecraft.world.level.saveddata.maps that return CompoundTagModifier and TypeMethodDescriptionMapFrame.save()MapIndex.save(CompoundTag pTag, HolderLookup.Provider pRegistries) MapItemSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.saveddata.maps with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic MapFrameMapFrame.load(CompoundTag pCompoundTag) static MapIndexMapIndex.load(CompoundTag p_164763_, HolderLookup.Provider p_323806_) static MapItemSavedDataMapItemSavedData.load(CompoundTag p_164808_, HolderLookup.Provider p_324560_) MapIndex.save(CompoundTag pTag, HolderLookup.Provider pRegistries) MapItemSavedData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) -
Uses of CompoundTag in net.minecraft.world.level.storage
Fields in net.minecraft.world.level.storage declared as CompoundTagModifier and TypeFieldDescriptionprivate CompoundTagPrimaryLevelData.customBossEventsprivate final CompoundTagPrimaryLevelData.loadedPlayerTagFields in net.minecraft.world.level.storage with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final Map<String, CompoundTag> CommandStorage.Container.storageMethods in net.minecraft.world.level.storage that return CompoundTagModifier and TypeMethodDescriptionPrimaryLevelData.createTag(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) WorldData.createTag(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) CommandStorage.get(ResourceLocation pId) PrimaryLevelData.getCustomBossEvents()WorldData.getCustomBossEvents()PrimaryLevelData.getLoadedPlayerTag()WorldData.getLoadedPlayerTag()(package private) static CompoundTagLevelStorageSource.readLevelDataTagRaw(Path pLevelPath) DimensionDataStorage.readTagFromDisk(String pFilename, DataFixTypes pDataFixType, int pVersion) CommandStorage.Container.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Methods in net.minecraft.world.level.storage that return types with arguments of type CompoundTagMethods in net.minecraft.world.level.storage with parameters of type CompoundTagModifier and TypeMethodDescriptionPrimaryLevelData.createTag(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) WorldData.createTag(RegistryAccess pRegistries, CompoundTag pHostPlayerNBT) (package private) CommandStorage.ContainerCommandStorage.Container.load(CompoundTag pCompoundTag) voidCommandStorage.Container.put(String pId, CompoundTag pNbt) CommandStorage.Container.save(CompoundTag pTag, HolderLookup.Provider pRegistries) voidLevelStorageSource.LevelStorageAccess.saveDataTag(RegistryAccess pRegistries, WorldData pServerConfiguration, CompoundTag pHostPlayerNBT) private voidLevelStorageSource.LevelStorageAccess.saveLevelData(CompoundTag pTag) voidCommandStorage.set(ResourceLocation pId, CompoundTag pNbt) voidPrimaryLevelData.setCustomBossEvents(CompoundTag pNbt) voidWorldData.setCustomBossEvents(CompoundTag pNbt) private voidPrimaryLevelData.setTagData(RegistryAccess pRegistry, CompoundTag pNbt, CompoundTag pPlayerNBT) Method parameters in net.minecraft.world.level.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate voidLevelStorageSource.LevelStorageAccess.modifyLevelDataWithoutDatafix(Consumer<CompoundTag> pModifier) private <T extends SavedData>
TDimensionDataStorage.readSavedData(BiFunction<CompoundTag, HolderLookup.Provider, T> pReader, DataFixTypes pDataFixType, String pFilename) Constructors in net.minecraft.world.level.storage with parameters of type CompoundTagModifierConstructorDescriptionprivatePrimaryLevelData(CompoundTag pLoadedPlayerTag, boolean pWasModded, BlockPos pSpawnPos, float pSpawnAngle, long pGameTime, long pDayTime, int pVersion, int pClearWeatherTime, int pRainTime, boolean pRaining, int pThunderTime, boolean pThundering, boolean pInitialized, boolean pDifficultyLocked, WorldBorder.Settings pWorldBorder, int pWanderingTraderSpawnDelay, int pWanderingTraderSpawnChance, UUID pWanderingTraderId, Set<String> pKnownServerBrands, Set<String> pRemovedFeatureFlags, TimerQueue<MinecraftServer> pScheduledEvents, CompoundTag pCustomBossEvents, EndDragonFight.Data pEndDragonFightData, LevelSettings pSettings, WorldOptions pWorldOptions, PrimaryLevelData.SpecialWorldProperty pSpecialWorldProperty, com.mojang.serialization.Lifecycle pWorldGenSettingsLifecycle) -
Uses of CompoundTag in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as CompoundTagMethods in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder<?> SetCustomDataFunction.setCustomData(CompoundTag pTag) Deprecated.Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifierConstructorDescriptionprivateSetCustomDataFunction(List<LootItemCondition> p_330259_, CompoundTag p_330792_) -
Uses of CompoundTag in net.minecraft.world.level.timers
Methods in net.minecraft.world.level.timers that return CompoundTagModifier and TypeMethodDescription<T extends TimerCallback<C>>
CompoundTagTimerCallbacks.serialize(T pCallback) private CompoundTagTimerQueue.storeEvent(TimerQueue.Event<T> p_82255_) Methods in net.minecraft.world.level.timers with parameters of type CompoundTagModifier and TypeMethodDescriptionFunctionCallback.Serializer.deserialize(CompoundTag p_82180_) FunctionTagCallback.Serializer.deserialize(CompoundTag p_82204_) abstract CTimerCallback.Serializer.deserialize(CompoundTag pTag) TimerCallbacks.deserialize(CompoundTag pTag) private voidTimerQueue.loadEvent(CompoundTag pTag) voidFunctionCallback.Serializer.serialize(CompoundTag p_82182_, FunctionCallback p_82183_) voidFunctionTagCallback.Serializer.serialize(CompoundTag p_82206_, FunctionTagCallback p_82207_) abstract voidTimerCallback.Serializer.serialize(CompoundTag pTag, C pCallback) -
Uses of CompoundTag in net.minecraft.world.scores
Methods in net.minecraft.world.scores that return CompoundTagModifier and TypeMethodDescriptionScoreboardSaveData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) Score.write(HolderLookup.Provider pLevelRegistry) Methods in net.minecraft.world.scores with parameters of type CompoundTagModifier and TypeMethodDescriptionScoreboardSaveData.load(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) private voidScoreboardSaveData.loadDisplaySlots(CompoundTag pCompound) static ScoreScore.read(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) ScoreboardSaveData.save(CompoundTag pTag, HolderLookup.Provider pRegistries) private voidScoreboardSaveData.saveDisplaySlots(CompoundTag pCompound) -
Uses of CompoundTag in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTagSavedTick.saveTick(String pId, BlockPos pPos, int pDelay, TickPriority pPriority) static <T> CompoundTagSavedTick.saveTick(ScheduledTick<T> pTick, Function<T, String> pIdGetter, long pGameTime) Methods in net.minecraft.world.ticks with parameters of type CompoundTag -
Uses of CompoundTag in net.neoforged.neoforge.attachment
Methods in net.neoforged.neoforge.attachment that return CompoundTagModifier and TypeMethodDescriptionLevelAttachmentsSavedData.save(CompoundTag tag, HolderLookup.Provider provider) final @Nullable CompoundTagAttachmentHolder.serializeAttachments(HolderLookup.Provider provider) Writes the serializable attachments to a tag.Methods in net.neoforged.neoforge.attachment with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected final voidAttachmentHolder.deserializeAttachments(HolderLookup.Provider provider, CompoundTag tag) Reads serializable attachments from a tag previously created viaAttachmentHolder.serializeAttachments(HolderLookup.Provider).voidAttachmentHolder.AsField.deserializeInternal(HolderLookup.Provider provider, CompoundTag tag) LevelAttachmentsSavedData.save(CompoundTag tag, HolderLookup.Provider provider) Constructors in net.neoforged.neoforge.attachment 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.default CompoundTagIEntityExtension.serializeNBT(HolderLookup.Provider provider) Deprecated, for removal: This API element is subject to removal in a future version.Use a data component/attachment to store infoMethods in net.neoforged.neoforge.common.extensions with parameters of type CompoundTagModifier and TypeMethodDescriptiondefault voidIEntityExtension.deserializeNBT(HolderLookup.Provider provider, CompoundTag nbt) Deprecated, for removal: This API element is subject to removal in a future version.Use a data component/attachment to store info, orEntity.load(CompoundTag)as a replacement.default voidIBlockEntityExtension.handleUpdateTag(CompoundTag tag, HolderLookup.Provider lookupProvider) Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag(HolderLookup.Provider), is received on the client. -
Uses of CompoundTag in net.neoforged.neoforge.common.util
Fields in net.neoforged.neoforge.common.util declared as CompoundTagMethods in net.neoforged.neoforge.common.util that return CompoundTagModifier and TypeMethodDescriptionprivate static @Nullable 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) DummySavedData.save(CompoundTag compound, HolderLookup.Provider provider) Deprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.common.util with parameters of type CompoundTagModifier and TypeMethodDescriptionDummySavedData.save(CompoundTag compound, HolderLookup.Provider provider) Deprecated, for removal: This API element is subject to removal in a future version.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) -
Uses of CompoundTag in net.neoforged.neoforge.common.world.chunk
Methods in net.neoforged.neoforge.common.world.chunk that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTagForcedChunkManager.writeBlockPos(BlockPos blockpos) Methods in net.neoforged.neoforge.common.world.chunk with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static voidForcedChunkManager.readBlockForcedChunks(ResourceLocation controllerId, long chunkPos, CompoundTag modEntry, String key, Map<ForcedChunkManager.TicketOwner<BlockPos>, it.unimi.dsi.fastutil.longs.LongSet> blockForcedChunks) Reads the forge block forced chunks.private static BlockPosForcedChunkManager.readBlockPos(CompoundTag compoundtag) private static voidForcedChunkManager.readEntityForcedChunks(ResourceLocation controllerId, long chunkPos, CompoundTag modEntry, String key, Map<ForcedChunkManager.TicketOwner<UUID>, it.unimi.dsi.fastutil.longs.LongSet> entityForcedChunks) Reads the forge entity forced chunks.static voidForcedChunkManager.readModForcedChunks(CompoundTag nbt, ForcedChunkManager.TicketTracker<BlockPos> blockForcedChunks, ForcedChunkManager.TicketTracker<UUID> entityForcedChunks) Reads the mod forced chunks from the NBT compound.static voidForcedChunkManager.writeModForcedChunks(CompoundTag nbt, ForcedChunkManager.TicketTracker<BlockPos> blockForcedChunks, ForcedChunkManager.TicketTracker<UUID> entityForcedChunks) Writes the mod forced chunks into the NBT compound.Method parameters in net.neoforged.neoforge.common.world.chunk with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate static <T extends Comparable<? super T>>
voidForcedChunkManager.writeForcedChunkOwners(Map<ResourceLocation, it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> forcedEntries, Map<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> forcedChunks, String listKey, int listType, BiConsumer<T, ListTag> ownerWriter) private static <T extends Comparable<? super T>>
voidForcedChunkManager.writeForcedChunkOwners(Map<ResourceLocation, it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> forcedEntries, ForcedChunkManager.TicketTracker<T> tracker, String listKey, int listType, BiConsumer<T, ListTag> ownerWriter) -
Uses of CompoundTag in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as CompoundTagMethods in net.neoforged.neoforge.event.level that return CompoundTagConstructors in net.neoforged.neoforge.event.level with parameters of type CompoundTagModifierConstructorDescriptionChunkDataEvent(ChunkAccess chunk, CompoundTag data) ChunkDataEvent(ChunkAccess chunk, LevelAccessor world, CompoundTag data) Load(ChunkAccess chunk, CompoundTag data, ChunkType type) Save(ChunkAccess chunk, LevelAccessor world, CompoundTag data) -
Uses of CompoundTag in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic FluidStackFluidStack.parseOptional(HolderLookup.Provider lookupProvider, CompoundTag tag) Tries to parse a fluid stack, defaulting toFluidStack.EMPTYon parsing failure. -
Uses of CompoundTag in net.neoforged.neoforge.fluids.capability.templates
Methods in net.neoforged.neoforge.fluids.capability.templates that return CompoundTagModifier and TypeMethodDescriptionFluidTank.writeToNBT(HolderLookup.Provider lookupProvider, CompoundTag nbt) Methods in net.neoforged.neoforge.fluids.capability.templates with parameters of type CompoundTagModifier and TypeMethodDescriptionFluidTank.readFromNBT(HolderLookup.Provider lookupProvider, CompoundTag nbt) FluidTank.writeToNBT(HolderLookup.Provider lookupProvider, CompoundTag nbt) -
Uses of CompoundTag in net.neoforged.neoforge.items
Methods in net.neoforged.neoforge.items that return CompoundTagMethods in net.neoforged.neoforge.items with parameters of type CompoundTagModifier and TypeMethodDescriptionvoidItemStackHandler.deserializeNBT(HolderLookup.Provider provider, CompoundTag nbt)