Uses of Class
net.minecraft.nbt.CompoundTag
Packages that use CompoundTag
Package
Description
-
Uses of CompoundTag in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
NbtPredicate.tag
The field for thetag
record component.Methods in net.minecraft.advancements.critereon that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTag
NbtPredicate.getEntityTagToCompare
(Entity entity) NbtPredicate.tag()
Returns the value of thetag
record component.Methods in net.minecraft.advancements.critereon with parameters of type CompoundTagConstructors in net.minecraft.advancements.critereon with parameters of type CompoundTagModifierConstructorDescriptionNbtPredicate
(CompoundTag tag) Creates an instance of aNbtPredicate
record class. -
Uses of CompoundTag in net.minecraft.client
Fields in net.minecraft.client with type parameters of type CompoundTagMethods in net.minecraft.client that return CompoundTagMethods in net.minecraft.client with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate void
KeyboardHandler.copyCreateBlockCommand
(BlockState state, BlockPos pos, CompoundTag compound) private void
KeyboardHandler.copyCreateEntityCommand
(ResourceLocation entityId, Vec3 pos, CompoundTag compound) private CompoundTag
Options.dataFix
(CompoundTag nbt) boolean
DebugQueryHandler.handleResponse
(int transactionId, CompoundTag tag) Method parameters in net.minecraft.client with type arguments of type CompoundTagModifier and TypeMethodDescriptionvoid
DebugQueryHandler.queryBlockEntityTag
(BlockPos pos, Consumer<CompoundTag> tag) void
DebugQueryHandler.queryEntityTag
(int entId, Consumer<CompoundTag> tag) private int
DebugQueryHandler.startTransaction
(Consumer<CompoundTag> callback) -
Uses of CompoundTag in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return CompoundTagMethods in net.minecraft.client.multiplayer with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic ServerData
ServerData.read
(CompoundTag nbtCompound) Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance.ClientChunkCache.replaceWithPacketData
(int x, int z, FriendlyByteBuf buffer, CompoundTag tag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> consumer) -
Uses of CompoundTag in net.minecraft.client.server
Fields in net.minecraft.client.server declared as CompoundTagMethods in net.minecraft.client.server that return CompoundTag -
Uses of CompoundTag in net.minecraft.commands.arguments
Fields in net.minecraft.commands.arguments declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
NbtPathArgument.MatchElementNode.pattern
private final CompoundTag
NbtPathArgument.MatchObjectNode.pattern
Methods in net.minecraft.commands.arguments that return CompoundTagModifier and TypeMethodDescriptionstatic <S> CompoundTag
CompoundTagArgument.getCompoundTag
(com.mojang.brigadier.context.CommandContext<S> context, String name) CompoundTagArgument.parse
(com.mojang.brigadier.StringReader reader) Methods in net.minecraft.commands.arguments with parameters of type CompoundTagModifier and TypeMethodDescriptionNbtPathArgument.createTagPredicate
(CompoundTag tag) int
NbtPathArgument.NbtPath.insert
(int index, CompoundTag rootTag, List<Tag> tagsToInsert) Constructors in net.minecraft.commands.arguments with parameters of type CompoundTagModifierConstructorDescriptionMatchElementNode
(CompoundTag pattern) MatchObjectNode
(String name, CompoundTag pattern) -
Uses of CompoundTag in net.minecraft.commands.arguments.blocks
Fields in net.minecraft.commands.arguments.blocks declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
BlockPredicateArgument.BlockPredicate.nbt
private final CompoundTag
BlockPredicateArgument.TagPredicate.nbt
private final CompoundTag
BlockStateParser.BlockResult.nbt
The field for thenbt
record component.private CompoundTag
BlockStateParser.nbt
private final CompoundTag
BlockStateParser.TagResult.nbt
The field for thenbt
record component.private final CompoundTag
BlockInput.tag
Methods in net.minecraft.commands.arguments.blocks that return CompoundTagModifier and TypeMethodDescriptionBlockStateParser.BlockResult.nbt()
Returns the value of thenbt
record component.BlockStateParser.TagResult.nbt()
Returns the value of thenbt
record component.Constructors in net.minecraft.commands.arguments.blocks with parameters of type CompoundTagModifierConstructorDescriptionBlockInput
(BlockState state, Set<Property<?>> properties, CompoundTag tag) BlockPredicate
(BlockState state, Set<Property<?>> properties, CompoundTag nbt) BlockResult
(BlockState blockState, Map<Property<?>, Comparable<?>> properties, CompoundTag nbt) Creates an instance of aBlockResult
record class.(package private)
TagPredicate
(HolderSet<Block> tag, Map<String, String> vagueProperties, CompoundTag nbt) Creates an instance of aTagResult
record class. -
Uses of CompoundTag in net.minecraft.commands.functions
Methods in net.minecraft.commands.functions with parameters of type CompoundTagModifier and TypeMethodDescriptionCommandFunction.instantiate
(CompoundTag arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) MacroFunction.instantiate
(CompoundTag arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) PlainTextFunction.instantiate
(CompoundTag p_306181_, com.mojang.brigadier.CommandDispatcher<T> p_306210_) -
Uses of CompoundTag in net.minecraft.data.structures
Methods in net.minecraft.data.structures that return CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply
(String structureLocationPath, CompoundTag tag) StructureUpdater.apply
(String structureLocationPath, CompoundTag tag) private CompoundTag
SnbtToNbt.applyFilters
(String fileName, CompoundTag tag) static CompoundTag
StructureUpdater.update
(String structureLocationPath, CompoundTag tag) Methods in net.minecraft.data.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionSnbtToNbt.Filter.apply
(String structureLocationPath, CompoundTag tag) StructureUpdater.apply
(String structureLocationPath, CompoundTag tag) private CompoundTag
SnbtToNbt.applyFilters
(String fileName, CompoundTag tag) static CompoundTag
StructureUpdater.update
(String structureLocationPath, CompoundTag tag) -
Uses of CompoundTag in net.minecraft.nbt
Fields in net.minecraft.nbt with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CompoundTag> TagParser.AS_CODEC
static final com.mojang.serialization.Codec
<CompoundTag> CompoundTag.CODEC
static final com.mojang.serialization.Codec
<CompoundTag> TagParser.LENIENT_CODEC
static final TagType
<CompoundTag> CompoundTag.TYPE
Methods in net.minecraft.nbt that return CompoundTagModifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.addCurrentDataVersion
(CompoundTag tag) static CompoundTag
NbtUtils.addDataVersion
(CompoundTag tag, int dataVersion) protected CompoundTag
NbtOps.NbtRecordBuilder.append
(String key, Tag value, CompoundTag tag) CompoundTag.copy()
CompoundTag.getCompound
(String key) ListTag.getCompound
(int index) protected CompoundTag
NbtOps.NbtRecordBuilder.initBuilder()
CompoundTag.merge
(CompoundTag other) Copies all the tags ofother
into this tag, then returns itself.(package private) static CompoundTag
NbtUtils.packStructureTemplate
(CompoundTag tag) static CompoundTag
static CompoundTag
Reads a compound tag from a file.static CompoundTag
NbtIo.read
(DataInput input, NbtAccounter accounter) Reads a compound tag from a file.static CompoundTag
static CompoundTag
NbtIo.readCompressed
(InputStream zippedStream, NbtAccounter accounter) static CompoundTag
NbtIo.readCompressed
(Path path, NbtAccounter accounter) (package private) CompoundTag
TagParser.readSingleStruct()
TagParser.readStruct()
protected CompoundTag
CompoundTag.shallowCopy()
static CompoundTag
NbtUtils.snbtToStructure
(String text) (package private) static CompoundTag
NbtUtils.unpackBlockState
(String blockStateText) (package private) static CompoundTag
NbtUtils.unpackStructureTemplate
(CompoundTag tag) private static CompoundTag
NbtOps.HeterogenousListCollector.wrapElement
(Tag tag) static CompoundTag
NbtUtils.writeBlockState
(BlockState state) static CompoundTag
NbtUtils.writeFluidState
(FluidState state) Methods in net.minecraft.nbt that return types with arguments of type CompoundTagMethods in net.minecraft.nbt with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.addCurrentDataVersion
(CompoundTag tag) static CompoundTag
NbtUtils.addDataVersion
(CompoundTag tag, int dataVersion) protected CompoundTag
NbtOps.NbtRecordBuilder.append
(String key, Tag value, CompoundTag tag) protected com.mojang.serialization.DataResult
<Tag> NbtOps.NbtRecordBuilder.build
(CompoundTag p_129190_, Tag p_129191_) static int
NbtUtils.getDataVersion
(CompoundTag tag, int defaultValue) SnbtPrinterTagVisitor.getKeys
(CompoundTag tag) private static boolean
NbtOps.HeterogenousListCollector.isWrapper
(CompoundTag tag) CompoundTag.merge
(CompoundTag other) Copies all the tags ofother
into this tag, then returns itself.(package private) static String
NbtUtils.packBlockState
(CompoundTag tag) (package private) static CompoundTag
NbtUtils.packStructureTemplate
(CompoundTag tag) NbtUtils.readBlockPos
(CompoundTag tag, String key) static BlockState
NbtUtils.readBlockState
(HolderGetter<Block> blockGetter, CompoundTag tag) private static <S extends StateHolder<?,
S>, T extends Comparable<T>>
SNbtUtils.setValueHelper
(S stateHolder, Property<T> property, String propertyName, CompoundTag propertiesTag, CompoundTag blockStateTag) static String
NbtUtils.structureToSnbt
(CompoundTag tag) private static Tag
NbtOps.tryUnwrap
(CompoundTag p_tag) (package private) static CompoundTag
NbtUtils.unpackStructureTemplate
(CompoundTag tag) void
SnbtPrinterTagVisitor.visitCompound
(CompoundTag p_tag) void
StringTagVisitor.visitCompound
(CompoundTag tag) void
TagVisitor.visitCompound
(CompoundTag tag) void
TextComponentTagVisitor.visitCompound
(CompoundTag tag) static void
NbtIo.write
(CompoundTag compoundTag, DataOutput output) static void
NbtIo.write
(CompoundTag compoundTag, Path path) static void
NbtIo.writeCompressed
(CompoundTag compoundTag, OutputStream outputStream) Writes and compresses a compound tag to a GNU zipped file.static void
NbtIo.writeCompressed
(CompoundTag compoundTag, Path path) -
Uses of CompoundTag in net.minecraft.network
Methods in net.minecraft.network that return CompoundTagModifier and TypeMethodDescriptionFriendlyByteBuf.readNbt()
static CompoundTag
FriendlyByteBuf.readNbt
(io.netty.buffer.ByteBuf buffer) -
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 source) DataSource.getData
(CommandSourceStack source) EntityDataSource.getData
(CommandSourceStack source) StorageDataSource.getData
(CommandSourceStack source) -
Uses of CompoundTag in net.minecraft.network.codec
Fields in net.minecraft.network.codec with type parameters of type CompoundTagModifier and TypeFieldDescriptionstatic final StreamCodec
<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.COMPOUND_TAG
static final StreamCodec
<io.netty.buffer.ByteBuf, Optional<CompoundTag>> ByteBufCodecs.OPTIONAL_COMPOUND_TAG
static final StreamCodec
<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.TRUSTED_COMPOUND_TAG
Methods in net.minecraft.network.codec that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionstatic StreamCodec
<io.netty.buffer.ByteBuf, CompoundTag> ByteBufCodecs.compoundTagCodec
(Supplier<NbtAccounter> accounterSupplier) -
Uses of CompoundTag in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
ClientboundLevelChunkPacketData.heightmaps
private final CompoundTag
ClientboundBlockEntityDataPacket.tag
(package private) final CompoundTag
ClientboundLevelChunkPacketData.BlockEntityInfo.tag
private final CompoundTag
ClientboundTagQueryPacket.tag
Methods in net.minecraft.network.protocol.game that return CompoundTagModifier and TypeMethodDescriptionClientboundLevelChunkPacketData.getHeightmaps()
ClientboundBlockEntityDataPacket.getTag()
ClientboundTagQueryPacket.getTag()
Methods in net.minecraft.network.protocol.game with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ClientboundLevelChunkPacketData.BlockEntityTagOutput.accept
(BlockPos pos, BlockEntityType<?> type, CompoundTag nbt) Method parameters in net.minecraft.network.protocol.game with type arguments of type CompoundTagModifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create
(BlockEntity blockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> dataGetter) Constructors in net.minecraft.network.protocol.game with parameters of type CompoundTagModifierConstructorDescriptionprivate
BlockEntityInfo
(int packedXZ, int y, BlockEntityType<?> type, CompoundTag tag) private
ClientboundBlockEntityDataPacket
(BlockPos pos, BlockEntityType<?> type, CompoundTag tag) ClientboundTagQueryPacket
(int transactionId, CompoundTag tag) -
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 ScoreboardSaveData
ServerScoreboard.createData
(CompoundTag tag, HolderLookup.Provider registries) -
Uses of CompoundTag in net.minecraft.server.bossevents
Methods in net.minecraft.server.bossevents that return CompoundTagModifier and TypeMethodDescriptionCustomBossEvent.save
(HolderLookup.Provider levelRegistry) CustomBossEvents.save
(HolderLookup.Provider levelRegistry) Methods in net.minecraft.server.bossevents with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic CustomBossEvent
CustomBossEvent.load
(CompoundTag p_tag, ResourceLocation id, HolderLookup.Provider levelRegistry) void
CustomBossEvents.load
(CompoundTag tag, HolderLookup.Provider levelRegistry) -
Uses of CompoundTag in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
CloneCommands.CloneBlockEntityInfo.tag
The field for thetag
record component.Methods in net.minecraft.server.commands that return CompoundTagModifier and TypeMethodDescriptionprotected abstract CompoundTag
FunctionCommand.FunctionCustomExecutor.arguments
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) (package private) static CompoundTag
FunctionCommand.getArgumentTag
(NbtPathArgument.NbtPath nbtPath, DataAccessor dataAccessor) CloneCommands.CloneBlockEntityInfo.tag()
Returns the value of thetag
record component.Methods in net.minecraft.server.commands with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.instantiateAndQueueFunctions
(CompoundTag arguments, ExecutionControl<T> executionControl, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, CommandFunction<T> function, ResourceLocation functionId, CommandResultCallback resultCallback, boolean returnParentFrame) static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions
(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> executionControl, FunctionCommand.Callbacks<T> callbacks, ChainModifiers chainModifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn
(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> exectutionControl, FunctionCommand.Callbacks<T> callbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn
(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> executionControl, FunctionCommand.Callbacks<T> callbacks) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest
(T originalSource, List<T> sources, Function<T, T> sourceModifier, IntPredicate successCheck, com.mojang.brigadier.context.ContextChain<T> contextChain, CompoundTag arguments, ExecutionControl<T> executionControl, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> functions, ChainModifiers chainModifiers) private static int
SummonCommand.spawnEntity
(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) Constructors in net.minecraft.server.commands with parameters of type CompoundTagModifierConstructorDescription(package private)
CloneBlockEntityInfo
(CompoundTag tag, DataComponentMap components) Creates an instance of aCloneBlockEntityInfo
record class. -
Uses of CompoundTag in net.minecraft.server.commands.data
Methods in net.minecraft.server.commands.data that return CompoundTagModifier and TypeMethodDescriptionBlockDataAccessor.getData()
DataAccessor.getData()
EntityDataAccessor.getData()
StorageDataAccessor.getData()
Methods in net.minecraft.server.commands.data with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static int
DataCommands.mergeData
(CommandSourceStack source, DataAccessor accessor, CompoundTag nbt) Merges the given NBT into the targeted object's NBT.int
DataCommands.DataManipulator.modify
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, CompoundTag nbt, NbtPathArgument.NbtPath nbtPath, List<Tag> tags) void
BlockDataAccessor.setData
(CompoundTag other) void
DataAccessor.setData
(CompoundTag other) void
EntityDataAccessor.setData
(CompoundTag other) void
StorageDataAccessor.setData
(CompoundTag other) -
Uses of CompoundTag in net.minecraft.server.level
Methods in net.minecraft.server.level that return CompoundTagMethods in net.minecraft.server.level that return types with arguments of type CompoundTagMethods in net.minecraft.server.level with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ServerPlayer.addAdditionalSaveData
(CompoundTag compound) private static boolean
ChunkMap.isChunkDataValid
(CompoundTag tag) void
ServerPlayer.loadGameTypes
(CompoundTag tag) void
ServerPlayer.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.private static GameType
ServerPlayer.readPlayerMode
(CompoundTag tag, String key) private void
ServerPlayer.storeGameTypes
(CompoundTag tag) private CompoundTag
ChunkMap.upgradeChunkTag
(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.server.players
Methods in net.minecraft.server.players that return CompoundTagMethods in net.minecraft.server.players that return types with arguments of type CompoundTag -
Uses of CompoundTag in net.minecraft.stats
Methods in net.minecraft.stats that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTag
ServerStatsCounter.fromJson
(com.google.gson.JsonObject json) ServerRecipeBook.toNbt()
Methods in net.minecraft.stats with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ServerRecipeBook.fromNbt
(CompoundTag tag, RecipeManager recipeManager) static RecipeBookSettings
RecipeBookSettings.read
(CompoundTag tag) void
RecipeBookSettings.write
(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.util.datafix
Methods in net.minecraft.util.datafix that return CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int version, int newVersion) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int version) Methods in net.minecraft.util.datafix with parameters of type CompoundTagModifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int version, int newVersion) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer fixer, CompoundTag tag, int version) -
Uses of CompoundTag in net.minecraft.util.datafix.fixes
Methods in net.minecraft.util.datafix.fixes that return CompoundTag -
Uses of CompoundTag in net.minecraft.util.worldupdate
Methods in net.minecraft.util.worldupdate that return CompoundTagModifier and TypeMethodDescriptionprotected CompoundTag
WorldUpgrader.EntityUpgrader.upgradeTag
(SimpleRegionStorage p_321667_, CompoundTag p_321776_) protected CompoundTag
WorldUpgrader.PoiUpgrader.upgradeTag
(SimpleRegionStorage p_321589_, CompoundTag p_321492_) protected abstract CompoundTag
WorldUpgrader.SimpleRegionStorageUpgrader.upgradeTag
(SimpleRegionStorage regionStorage, CompoundTag chunkTag) Methods in net.minecraft.util.worldupdate with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected CompoundTag
WorldUpgrader.EntityUpgrader.upgradeTag
(SimpleRegionStorage p_321667_, CompoundTag p_321776_) protected CompoundTag
WorldUpgrader.PoiUpgrader.upgradeTag
(SimpleRegionStorage p_321589_, CompoundTag p_321492_) protected abstract CompoundTag
WorldUpgrader.SimpleRegionStorageUpgrader.upgradeTag
(SimpleRegionStorage regionStorage, CompoundTag chunkTag) -
Uses of CompoundTag in net.minecraft.world
Methods in net.minecraft.world that return CompoundTagModifier and TypeMethodDescriptionRandomSequences.save
(CompoundTag tag, HolderLookup.Provider registries) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag tag, NonNullList<ItemStack> items, boolean alwaysPutTag, HolderLookup.Provider levelRegistry) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag tag, NonNullList<ItemStack> items, HolderLookup.Provider levelRegistry) Methods in net.minecraft.world with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
LockCode.addToTag
(CompoundTag nbt) static LockCode
LockCode.fromTag
(CompoundTag nbt) private static boolean
RandomSequences.getBooleanWithDefault
(CompoundTag tag, String key, boolean defaultValue) static RandomSequences
RandomSequences.load
(long seed, CompoundTag tag) static void
ContainerHelper.loadAllItems
(CompoundTag tag, NonNullList<ItemStack> items, HolderLookup.Provider levelRegistry) RandomSequences.save
(CompoundTag tag, HolderLookup.Provider registries) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag tag, NonNullList<ItemStack> items, boolean alwaysPutTag, HolderLookup.Provider levelRegistry) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag tag, NonNullList<ItemStack> items, HolderLookup.Provider levelRegistry) default boolean
RandomizableContainer.tryLoadLootTable
(CompoundTag tag) default boolean
RandomizableContainer.trySaveLootTable
(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.world.effect
Methods in net.minecraft.world.effect with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic MobEffectInstance
MobEffectInstance.load
(CompoundTag nbt) 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 CompoundTag
Marker.data
private CompoundTag
Entity.persistentData
Methods in net.minecraft.world.entity that return CompoundTagModifier and TypeMethodDescriptionEntity.getPersistentData()
Entity.saveWithoutId
(CompoundTag compound) Writes this entity, including passengers, to NBT, regardless as to whether it is removed or a passenger.Methods in net.minecraft.world.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AgeableMob.addAdditionalSaveData
(CompoundTag compound) protected void
AreaEffectCloud.addAdditionalSaveData
(CompoundTag compound) protected void
Display.addAdditionalSaveData
(CompoundTag compound) protected void
Display.BlockDisplay.addAdditionalSaveData
(CompoundTag compound) protected void
Display.ItemDisplay.addAdditionalSaveData
(CompoundTag compound) protected void
Display.TextDisplay.addAdditionalSaveData
(CompoundTag compound) protected abstract void
Entity.addAdditionalSaveData
(CompoundTag compound) void
ExperienceOrb.addAdditionalSaveData
(CompoundTag compound) void
GlowSquid.addAdditionalSaveData
(CompoundTag compound) protected void
Interaction.addAdditionalSaveData
(CompoundTag compound) void
ItemBasedSteering.addAdditionalSaveData
(CompoundTag nbt) protected void
LightningBolt.addAdditionalSaveData
(CompoundTag compound) void
LivingEntity.addAdditionalSaveData
(CompoundTag compound) protected void
Marker.addAdditionalSaveData
(CompoundTag p_147257_) void
Mob.addAdditionalSaveData
(CompoundTag compound) protected void
OminousItemSpawner.addAdditionalSaveData
(CompoundTag compound) void
TamableAnimal.addAdditionalSaveData
(CompoundTag compound) default void
NeutralMob.addPersistentAngerSaveData
(CompoundTag nbt) static Optional
<EntityType<?>> EntityType.by
(CompoundTag compound) EntityType.create
(CompoundTag tag, Level level) void
Entity.load
(CompoundTag compound) Reads the entity from NBT (calls an abstract helper method to read specialized data)static Entity
EntityType.loadEntityRecursive
(CompoundTag compound, Level level, Function<Entity, Entity> entityFunction) private static byte
Display.TextDisplay.loadFlag
(byte currentValue, CompoundTag tag, String flag, byte mask) EntityType.loadStaticEntity
(CompoundTag compound, Level level) void
AgeableMob.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
AreaEffectCloud.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Display.BlockDisplay.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Display.ItemDisplay.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Display.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Display.TextDisplay.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected abstract void
Entity.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ExperienceOrb.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
GlowSquid.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Interaction.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ItemBasedSteering.readAdditionalSaveData
(CompoundTag nbt) protected void
LightningBolt.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
LivingEntity.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Marker.readAdditionalSaveData
(CompoundTag p_147254_) void
Mob.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
OminousItemSpawner.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
TamableAnimal.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.default Leashable.LeashData
Leashable.readLeashData
(CompoundTag tag) default void
NeutralMob.readPersistentAngerSaveData
(Level level, CompoundTag tag) boolean
Entity.save
(CompoundTag compound) Writes this entity to NBT, unless it has been removed or it is a passenger.boolean
Entity.saveAsPassenger
(CompoundTag compound) Writes this entity to NBT, unless it has been removed.Entity.saveWithoutId
(CompoundTag compound) Writes this entity, including passengers, to NBT, regardless as to whether it is removed or a passenger.private static void
Display.TextDisplay.storeFlag
(byte currentValue, CompoundTag tag, String flag, byte mask) default void
Leashable.writeLeashData
(CompoundTag tag, Leashable.LeashData leashData) -
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 TypeMethodDescriptionvoid
AttributeInstance.load
(CompoundTag nbt) static AttributeModifier
AttributeModifier.load
(CompoundTag nbt) -
Uses of CompoundTag in net.minecraft.world.entity.ambient
Methods in net.minecraft.world.entity.ambient with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Bat.addAdditionalSaveData
(CompoundTag compound) void
Bat.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractFish.addAdditionalSaveData
(CompoundTag compound) void
Animal.addAdditionalSaveData
(CompoundTag compound) void
Bee.addAdditionalSaveData
(CompoundTag compound) void
Cat.addAdditionalSaveData
(CompoundTag compound) void
Chicken.addAdditionalSaveData
(CompoundTag compound) void
Dolphin.addAdditionalSaveData
(CompoundTag compound) void
Fox.addAdditionalSaveData
(CompoundTag compound) void
IronGolem.addAdditionalSaveData
(CompoundTag compound) void
MushroomCow.addAdditionalSaveData
(CompoundTag compound) void
Ocelot.addAdditionalSaveData
(CompoundTag compound) void
Panda.addAdditionalSaveData
(CompoundTag compound) void
Parrot.addAdditionalSaveData
(CompoundTag compound) void
Pig.addAdditionalSaveData
(CompoundTag compound) void
PolarBear.addAdditionalSaveData
(CompoundTag compound) void
Pufferfish.addAdditionalSaveData
(CompoundTag compound) void
Rabbit.addAdditionalSaveData
(CompoundTag compound) void
Sheep.addAdditionalSaveData
(CompoundTag compound) void
SnowGolem.addAdditionalSaveData
(CompoundTag compound) void
TropicalFish.addAdditionalSaveData
(CompoundTag compound) void
Turtle.addAdditionalSaveData
(CompoundTag compound) void
Wolf.addAdditionalSaveData
(CompoundTag compound) static void
Bucketable.loadDefaultDataFromBucketTag
(Mob mob, CompoundTag tag) Deprecated.void
AbstractFish.loadFromBucketTag
(CompoundTag tag) void
Bucketable.loadFromBucketTag
(CompoundTag tag) void
TropicalFish.loadFromBucketTag
(CompoundTag tag) void
AbstractFish.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Animal.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Bee.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Cat.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Chicken.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Dolphin.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Fox.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
IronGolem.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
MushroomCow.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Ocelot.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Panda.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Parrot.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Pig.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
PolarBear.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Pufferfish.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Rabbit.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Sheep.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
SnowGolem.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
TropicalFish.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Turtle.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Wolf.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Allay.addAdditionalSaveData
(CompoundTag compound) void
Allay.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
Armadillo.addAdditionalSaveData
(CompoundTag compound) void
Armadillo.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
Axolotl.addAdditionalSaveData
(CompoundTag compound) void
Axolotl.loadFromBucketTag
(CompoundTag tag) void
Axolotl.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
Camel.addAdditionalSaveData
(CompoundTag compound) void
Camel.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
Frog.addAdditionalSaveData
(CompoundTag compound) void
Tadpole.addAdditionalSaveData
(CompoundTag compound) void
Tadpole.loadFromBucketTag
(CompoundTag tag) void
Frog.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Tadpole.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
Goat.addAdditionalSaveData
(CompoundTag compound) void
Goat.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
AbstractChestedHorse.addAdditionalSaveData
(CompoundTag compound) void
AbstractHorse.addAdditionalSaveData
(CompoundTag compound) void
Horse.addAdditionalSaveData
(CompoundTag compound) void
Llama.addAdditionalSaveData
(CompoundTag compound) void
SkeletonHorse.addAdditionalSaveData
(CompoundTag compound) void
TraderLlama.addAdditionalSaveData
(CompoundTag compound) void
AbstractChestedHorse.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
AbstractHorse.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Horse.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Llama.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
SkeletonHorse.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
TraderLlama.readAdditionalSaveData
(CompoundTag compound) (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 void
EnderDragonPart.addAdditionalSaveData
(CompoundTag compound) protected void
EnderDragonPart.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
EndCrystal.addAdditionalSaveData
(CompoundTag compound) void
EnderDragon.addAdditionalSaveData
(CompoundTag compound) protected void
EndCrystal.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
EnderDragon.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
WitherBoss.addAdditionalSaveData
(CompoundTag compound) void
WitherBoss.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return CompoundTagMethods in net.minecraft.world.entity.decoration with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ArmorStand.addAdditionalSaveData
(CompoundTag compound) void
BlockAttachedEntity.addAdditionalSaveData
(CompoundTag compound) void
ItemFrame.addAdditionalSaveData
(CompoundTag compound) void
LeashFenceKnotEntity.addAdditionalSaveData
(CompoundTag compound) void
Painting.addAdditionalSaveData
(CompoundTag compound) void
ArmorStand.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
BlockAttachedEntity.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ItemFrame.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
LeashFenceKnotEntity.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Painting.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.private void
ArmorStand.readPose
(CompoundTag compound) -
Uses of CompoundTag in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item declared as CompoundTagMethods in net.minecraft.world.entity.item with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
FallingBlockEntity.addAdditionalSaveData
(CompoundTag compound) void
ItemEntity.addAdditionalSaveData
(CompoundTag compound) protected void
PrimedTnt.addAdditionalSaveData
(CompoundTag compound) protected void
FallingBlockEntity.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ItemEntity.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
PrimedTnt.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Bogged.addAdditionalSaveData
(CompoundTag compound) void
Creeper.addAdditionalSaveData
(CompoundTag compound) void
EnderMan.addAdditionalSaveData
(CompoundTag compound) void
Endermite.addAdditionalSaveData
(CompoundTag compound) void
Evoker.addAdditionalSaveData
(CompoundTag compound) void
Ghast.addAdditionalSaveData
(CompoundTag compound) void
PatrollingMonster.addAdditionalSaveData
(CompoundTag compound) void
Phantom.addAdditionalSaveData
(CompoundTag compound) void
Pillager.addAdditionalSaveData
(CompoundTag compound) void
Ravager.addAdditionalSaveData
(CompoundTag compound) void
Shulker.addAdditionalSaveData
(CompoundTag compound) void
Skeleton.addAdditionalSaveData
(CompoundTag compound) void
Slime.addAdditionalSaveData
(CompoundTag compound) void
SpellcasterIllager.addAdditionalSaveData
(CompoundTag compound) void
Strider.addAdditionalSaveData
(CompoundTag compound) void
Vex.addAdditionalSaveData
(CompoundTag compound) void
Vindicator.addAdditionalSaveData
(CompoundTag compound) void
Zoglin.addAdditionalSaveData
(CompoundTag compound) void
Zombie.addAdditionalSaveData
(CompoundTag compound) void
ZombieVillager.addAdditionalSaveData
(CompoundTag compound) void
ZombifiedPiglin.addAdditionalSaveData
(CompoundTag compound) void
AbstractSkeleton.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Bogged.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Creeper.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
EnderMan.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Endermite.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Evoker.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Ghast.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
PatrollingMonster.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Phantom.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Pillager.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Ravager.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Shulker.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Skeleton.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Slime.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
SpellcasterIllager.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Strider.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Vex.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Vindicator.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Zoglin.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Zombie.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ZombieVillager.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ZombifiedPiglin.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
Hoglin.addAdditionalSaveData
(CompoundTag compound) void
Hoglin.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractPiglin.addAdditionalSaveData
(CompoundTag compound) void
Piglin.addAdditionalSaveData
(CompoundTag compound) void
AbstractPiglin.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Piglin.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT. -
Uses of CompoundTag in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Warden.addAdditionalSaveData
(CompoundTag compound) void
Warden.readAdditionalSaveData
(CompoundTag compound) (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 TypeMethodDescriptionvoid
AbstractVillager.addAdditionalSaveData
(CompoundTag compound) void
Villager.addAdditionalSaveData
(CompoundTag compound) void
WanderingTrader.addAdditionalSaveData
(CompoundTag compound) void
AbstractVillager.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Villager.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
WanderingTrader.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.default void
InventoryCarrier.readInventoryFromTag
(CompoundTag tag, HolderLookup.Provider levelRegistry) default void
InventoryCarrier.writeInventoryToTag
(CompoundTag tag, HolderLookup.Provider levelRegistry) -
Uses of CompoundTag in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player with type parameters of type CompoundTagModifier and TypeFieldDescriptionprotected static final EntityDataAccessor
<CompoundTag> Player.DATA_SHOULDER_LEFT
protected static final EntityDataAccessor
<CompoundTag> Player.DATA_SHOULDER_RIGHT
Methods in net.minecraft.world.entity.player that return CompoundTagMethods in net.minecraft.world.entity.player with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Player.addAdditionalSaveData
(CompoundTag compound) void
Abilities.addSaveData
(CompoundTag compound) void
Abilities.loadSaveData
(CompoundTag compound) private void
Player.playShoulderEntityAmbientSound
(CompoundTag entityCompound) void
Player.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.private void
Player.respawnEntityOnShoulder
(CompoundTag entityCompound) boolean
Player.setEntityOnShoulder
(CompoundTag entityCompound) protected void
Player.setShoulderEntityLeft
(CompoundTag entityCompound) protected void
Player.setShoulderEntityRight
(CompoundTag entityCompound) -
Uses of CompoundTag in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
AbstractArrow.addAdditionalSaveData
(CompoundTag compound) void
AbstractHurtingProjectile.addAdditionalSaveData
(CompoundTag compound) protected void
EvokerFangs.addAdditionalSaveData
(CompoundTag compound) void
EyeOfEnder.addAdditionalSaveData
(CompoundTag compound) void
Fireball.addAdditionalSaveData
(CompoundTag compound) void
FireworkRocketEntity.addAdditionalSaveData
(CompoundTag compound) void
FishingHook.addAdditionalSaveData
(CompoundTag compound) void
LargeFireball.addAdditionalSaveData
(CompoundTag compound) protected void
Projectile.addAdditionalSaveData
(CompoundTag compound) protected void
ShulkerBullet.addAdditionalSaveData
(CompoundTag compound) void
SpectralArrow.addAdditionalSaveData
(CompoundTag compound) void
ThrowableItemProjectile.addAdditionalSaveData
(CompoundTag compound) void
ThrownTrident.addAdditionalSaveData
(CompoundTag compound) void
WitherSkull.addAdditionalSaveData
(CompoundTag compound) void
AbstractArrow.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
AbstractHurtingProjectile.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
EvokerFangs.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
EyeOfEnder.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
Fireball.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
FireworkRocketEntity.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
FishingHook.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
LargeFireball.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Projectile.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
ShulkerBullet.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
SpectralArrow.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ThrowableItemProjectile.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
ThrownTrident.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.void
WitherSkull.readAdditionalSaveData
(CompoundTag compound) (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 compound) Raids.save
(CompoundTag tag, HolderLookup.Provider registries) Methods in net.minecraft.world.entity.raid with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
Raider.addAdditionalSaveData
(CompoundTag compound) static Raids
Raids.load
(ServerLevel level, CompoundTag tag) void
Raider.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.Raid.save
(CompoundTag compound) Raids.save
(CompoundTag tag, HolderLookup.Provider registries) 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 void
AbstractMinecart.addAdditionalSaveData
(CompoundTag compound) protected void
AbstractMinecartContainer.addAdditionalSaveData
(CompoundTag compound) protected void
Boat.addAdditionalSaveData
(CompoundTag compound) protected void
ChestBoat.addAdditionalSaveData
(CompoundTag compound) protected void
MinecartCommandBlock.addAdditionalSaveData
(CompoundTag compound) protected void
MinecartFurnace.addAdditionalSaveData
(CompoundTag compound) protected void
MinecartHopper.addAdditionalSaveData
(CompoundTag compound) protected void
MinecartSpawner.addAdditionalSaveData
(CompoundTag compound) protected void
MinecartTNT.addAdditionalSaveData
(CompoundTag compound) default void
ContainerEntity.addChestVehicleSaveData
(CompoundTag tag, HolderLookup.Provider levelRegistry) protected void
AbstractMinecart.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
AbstractMinecartContainer.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
Boat.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
ChestBoat.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartCommandBlock.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartFurnace.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartHopper.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartSpawner.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.protected void
MinecartTNT.readAdditionalSaveData
(CompoundTag compound) (abstract) Protected helper method to read subclass entity data from NBT.default void
ContainerEntity.readChestVehicleSaveData
(CompoundTag tag, HolderLookup.Provider levelRegistry) -
Uses of CompoundTag in net.minecraft.world.food
Methods in net.minecraft.world.food with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
FoodData.addAdditionalSaveData
(CompoundTag compoundTag) Writes the food data for the player.void
FoodData.readAdditionalSaveData
(CompoundTag compoundTag) 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 ItemStack
ItemStack.parseOptional
(HolderLookup.Provider lookupProvider, CompoundTag tag) static void
BlockItem.setBlockEntityData
(ItemStack stack, BlockEntityType<?> blockEntityType, CompoundTag blockEntityData) -
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> componentType, CompoundTag tag) boolean
CustomData.matchedBy
(CompoundTag tag) static CustomData
CustomData.of
(CompoundTag tag) static void
CustomData.set
(DataComponentType<CustomData> componentType, ItemStack stack, CompoundTag tag) Method parameters in net.minecraft.world.item.component with type arguments of type CompoundTagModifier and TypeMethodDescriptionCustomData.update
(Consumer<CompoundTag> updater) static void
CustomData.update
(DataComponentType<CustomData> componentType, ItemStack stack, Consumer<CompoundTag> updater) Constructors in net.minecraft.world.item.component with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level
Fields in net.minecraft.world.level declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
SpawnData.entityToSpawn
The field for theentityToSpawn
record component.Methods in net.minecraft.world.level that return CompoundTagModifier and TypeMethodDescriptionGameRules.createTag()
SpawnData.entityToSpawn()
Returns the value of theentityToSpawn
record component.SpawnData.getEntityToSpawn()
BaseCommandBlock.save
(CompoundTag tag, HolderLookup.Provider levelRegistry) BaseSpawner.save
(CompoundTag tag) ForcedChunksSavedData.save
(CompoundTag tag, HolderLookup.Provider registries) Methods in net.minecraft.world.level with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static ResourceLocation
Spawner.getEntityKey
(CompoundTag tag, String spawnDataKey) void
BaseCommandBlock.load
(CompoundTag tag, HolderLookup.Provider levelRegistry) void
BaseSpawner.load
(Level level, BlockPos pos, CompoundTag tag) static ForcedChunksSavedData
ForcedChunksSavedData.load
(CompoundTag tag, HolderLookup.Provider registries) BaseCommandBlock.save
(CompoundTag tag, HolderLookup.Provider levelRegistry) BaseSpawner.save
(CompoundTag tag) ForcedChunksSavedData.save
(CompoundTag tag, HolderLookup.Provider registries) Constructors in net.minecraft.world.level with parameters of type CompoundTagModifierConstructorDescriptionSpawnData
(CompoundTag entityToSpawn, Optional<SpawnData.CustomSpawnRules> customSpawnRules, Optional<EquipmentTable> equipment) Creates an instance of aSpawnData
record class. -
Uses of CompoundTag in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
SculkSpreader.load
(CompoundTag tag) void
SculkSpreader.save
(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as CompoundTagMethods in net.minecraft.world.level.block.entity that return CompoundTagModifier and TypeMethodDescriptionBlockEntity.getPersistentData()
BannerBlockEntity.getUpdateTag
(HolderLookup.Provider registries) BeaconBlockEntity.getUpdateTag
(HolderLookup.Provider registries) BlockEntity.getUpdateTag
(HolderLookup.Provider registries) BrushableBlockEntity.getUpdateTag
(HolderLookup.Provider registries) CampfireBlockEntity.getUpdateTag
(HolderLookup.Provider registries) ConduitBlockEntity.getUpdateTag
(HolderLookup.Provider registries) DecoratedPotBlockEntity.getUpdateTag
(HolderLookup.Provider registries) JigsawBlockEntity.getUpdateTag
(HolderLookup.Provider registries) SignBlockEntity.getUpdateTag
(HolderLookup.Provider registries) SkullBlockEntity.getUpdateTag
(HolderLookup.Provider registries) SpawnerBlockEntity.getUpdateTag
(HolderLookup.Provider registries) StructureBlockEntity.getUpdateTag
(HolderLookup.Provider registries) TheEndGatewayBlockEntity.getUpdateTag
(HolderLookup.Provider registries) TrialSpawnerBlockEntity.getUpdateTag
(HolderLookup.Provider registries) PotDecorations.save
(CompoundTag tag) final CompoundTag
BlockEntity.saveCustomAndMetadata
(HolderLookup.Provider registries) final CompoundTag
BlockEntity.saveCustomOnly
(HolderLookup.Provider registries) final CompoundTag
BlockEntity.saveWithFullMetadata
(HolderLookup.Provider registries) final CompoundTag
BlockEntity.saveWithId
(HolderLookup.Provider registries) final CompoundTag
BlockEntity.saveWithoutMetadata
(HolderLookup.Provider registries) Methods in net.minecraft.world.level.block.entity with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate void
CrafterBlockEntity.addDisabledSlots
(CompoundTag tag) static void
BlockEntity.addEntityType
(CompoundTag tag, BlockEntityType<?> entityType) private void
CrafterBlockEntity.addTriggered
(CompoundTag tag) static BlockPos
BlockEntity.getPosFromTag
(CompoundTag tag) static PotDecorations
PotDecorations.load
(CompoundTag tag) protected void
AbstractFurnaceBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BannerBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BarrelBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BaseContainerBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BeaconBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BeehiveBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BrewingStandBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BrushableBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
CampfireBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ChestBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ChiseledBookShelfBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
CommandBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ComparatorBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ConduitBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
CrafterBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
DecoratedPotBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
DispenserBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
EnchantingTableBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
HopperBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
JigsawBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
JukeboxBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
LecternBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SculkCatalystBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SculkSensorBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SculkShriekerBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ShulkerBoxBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SignBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SkullBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SpawnerBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
StructureBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
TheEndGatewayBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
TrialSpawnerBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) final void
BlockEntity.loadCustomOnly
(CompoundTag tag, HolderLookup.Provider registries) BeaconBlockEntity.loadEffect
(CompoundTag tag, String key) void
ShulkerBoxBlockEntity.loadFromTag
(CompoundTag tag, HolderLookup.Provider levelRegistry) static BlockEntity
BlockEntity.loadStatic
(BlockPos pos, BlockState state, CompoundTag tag, HolderLookup.Provider registries) final void
BlockEntity.loadWithComponents
(CompoundTag tag, HolderLookup.Provider registries) void
BannerBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
BaseContainerBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
BeaconBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
BeehiveBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
BlockEntity.removeComponentsFromTag
(CompoundTag tag) Deprecated.void
CampfireBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
ChiseledBookShelfBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
CommandBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
DecoratedPotBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
EnchantingTableBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
RandomizableContainerBlockEntity.removeComponentsFromTag
(CompoundTag tag) void
SkullBlockEntity.removeComponentsFromTag
(CompoundTag tag) PotDecorations.save
(CompoundTag tag) protected void
AbstractFurnaceBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BannerBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BarrelBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BaseContainerBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BeaconBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BeehiveBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BrewingStandBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
BrushableBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
CampfireBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ChestBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ChiseledBookShelfBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
CommandBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ComparatorBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ConduitBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
CrafterBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
DecoratedPotBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
DispenserBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
EnchantingTableBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
HopperBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
JigsawBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
JukeboxBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
LecternBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SculkCatalystBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SculkSensorBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SculkShriekerBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
ShulkerBoxBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SignBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SkullBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
SpawnerBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
StructureBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
TheEndGatewayBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
TrialSpawnerBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) private void
BlockEntity.saveId
(CompoundTag tag) private void
BlockEntity.saveMetadata
(CompoundTag tag) private static void
BeaconBlockEntity.storeEffect
(CompoundTag tag, String key, Holder<MobEffect> effect) private boolean
BrushableBlockEntity.tryLoadLootTable
(CompoundTag tag) private boolean
BrushableBlockEntity.trySaveLootTable
(CompoundTag tag) -
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 registries) Methods in net.minecraft.world.level.block.entity.vault with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
VaultBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
VaultBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) -
Uses of CompoundTag in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return CompoundTagModifier and TypeMethodDescriptionPistonMovingBlockEntity.getUpdateTag
(HolderLookup.Provider registries) Methods in net.minecraft.world.level.block.piston with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
PistonMovingBlockEntity.loadAdditional
(CompoundTag tag, HolderLookup.Provider registries) protected void
PistonMovingBlockEntity.saveAdditional
(CompoundTag tag, HolderLookup.Provider registries) -
Uses of CompoundTag in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final List
<CompoundTag> ProtoChunk.entities
protected final Map
<BlockPos, CompoundTag> ChunkAccess.pendingBlockEntities
Methods in net.minecraft.world.level.chunk that return CompoundTagModifier and TypeMethodDescriptionChunkAccess.getBlockEntityNbt
(BlockPos pos) ImposterProtoChunk.getBlockEntityNbt
(BlockPos pos) abstract CompoundTag
ChunkAccess.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) ImposterProtoChunk.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) LevelChunk.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) ProtoChunk.getBlockEntityNbtForSaving
(BlockPos pos, HolderLookup.Provider registries) UpgradeData.write()
final CompoundTag
ChunkAccess.writeAttachmentsToNBT
(HolderLookup.Provider provider) FOR INTERNAL USE ONLYMethods in net.minecraft.world.level.chunk that return types with arguments of type CompoundTagMethods in net.minecraft.world.level.chunk with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ProtoChunk.addEntity
(CompoundTag tag) private static <T> void
UpgradeData.loadTicks
(CompoundTag p_tag, String identifier, Function<String, Optional<T>> valueFunction, List<SavedTick<T>> ticks) private BlockEntity
LevelChunk.promotePendingBlockEntity
(BlockPos pos, CompoundTag tag) final void
ChunkAccess.readAttachmentsFromNBT
(HolderLookup.Provider provider, CompoundTag tag) FOR INTERNAL USE ONLYvoid
LevelChunk.replaceWithPacketData
(FriendlyByteBuf buffer, CompoundTag tag, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> outputTagConsumer) void
ChunkAccess.setBlockEntityNbt
(CompoundTag tag) void
ImposterProtoChunk.setBlockEntityNbt
(CompoundTag tag) Constructors in net.minecraft.world.level.chunk with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.chunk.status
Method parameters in net.minecraft.world.level.chunk.status with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate static void
ChunkStatusTasks.postLoadProtoChunk
(ServerLevel level, List<CompoundTag> entityTags) -
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) CompoundTag
IOWorker.PendingStore.copyData()
private static CompoundTag
ChunkSerializer.packStructureData
(StructurePieceSerializationContext context, ChunkPos pos, Map<Structure, StructureStart> structureMap, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> referenceMap) ChunkStorage.upgradeChunkTag
(ResourceKey<Level> levelKey, Supplier<DimensionDataStorage> storage, CompoundTag chunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> chunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag
(CompoundTag tag, int version) static CompoundTag
ChunkSerializer.write
(ServerLevel level, ChunkAccess chunk) 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 ChunkType
ChunkSerializer.getChunkTypeFromTag
(CompoundTag tag) private static ListTag
ChunkSerializer.getListOfCompoundsOrNull
(CompoundTag tag, String key) static int
ChunkStorage.getVersion
(CompoundTag chunkData) static void
ChunkStorage.injectDatafixingContext
(CompoundTag chunkData, ResourceKey<Level> levelKey, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> chunkGeneratorKey) private boolean
IOWorker.isOldChunk
(CompoundTag chunkData) private static LevelChunk.PostLoadProcessor
ChunkSerializer.postLoadChunk
(ServerLevel level, CompoundTag tag) static ProtoChunk
ChunkSerializer.read
(ServerLevel level, PoiManager poiManager, RegionStorageInfo regionStorageInfo, ChunkPos pos, CompoundTag tag) private static ChunkPos
EntityStorage.readChunkPos
(CompoundTag tag) private void
SectionStorage.readColumn
(ChunkPos chunkPos, RegistryOps<Tag> ops, CompoundTag tag) private static void
ChunkStorage.removeDatafixingContext
(CompoundTag tag) private static void
ChunkSerializer.saveTicks
(ServerLevel level, CompoundTag tag, ChunkAccess.TicksToSave ticksToSave) IOWorker.store
(ChunkPos chunkPos, CompoundTag chunkData) ChunkSerializer.unpackStructureReferences
(RegistryAccess registryAccess, ChunkPos pos, CompoundTag tag) private static Map
<Structure, StructureStart> ChunkSerializer.unpackStructureStart
(StructurePieceSerializationContext context, CompoundTag tag, long seed) ChunkStorage.upgradeChunkTag
(ResourceKey<Level> levelKey, Supplier<DimensionDataStorage> storage, CompoundTag chunkData, Optional<ResourceKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> chunkGeneratorKey) SimpleRegionStorage.upgradeChunkTag
(CompoundTag tag, int version) ChunkStorage.write
(ChunkPos chunkPos, CompoundTag data) RecreatingChunkStorage.write
(ChunkPos chunkPos, CompoundTag data) RecreatingSimpleRegionStorage.write
(ChunkPos chunkPos, CompoundTag data) protected void
RegionFileStorage.write
(ChunkPos chunkPos, CompoundTag chunkData) SimpleRegionStorage.write
(ChunkPos chunkPos, CompoundTag data) private static void
EntityStorage.writeChunkPos
(CompoundTag tag, ChunkPos pos) 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 BelowZeroRetrogen
BelowZeroRetrogen.read
(CompoundTag tag) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final Map
<String, it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> LegacyStructureDataHandler.dataMap
Methods in net.minecraft.world.level.levelgen.structure that return CompoundTagModifier and TypeMethodDescriptionfinal CompoundTag
StructurePiece.createTag
(StructurePieceSerializationContext context) StructureStart.createTag
(StructurePieceSerializationContext context, ChunkPos chunkPos) StructureFeatureIndexSavedData.save
(CompoundTag tag, HolderLookup.Provider registries) LegacyStructureDataHandler.updateFromLegacy
(CompoundTag tag) private CompoundTag
LegacyStructureDataHandler.updateStructureStart
(CompoundTag tag, ChunkPos chunkPos) Methods in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
PoolElementStructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
ScatteredFeaturePiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected abstract void
StructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
TemplateStructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) StructureFeatureIndexSavedData.load
(CompoundTag tag, HolderLookup.Provider registries) static StructureStart
StructureStart.loadStaticStart
(StructurePieceSerializationContext context, CompoundTag tag, long seed) private it.unimi.dsi.fastutil.objects.Object2IntMap
<Structure> StructureCheck.loadStructures
(CompoundTag tag) StructureFeatureIndexSavedData.save
(CompoundTag tag, HolderLookup.Provider registries) LegacyStructureDataHandler.updateFromLegacy
(CompoundTag tag) private CompoundTag
LegacyStructureDataHandler.updateStructureStart
(CompoundTag tag, ChunkPos chunkPos) Constructors in net.minecraft.world.level.levelgen.structure with parameters of type CompoundTagModifierConstructorDescriptionprotected
ScatteredFeaturePiece
(StructurePieceType type, CompoundTag tag) StructurePiece
(StructurePieceType type, CompoundTag tag) TemplateStructurePiece
(StructurePieceType type, CompoundTag tag, StructureTemplateManager structureTemplateManager, Function<ResourceLocation, StructurePlaceSettings> placeSettingsFactory) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pieces
Methods in net.minecraft.world.level.levelgen.structure.pieces with parameters of type CompoundTagModifier and TypeMethodDescriptionStructurePieceType.ContextlessType.load
(CompoundTag tag) default StructurePiece
StructurePieceType.ContextlessType.load
(StructurePieceSerializationContext context, CompoundTag tag) StructurePieceType.load
(StructurePieceSerializationContext context, CompoundTag tag) default StructurePiece
StructurePieceType.StructureTemplateType.load
(StructurePieceSerializationContext context, CompoundTag tag) StructurePieceType.StructureTemplateType.load
(StructureTemplateManager structureTemplateManager, CompoundTag tag) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pools
Fields in net.minecraft.world.level.levelgen.structure.pools declared as CompoundTagMethods in net.minecraft.world.level.levelgen.structure.pools that return CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.structures
Methods in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected void
BuriedTreasurePieces.BuriedTreasurePiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
DesertPyramidPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
EndCityPieces.EndCityPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
IglooPieces.IglooPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
JungleTemplePiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
MineshaftPieces.MineShaftCorridor.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
MineshaftPieces.MineShaftCrossing.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
MineshaftPieces.MineShaftPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
MineshaftPieces.MineShaftRoom.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
NetherFortressPieces.BridgeEndFiller.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
NetherFortressPieces.MonsterThrone.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
NetherFortressPieces.NetherBridgePiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
NetherFossilPieces.NetherFossilPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
OceanMonumentPieces.OceanMonumentPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
OceanRuinPieces.OceanRuinPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
RuinedPortalPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
ShipwreckPieces.ShipwreckPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.ChestCorridor.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.FillerCorridor.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.FiveCrossing.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.Library.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.PortalRoom.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.RoomCrossing.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.StairsDown.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.Straight.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
StrongholdPieces.StrongholdPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
SwampHutPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) protected void
WoodlandMansionPieces.WoodlandMansionPiece.addAdditionalSaveData
(StructurePieceSerializationContext context, CompoundTag tag) OceanRuinPieces.OceanRuinPiece.create
(StructureTemplateManager structureTemplateManager, CompoundTag tag) private static StructurePlaceSettings
RuinedPortalPiece.makeSettings
(StructureTemplateManager structureTemplateManager, CompoundTag tag, ResourceLocation location) Constructors in net.minecraft.world.level.levelgen.structure.structures with parameters of type CompoundTagModifierConstructorDescriptionprotected
BridgeCrossing
(StructurePieceType type, CompoundTag tag) ChestCorridor
(CompoundTag tag) EndCityPiece
(StructureTemplateManager structureTemplateManager, CompoundTag tag) FiveCrossing
(CompoundTag tag) IglooPiece
(StructureTemplateManager structureTemplateManager, CompoundTag tag) LeftTurn
(CompoundTag tag) Library
(CompoundTag tag) MineShaftPiece
(StructurePieceType type, CompoundTag tag) MineShaftRoom
(CompoundTag tag) MonsterThrone
(CompoundTag tag) NetherBridgePiece
(StructurePieceType type, CompoundTag tag) NetherFossilPiece
(StructureTemplateManager structureManager, CompoundTag tag) OceanMonumentPiece
(StructurePieceType type, CompoundTag tag) private
OceanRuinPiece
(StructureTemplateManager structureTemplateManager, CompoundTag genDepth, Rotation rotation, float integrity, OceanRuinStructure.Type biomeType, boolean isLarge) PortalRoom
(CompoundTag tag) PrisonHall
(CompoundTag tag) RightTurn
(CompoundTag tag) RoomCrossing
(CompoundTag tag) RoomCrossing
(CompoundTag tag) RuinedPortalPiece
(StructureTemplateManager structureTemplateManager, CompoundTag tag) ShipwreckPiece
(StructureTemplateManager structureTemplateManager, CompoundTag tag) StairsDown
(CompoundTag tag) StairsDown
(StructurePieceType type, CompoundTag tag) StairsRoom
(CompoundTag tag) StartPiece
(CompoundTag tag) StartPiece
(CompoundTag tag) Straight
(CompoundTag tag) StrongholdPiece
(StructurePieceType type, CompoundTag tag) SwampHutPiece
(CompoundTag tag) Turn
(StructurePieceType p_229934_, CompoundTag p_229935_) WoodlandMansionPiece
(StructureTemplateManager structureTemplateManager, CompoundTag tag) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as CompoundTagModifier and TypeFieldDescriptionprivate final CompoundTag
StructureTemplate.StructureBlockInfo.nbt
The field for thenbt
record component.final CompoundTag
StructureTemplate.StructureEntityInfo.nbt
Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return CompoundTagModifier and TypeMethodDescriptionProcessorRule.getOutputTag
(RandomSource random, CompoundTag tag) StructureTemplate.StructureBlockInfo.nbt()
Returns the value of thenbt
record component.StructureTemplate.save
(CompoundTag tag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException
(ServerLevelAccessor level, CompoundTag tag) ProcessorRule.getOutputTag
(RandomSource random, CompoundTag tag) void
StructureTemplate.load
(HolderGetter<Block> blockGetter, CompoundTag tag) StructureTemplateManager.readStructure
(CompoundTag nbt) StructureTemplate.save
(CompoundTag tag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type CompoundTagModifierConstructorDescriptionStructureBlockInfo
(BlockPos pos, BlockState state, CompoundTag nbt) Creates an instance of aStructureBlockInfo
record class.StructureEntityInfo
(Vec3 pos, BlockPos blockPos, CompoundTag nbt) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity
Fields in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity declared as CompoundTagMethods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity that return CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply
(RandomSource random, CompoundTag tag) AppendStatic.apply
(RandomSource random, CompoundTag tag) Clear.apply
(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply
(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply
(RandomSource random, CompoundTag tag) Methods in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTagModifier and TypeMethodDescriptionAppendLoot.apply
(RandomSource random, CompoundTag tag) AppendStatic.apply
(RandomSource random, CompoundTag tag) Clear.apply
(RandomSource p_277601_, CompoundTag p_277931_) Passthrough.apply
(RandomSource p_277737_, CompoundTag p_277665_) RuleBlockEntityModifier.apply
(RandomSource random, CompoundTag tag) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity with parameters of type CompoundTag -
Uses of CompoundTag in net.minecraft.world.level.saveddata
Fields in net.minecraft.world.level.saveddata with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final BiFunction
<CompoundTag, HolderLookup.Provider, T> SavedData.Factory.deserializer
The field for thedeserializer
record component.Methods in net.minecraft.world.level.saveddata that return CompoundTagModifier and TypeMethodDescriptionabstract CompoundTag
SavedData.save
(CompoundTag tag, HolderLookup.Provider registries) Methods in net.minecraft.world.level.saveddata that return types with arguments of type CompoundTagModifier and TypeMethodDescriptionSavedData.Factory.deserializer()
Returns the value of thedeserializer
record component.Methods in net.minecraft.world.level.saveddata with parameters of type CompoundTagModifier and TypeMethodDescriptionabstract CompoundTag
SavedData.save
(CompoundTag tag, HolderLookup.Provider registries) 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 aFactory
record 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 tag, HolderLookup.Provider registries) MapItemSavedData.save
(CompoundTag tag, HolderLookup.Provider registries) Methods in net.minecraft.world.level.saveddata.maps with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic MapFrame
MapFrame.load
(CompoundTag compoundTag) static MapIndex
MapIndex.load
(CompoundTag tag, HolderLookup.Provider registries) static MapItemSavedData
MapItemSavedData.load
(CompoundTag tag, HolderLookup.Provider levelRegistry) MapIndex.save
(CompoundTag tag, HolderLookup.Provider registries) MapItemSavedData.save
(CompoundTag tag, HolderLookup.Provider registries) -
Uses of CompoundTag in net.minecraft.world.level.storage
Fields in net.minecraft.world.level.storage declared as CompoundTagModifier and TypeFieldDescriptionprivate CompoundTag
PrimaryLevelData.customBossEvents
private final CompoundTag
PrimaryLevelData.loadedPlayerTag
Fields in net.minecraft.world.level.storage with type parameters of type CompoundTagModifier and TypeFieldDescriptionprivate final Map
<String, CompoundTag> CommandStorage.Container.storage
Methods in net.minecraft.world.level.storage that return CompoundTagModifier and TypeMethodDescriptionPrimaryLevelData.createTag
(RegistryAccess registries, CompoundTag hostPlayerNBT) WorldData.createTag
(RegistryAccess registries, CompoundTag hostPlayerNBT) CommandStorage.get
(ResourceLocation id) PrimaryLevelData.getCustomBossEvents()
WorldData.getCustomBossEvents()
PrimaryLevelData.getLoadedPlayerTag()
WorldData.getLoadedPlayerTag()
(package private) static CompoundTag
LevelStorageSource.readLevelDataTagRaw
(Path levelPath) DimensionDataStorage.readTagFromDisk
(String filename, DataFixTypes dataFixType, int version) CommandStorage.Container.save
(CompoundTag tag, HolderLookup.Provider registries) 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 registries, CompoundTag hostPlayerNBT) WorldData.createTag
(RegistryAccess registries, CompoundTag hostPlayerNBT) (package private) CommandStorage.Container
CommandStorage.Container.load
(CompoundTag compoundTag) void
CommandStorage.Container.put
(String id, CompoundTag nbt) CommandStorage.Container.save
(CompoundTag tag, HolderLookup.Provider registries) void
LevelStorageSource.LevelStorageAccess.saveDataTag
(RegistryAccess registries, WorldData serverConfiguration, CompoundTag hostPlayerNBT) private void
LevelStorageSource.LevelStorageAccess.saveLevelData
(CompoundTag tag) void
CommandStorage.set
(ResourceLocation id, CompoundTag nbt) void
PrimaryLevelData.setCustomBossEvents
(CompoundTag nbt) void
WorldData.setCustomBossEvents
(CompoundTag nbt) private void
PrimaryLevelData.setTagData
(RegistryAccess registry, CompoundTag nbt, CompoundTag playerNBT) Method parameters in net.minecraft.world.level.storage with type arguments of type CompoundTagModifier and TypeMethodDescriptionprivate void
LevelStorageSource.LevelStorageAccess.modifyLevelDataWithoutDatafix
(Consumer<CompoundTag> modifier) private <T extends SavedData>
TDimensionDataStorage.readSavedData
(BiFunction<CompoundTag, HolderLookup.Provider, T> reader, DataFixTypes dataFixType, String filename) Constructors in net.minecraft.world.level.storage with parameters of type CompoundTagModifierConstructorDescriptionprivate
PrimaryLevelData
(CompoundTag loadedPlayerTag, boolean wasModded, BlockPos spawnPos, float spawnAngle, long gameTime, long dayTime, int version, int clearWeatherTime, int rainTime, boolean raining, int thunderTime, boolean thundering, boolean initialized, boolean difficultyLocked, WorldBorder.Settings worldBorder, int wanderingTraderSpawnDelay, int wanderingTraderSpawnChance, UUID wanderingTraderId, Set<String> knownServerBrands, Set<String> removedFeatureFlags, TimerQueue<MinecraftServer> scheduledEvents, CompoundTag customBossEvents, EndDragonFight.Data endDragonFightData, LevelSettings settings, WorldOptions worldOptions, PrimaryLevelData.SpecialWorldProperty specialWorldProperty, com.mojang.serialization.Lifecycle worldGenSettingsLifecycle) -
Uses of CompoundTag in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as CompoundTagMethods in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> SetCustomDataFunction.setCustomData
(CompoundTag tag) Deprecated.Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type CompoundTagModifierConstructorDescriptionprivate
SetCustomDataFunction
(List<LootItemCondition> conditions, CompoundTag tag) -
Uses of CompoundTag in net.minecraft.world.level.timers
Methods in net.minecraft.world.level.timers that return CompoundTagModifier and TypeMethodDescription<T extends TimerCallback<C>>
CompoundTagTimerCallbacks.serialize
(T callback) private CompoundTag
TimerQueue.storeEvent
(TimerQueue.Event<T> event) 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 C
TimerCallback.Serializer.deserialize
(CompoundTag tag) TimerCallbacks.deserialize
(CompoundTag tag) private void
TimerQueue.loadEvent
(CompoundTag tag) void
FunctionCallback.Serializer.serialize
(CompoundTag p_82182_, FunctionCallback p_82183_) void
FunctionTagCallback.Serializer.serialize
(CompoundTag p_82206_, FunctionTagCallback p_82207_) abstract void
TimerCallback.Serializer.serialize
(CompoundTag tag, C callback) -
Uses of CompoundTag in net.minecraft.world.scores
Methods in net.minecraft.world.scores that return CompoundTagModifier and TypeMethodDescriptionScoreboardSaveData.save
(CompoundTag tag, HolderLookup.Provider registries) Score.write
(HolderLookup.Provider levelRegistry) Methods in net.minecraft.world.scores with parameters of type CompoundTagModifier and TypeMethodDescriptionScoreboardSaveData.load
(CompoundTag tag, HolderLookup.Provider levelRegistry) private void
ScoreboardSaveData.loadDisplaySlots
(CompoundTag compound) static Score
Score.read
(CompoundTag tag, HolderLookup.Provider levelRegistry) ScoreboardSaveData.save
(CompoundTag tag, HolderLookup.Provider registries) private void
ScoreboardSaveData.saveDisplaySlots
(CompoundTag compound) -
Uses of CompoundTag in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks that return CompoundTagModifier and TypeMethodDescriptionprivate static CompoundTag
SavedTick.saveTick
(String id, BlockPos pos, int delay, TickPriority priority) static <T> CompoundTag
SavedTick.saveTick
(ScheduledTick<T> tick, Function<T, String> idGetter, long gameTime) 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 CompoundTag
AttachmentHolder.serializeAttachments
(HolderLookup.Provider provider) Writes the serializable attachments to a tag.Methods in net.neoforged.neoforge.attachment with parameters of type CompoundTagModifier and TypeMethodDescriptionprotected final void
AttachmentHolder.deserializeAttachments
(HolderLookup.Provider provider, CompoundTag tag) Reads serializable attachments from a tag previously created viaAttachmentHolder.serializeAttachments(HolderLookup.Provider)
.void
AttachmentHolder.AsField.deserializeInternal
(HolderLookup.Provider provider, CompoundTag tag) 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 MobEffect
CommonHooks.loadMobEffect
(CompoundTag nbt, String key, @Nullable MobEffect fallback) static void
CommonHooks.readAdditionalLevelSaveData
(CompoundTag rootTag, LevelStorageSource.LevelDirectory levelDirectory) static void
CommonHooks.saveMobEffect
(CompoundTag nbt, String key, MobEffect effect) static void
CommonHooks.writeAdditionalLevelSaveData
(WorldData worldData, CompoundTag levelTag) static void
IOUtilities.writeNbt
(CompoundTag tag, Path path) Behaves much the same asNbtIo.write(CompoundTag, Path)
, but usesIOUtilities.atomicWrite(Path, WriteCallback)
behind the scenes to ensure the data is stored resiliently.static void
IOUtilities.writeNbtCompressed
(CompoundTag tag, Path path) Behaves much the same asNbtIo.writeCompressed(CompoundTag, Path)
, but usesIOUtilities.atomicWrite(Path, WriteCallback)
behind the scenes to ensure the data is stored resiliently. -
Uses of CompoundTag in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return CompoundTagModifier and TypeMethodDescriptionIBlockEntityExtension.getPersistentData()
Gets aCompoundTag
that can be used to store custom data for this block entity.IEntityExtension.getPersistentData()
Returns a NBTTagCompound that can be used to store custom data for this entity.default CompoundTag
IEntityExtension.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 info.Methods in net.neoforged.neoforge.common.extensions with parameters of type CompoundTagModifier and TypeMethodDescriptiondefault void
IEntityExtension.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 void
IBlockEntityExtension.handleUpdateTag
(CompoundTag tag, HolderLookup.Provider lookupProvider) Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag(HolderLookup.Provider)
, is received on the client. -
Uses of CompoundTag in net.neoforged.neoforge.common.util
Fields in net.neoforged.neoforge.common.util declared as CompoundTagMethods in net.neoforged.neoforge.common.util that return CompoundTagModifier and TypeMethodDescriptionprivate static @Nullable CompoundTag
BlockSnapshot.getBlockEntityTag
(LevelAccessor level, BlockPos pos) Checks for a block entity at a given position, and saves it to NBT with full metadata if it exists.@Nullable CompoundTag
BlockSnapshot.getTag()
Returns the recorded block entity NBT data, if one was present.static @Nullable CompoundTag
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 CompoundTagModifierConstructorDescriptionprivate
BlockSnapshot
(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 CompoundTag
ForcedChunkManager.writeBlockPos
(BlockPos blockpos) Methods in net.neoforged.neoforge.common.world.chunk with parameters of type CompoundTagModifier and TypeMethodDescriptionprivate static void
ForcedChunkManager.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 BlockPos
ForcedChunkManager.readBlockPos
(CompoundTag compoundtag) private static void
ForcedChunkManager.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 void
ForcedChunkManager.readModForcedChunks
(CompoundTag nbt, ForcedChunkManager.TicketTracker<BlockPos> blockForcedChunks, ForcedChunkManager.TicketTracker<UUID> entityForcedChunks) Reads the mod forced chunks from the NBT compound.static void
ForcedChunkManager.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 FluidStack
FluidStack.parseOptional
(HolderLookup.Provider lookupProvider, CompoundTag tag) Tries to parse a fluid stack, defaulting toFluidStack.EMPTY
on parsing failure. -
Uses of CompoundTag in net.neoforged.neoforge.fluids.capability.templates
Methods in net.neoforged.neoforge.fluids.capability.templates that return CompoundTagModifier and TypeMethodDescriptionFluidTank.writeToNBT
(HolderLookup.Provider lookupProvider, CompoundTag nbt) Methods in net.neoforged.neoforge.fluids.capability.templates with parameters of type CompoundTagModifier and TypeMethodDescriptionFluidTank.readFromNBT
(HolderLookup.Provider lookupProvider, CompoundTag nbt) FluidTank.writeToNBT
(HolderLookup.Provider lookupProvider, CompoundTag nbt) -
Uses of CompoundTag in net.neoforged.neoforge.items
Methods in net.neoforged.neoforge.items that return CompoundTagMethods in net.neoforged.neoforge.items with parameters of type CompoundTagModifier and TypeMethodDescriptionvoid
ItemStackHandler.deserializeNBT
(HolderLookup.Provider provider, CompoundTag nbt)