Uses of Class
net.minecraft.nbt.CompoundTag
Package
Description
-
Uses of CompoundTag in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionstatic CompoundTag
NbtPredicate.getEntityTagToCompare
(Entity p_57486_) Modifier and TypeMethodDescriptionBlockPredicate.Builder.hasNbt
(CompoundTag p_146725_) ItemPredicate.Builder.hasNbt
(CompoundTag p_45076_) -
Uses of CompoundTag in net.minecraft.client
Modifier and TypeMethodDescriptionprivate void
KeyboardHandler.copyCreateBlockCommand
(BlockState p_90900_, BlockPos p_90901_, CompoundTag p_90902_) private void
KeyboardHandler.copyCreateEntityCommand
(ResourceLocation p_90923_, Vec3 p_90924_, CompoundTag p_90925_) private CompoundTag
Options.dataFix
(CompoundTag p_92165_) boolean
DebugQueryHandler.handleResponse
(int p_90706_, CompoundTag p_90707_) Modifier and TypeMethodDescriptionvoid
DebugQueryHandler.queryBlockEntityTag
(BlockPos p_90709_, Consumer<CompoundTag> p_90710_) void
DebugQueryHandler.queryEntityTag
(int p_90703_, Consumer<CompoundTag> p_90704_) private int
DebugQueryHandler.startTransaction
(Consumer<CompoundTag> p_90712_) -
Uses of CompoundTag in net.minecraft.client.gui.screens.inventory
Modifier and TypeMethodDescriptionBookViewScreen.loadPages
(CompoundTag p_169695_) static void
BookViewScreen.loadPages
(CompoundTag p_169697_, Consumer<String> p_169698_) -
Uses of CompoundTag in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
ClientLevel.createFireworks
(double p_104585_, double p_104586_, double p_104587_, double p_104588_, double p_104589_, double p_104590_, CompoundTag p_104591_) static ServerData
ServerData.read
(CompoundTag p_105386_) ClientChunkCache.replaceWithPacketData
(int p_194117_, int p_194118_, FriendlyByteBuf p_194119_, CompoundTag p_194120_, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> p_194121_) -
Uses of CompoundTag in net.minecraft.client.particle
ModifierConstructorDescriptionStarter
(ClientLevel p_106757_, double p_106758_, double p_106759_, double p_106760_, double p_106761_, double p_106762_, double p_106763_, ParticleEngine p_106764_, CompoundTag p_106765_) -
Uses of CompoundTag in net.minecraft.client.server
-
Uses of CompoundTag in net.minecraft.commands.arguments
Modifier and TypeFieldDescriptionprivate final CompoundTag
NbtPathArgument.MatchElementNode.pattern
private final CompoundTag
NbtPathArgument.MatchObjectNode.pattern
Modifier and TypeMethodDescriptionstatic <S> CompoundTag
CompoundTagArgument.getCompoundTag
(com.mojang.brigadier.context.CommandContext<S> p_87661_, String p_87662_) CompoundTagArgument.parse
(com.mojang.brigadier.StringReader p_87659_) Modifier and TypeMethodDescriptionNbtPathArgument.createTagPredicate
(CompoundTag p_99511_) int
NbtPathArgument.NbtPath.insert
(int p_263397_, CompoundTag p_263348_, List<Tag> p_263419_) ModifierConstructorDescriptionMatchElementNode
(CompoundTag p_99566_) MatchObjectNode
(String p_99588_, CompoundTag p_99589_) MatchRootObjectNode
(CompoundTag p_99605_) -
Uses of CompoundTag in net.minecraft.commands.arguments.blocks
Modifier 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
Modifier and TypeMethodDescriptionBlockStateParser.BlockResult.nbt()
Returns the value of thenbt
record component.BlockStateParser.TagResult.nbt()
Returns the value of thenbt
record component.ModifierConstructorDescriptionBlockInput
(BlockState p_114666_, Set<Property<?>> p_114667_, CompoundTag p_114668_) BlockPredicate
(BlockState p_115595_, Set<Property<?>> p_115596_, CompoundTag p_115597_) BlockResult
(BlockState blockState, Map<Property<?>, Comparable<?>> properties, CompoundTag nbt) Creates an instance of aBlockResult
record class.(package private)
TagPredicate
(HolderSet<Block> p_234637_, Map<String, String> p_234638_, CompoundTag p_234639_) Creates an instance of aTagResult
record class. -
Uses of CompoundTag in net.minecraft.commands.arguments.item
Modifier and TypeFieldDescriptionprivate final CompoundTag
ItemParser.ItemResult.nbt
The field for thenbt
record component.private CompoundTag
ItemParser.nbt
private final CompoundTag
ItemParser.TagResult.nbt
The field for thenbt
record component.private final CompoundTag
ItemInput.tag
Modifier and TypeMethodDescriptionItemParser.ItemResult.nbt()
Returns the value of thenbt
record component.ItemParser.TagResult.nbt()
Returns the value of thenbt
record component.Modifier and TypeMethodDescriptionprivate static ItemPredicateArgument.Result
ItemPredicateArgument.createResult
(Predicate<Holder<Item>> p_235366_, CompoundTag p_235367_) ModifierConstructorDescriptionItemInput
(Holder<Item> p_235282_, CompoundTag p_235283_) ItemResult
(Holder<Item> item, CompoundTag nbt) Creates an instance of aItemResult
record class.TagResult
(HolderSet<Item> tag, CompoundTag nbt) Creates an instance of aTagResult
record class. -
Uses of CompoundTag in net.minecraft.data.structures
Modifier and TypeMethodDescriptionSnbtToNbt.Filter.apply
(String p_126480_, CompoundTag p_126481_) StructureUpdater.apply
(String p_126503_, CompoundTag p_126504_) private CompoundTag
SnbtToNbt.applyFilters
(String p_126461_, CompoundTag p_126462_) static CompoundTag
StructureUpdater.update
(String p_176823_, CompoundTag p_176824_) Modifier and TypeMethodDescriptionSnbtToNbt.Filter.apply
(String p_126480_, CompoundTag p_126481_) StructureUpdater.apply
(String p_126503_, CompoundTag p_126504_) private CompoundTag
SnbtToNbt.applyFilters
(String p_126461_, CompoundTag p_126462_) static CompoundTag
StructureUpdater.update
(String p_176823_, CompoundTag p_176824_) -
Uses of CompoundTag in net.minecraft.gametest.framework
Modifier and TypeMethodDescriptionprivate static CompoundTag
StructureUtils.tryLoadStructure
(Path p_127903_) -
Uses of CompoundTag in net.minecraft.nbt
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundTag>
CompoundTag.CODEC
static final TagType<CompoundTag>
CompoundTag.TYPE
Modifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.addCurrentDataVersion
(CompoundTag p_265050_) static CompoundTag
NbtUtils.addDataVersion
(CompoundTag p_265534_, int p_265686_) protected CompoundTag
NbtOps.NbtRecordBuilder.append
(String p_129186_, Tag p_129187_, CompoundTag p_129188_) CompoundTag.copy()
CompoundTag.getCompound
(String p_128470_) ListTag.getCompound
(int p_128729_) protected CompoundTag
NbtOps.NbtRecordBuilder.initBuilder()
CompoundTag.merge
(CompoundTag p_128392_) (package private) static CompoundTag
NbtUtils.packStructureTemplate
(CompoundTag p_178068_) static CompoundTag
static CompoundTag
static CompoundTag
NbtIo.read
(DataInput p_128935_, NbtAccounter p_128936_) static CompoundTag
static CompoundTag
NbtIo.readCompressed
(File p_128938_) static CompoundTag
NbtIo.readCompressed
(InputStream p_128940_) (package private) CompoundTag
TagParser.readSingleStruct()
TagParser.readStruct()
static CompoundTag
NbtUtils.snbtToStructure
(String p_178025_) (package private) static CompoundTag
NbtUtils.unpackBlockState
(String p_178054_) (package private) static CompoundTag
NbtUtils.unpackStructureTemplate
(CompoundTag p_178072_) private static CompoundTag
NbtOps.HeterogenousListCollector.wrapElement
(Tag p_251263_) static CompoundTag
NbtUtils.writeBlockPos
(BlockPos p_129225_) static CompoundTag
NbtUtils.writeBlockState
(BlockState p_129203_) static CompoundTag
NbtUtils.writeFluidState
(FluidState p_178023_) static CompoundTag
NbtUtils.writeGameProfile
(CompoundTag p_129231_, com.mojang.authlib.GameProfile p_129232_) Modifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.addCurrentDataVersion
(CompoundTag p_265050_) static CompoundTag
NbtUtils.addDataVersion
(CompoundTag p_265534_, int p_265686_) protected CompoundTag
NbtOps.NbtRecordBuilder.append
(String p_129186_, Tag p_129187_, CompoundTag p_129188_) protected com.mojang.serialization.DataResult<Tag>
NbtOps.NbtRecordBuilder.build
(CompoundTag p_129190_, Tag p_129191_) static int
NbtUtils.getDataVersion
(CompoundTag p_265397_, int p_265399_) SnbtPrinterTagVisitor.getKeys
(CompoundTag p_178147_) private static boolean
NbtOps.HeterogenousListCollector.isWrapper
(CompoundTag p_252073_) CompoundTag.merge
(CompoundTag p_128392_) (package private) static String
NbtUtils.packBlockState
(CompoundTag p_178076_) (package private) static CompoundTag
NbtUtils.packStructureTemplate
(CompoundTag p_178068_) static BlockPos
NbtUtils.readBlockPos
(CompoundTag p_129240_) static BlockState
NbtUtils.readBlockState
(HolderGetter<Block> p_256363_, CompoundTag p_250775_) static com.mojang.authlib.GameProfile
NbtUtils.readGameProfile
(CompoundTag p_129229_) private static <S extends StateHolder<?,
S>, T extends Comparable<T>>
SNbtUtils.setValueHelper
(S p_129205_, Property<T> p_129206_, String p_129207_, CompoundTag p_129208_, CompoundTag p_129209_) static String
NbtUtils.structureToSnbt
(CompoundTag p_178064_) private static Tag
NbtOps.tryUnwrap
(CompoundTag p_251041_) (package private) static CompoundTag
NbtUtils.unpackStructureTemplate
(CompoundTag p_178072_) void
SnbtPrinterTagVisitor.visitCompound
(CompoundTag p_178120_) void
StringTagVisitor.visitCompound
(CompoundTag p_178166_) void
TagVisitor.visitCompound
(CompoundTag p_178218_) void
TextComponentTagVisitor.visitCompound
(CompoundTag p_178260_) static void
NbtIo.write
(CompoundTag p_128942_, DataOutput p_128943_) static void
NbtIo.write
(CompoundTag p_128956_, File p_128957_) static void
NbtIo.writeCompressed
(CompoundTag p_128945_, File p_128946_) static void
NbtIo.writeCompressed
(CompoundTag p_128948_, OutputStream p_128949_) static CompoundTag
NbtUtils.writeGameProfile
(CompoundTag p_129231_, com.mojang.authlib.GameProfile p_129232_) -
Uses of CompoundTag in net.minecraft.network
Modifier and TypeMethodDescriptionFriendlyByteBuf.readAnySizeNbt()
FriendlyByteBuf.readNbt()
FriendlyByteBuf.readNbt
(NbtAccounter p_130082_) -
Uses of CompoundTag in net.minecraft.network.chat
ModifierConstructorDescription(package private)
ItemStackInfo
(Item p_130893_, int p_130894_, CompoundTag p_130895_) -
Uses of CompoundTag in net.minecraft.network.chat.contents
Modifier and TypeMethodDescriptionBlockDataSource.getData
(CommandSourceStack p_237323_) DataSource.getData
(CommandSourceStack p_237326_) EntityDataSource.getData
(CommandSourceStack p_237341_) StorageDataSource.getData
(CommandSourceStack p_237491_) -
Uses of CompoundTag in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final CompoundTag
ClientboundLevelChunkPacketData.heightmaps
private final CompoundTag
ClientboundBlockEntityDataPacket.tag
(package private) final CompoundTag
ClientboundLevelChunkPacketData.BlockEntityInfo.tag
private final CompoundTag
ClientboundTagQueryPacket.tag
Modifier and TypeMethodDescriptionClientboundLevelChunkPacketData.getHeightmaps()
ClientboundBlockEntityDataPacket.getTag()
ClientboundTagQueryPacket.getTag()
Modifier and TypeMethodDescriptionvoid
ClientboundLevelChunkPacketData.BlockEntityTagOutput.accept
(BlockPos p_195696_, BlockEntityType<?> p_195697_, CompoundTag p_195698_) Modifier and TypeMethodDescriptionClientboundBlockEntityDataPacket.create
(BlockEntity p_195643_, Function<BlockEntity, CompoundTag> p_195644_) ModifierConstructorDescriptionprivate
BlockEntityInfo
(int p_195685_, int p_195686_, BlockEntityType<?> p_195687_, CompoundTag p_195688_) private
ClientboundBlockEntityDataPacket
(BlockPos p_195637_, BlockEntityType<?> p_195638_, CompoundTag p_195639_) ClientboundTagQueryPacket
(int p_133497_, CompoundTag p_133498_) -
Uses of CompoundTag in net.minecraft.network.syncher
Modifier and TypeFieldDescriptionstatic final EntityDataSerializer<CompoundTag>
EntityDataSerializers.COMPOUND_TAG
-
Uses of CompoundTag in net.minecraft.server
-
Uses of CompoundTag in net.minecraft.server.bossevents
Modifier and TypeMethodDescriptionstatic CustomBossEvent
CustomBossEvent.load
(CompoundTag p_136273_, ResourceLocation p_136274_) void
CustomBossEvents.load
(CompoundTag p_136296_) -
Uses of CompoundTag in net.minecraft.server.commands
Modifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack p_270582_, Holder.Reference<EntityType<?>> p_270277_, Vec3 p_270366_, CompoundTag p_270197_, boolean p_270947_) private static int
SummonCommand.spawnEntity
(CommandSourceStack p_249752_, Holder.Reference<EntityType<?>> p_251948_, Vec3 p_251429_, CompoundTag p_250568_, boolean p_250229_) ModifierConstructorDescriptionCloneBlockInfo
(BlockPos p_136783_, BlockState p_136784_, CompoundTag p_136785_) -
Uses of CompoundTag in net.minecraft.server.commands.data
Modifier and TypeMethodDescriptionBlockDataAccessor.getData()
DataAccessor.getData()
EntityDataAccessor.getData()
StorageDataAccessor.getData()
Modifier and TypeMethodDescriptionprivate static int
DataCommands.mergeData
(CommandSourceStack p_139395_, DataAccessor p_139396_, CompoundTag p_139397_) int
DataCommands.DataManipulator.modify
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139496_, CompoundTag p_139497_, NbtPathArgument.NbtPath p_139498_, List<Tag> p_139499_) void
BlockDataAccessor.setData
(CompoundTag p_139307_) void
DataAccessor.setData
(CompoundTag p_139323_) void
EntityDataAccessor.setData
(CompoundTag p_139519_) void
StorageDataAccessor.setData
(CompoundTag p_139556_) -
Uses of CompoundTag in net.minecraft.server.level
Modifier and TypeMethodDescriptionprivate CompoundTag
ChunkMap.upgradeChunkTag
(CompoundTag p_214948_) Modifier and TypeMethodDescriptionvoid
ServerPlayer.addAdditionalSaveData
(CompoundTag p_9197_) private static boolean
ChunkMap.isChunkDataValid
(CompoundTag p_214941_) void
ServerPlayer.loadGameTypes
(CompoundTag p_143428_) void
ServerPlayer.readAdditionalSaveData
(CompoundTag p_9131_) private static GameType
ServerPlayer.readPlayerMode
(CompoundTag p_143414_, String p_143415_) private void
ServerPlayer.storeGameTypes
(CompoundTag p_143431_) private CompoundTag
ChunkMap.upgradeChunkTag
(CompoundTag p_214948_) Modifier and TypeMethodDescriptionprivate static void
ChunkMap.postLoadProtoChunk
(ServerLevel p_143065_, List<CompoundTag> p_143066_) -
Uses of CompoundTag in net.minecraft.server.players
Modifier and TypeMethodDescriptionPlayerList.getSingleplayerData()
PlayerList.load
(ServerPlayer p_11225_) -
Uses of CompoundTag in net.minecraft.stats
Modifier and TypeMethodDescriptionprivate static CompoundTag
ServerStatsCounter.fromJson
(com.google.gson.JsonObject p_12831_) ServerRecipeBook.toNbt()
Modifier and TypeMethodDescriptionvoid
ServerRecipeBook.fromNbt
(CompoundTag p_12795_, RecipeManager p_12796_) static RecipeBookSettings
RecipeBookSettings.read
(CompoundTag p_12742_) void
RecipeBookSettings.write
(CompoundTag p_12760_) -
Uses of CompoundTag in net.minecraft.util.datafix
Modifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer p_265128_, CompoundTag p_265422_, int p_265549_, int p_265304_) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer p_265583_, CompoundTag p_265401_, int p_265111_) Modifier and TypeMethodDescriptionDataFixTypes.update
(com.mojang.datafixers.DataFixer p_265128_, CompoundTag p_265422_, int p_265549_, int p_265304_) DataFixTypes.updateToCurrentVersion
(com.mojang.datafixers.DataFixer p_265583_, CompoundTag p_265401_, int p_265111_) -
Uses of CompoundTag in net.minecraft.world
Modifier and TypeMethodDescriptionstatic CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, boolean p_18979_) Modifier and TypeMethodDescriptionvoid
LockCode.addToTag
(CompoundTag p_19110_) static LockCode
LockCode.fromTag
(CompoundTag p_19112_) static void
ContainerHelper.loadAllItems
(CompoundTag p_18981_, NonNullList<ItemStack> p_18982_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, boolean p_18979_) -
Uses of CompoundTag in net.minecraft.world.effect
Modifier and TypeMethodDescriptionstatic MobEffectInstance
MobEffectInstance.load
(CompoundTag p_19561_) private static MobEffectInstance
MobEffectInstance.loadSpecifiedEffect
(MobEffect p_19546_, CompoundTag p_19547_) private static MobEffectInstance
MobEffectInstance.readCurativeItems
(MobEffectInstance effect, CompoundTag nbt) MobEffectInstance.save
(CompoundTag p_19556_) private void
MobEffectInstance.writeDetailsTo
(CompoundTag p_19568_) -
Uses of CompoundTag in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate CompoundTag
Marker.data
private CompoundTag
Mob.leashInfoTag
private CompoundTag
Entity.persistentData
Modifier and TypeMethodDescriptionEntity.getPersistentData()
Entity.saveWithoutId
(CompoundTag p_20241_) Modifier and TypeMethodDescriptionvoid
AgeableMob.addAdditionalSaveData
(CompoundTag p_146761_) protected void
AreaEffectCloud.addAdditionalSaveData
(CompoundTag p_19737_) protected void
Display.addAdditionalSaveData
(CompoundTag p_270779_) protected void
Display.BlockDisplay.addAdditionalSaveData
(CompoundTag p_270469_) protected void
Display.ItemDisplay.addAdditionalSaveData
(CompoundTag p_270669_) protected void
Display.TextDisplay.addAdditionalSaveData
(CompoundTag p_270268_) protected abstract void
Entity.addAdditionalSaveData
(CompoundTag p_20139_) void
ExperienceOrb.addAdditionalSaveData
(CompoundTag p_20796_) void
GlowSquid.addAdditionalSaveData
(CompoundTag p_147122_) protected void
Interaction.addAdditionalSaveData
(CompoundTag p_273772_) void
ItemBasedSteering.addAdditionalSaveData
(CompoundTag p_20848_) protected void
LightningBolt.addAdditionalSaveData
(CompoundTag p_20877_) void
LivingEntity.addAdditionalSaveData
(CompoundTag p_21145_) protected void
Marker.addAdditionalSaveData
(CompoundTag p_147257_) void
Mob.addAdditionalSaveData
(CompoundTag p_21484_) void
TamableAnimal.addAdditionalSaveData
(CompoundTag p_21819_) default void
NeutralMob.addPersistentAngerSaveData
(CompoundTag p_21679_) static Optional<EntityType<?>>
EntityType.by
(CompoundTag p_20638_) EntityType.create
(CompoundTag p_20643_, Level p_20644_) EntityType.create
(ServerLevel p_262637_, CompoundTag p_262687_, Consumer<T> p_262629_, BlockPos p_262595_, MobSpawnType p_262666_, boolean p_262685_, boolean p_262588_) AgeableMob.finalizeSpawn
(ServerLevelAccessor p_146746_, DifficultyInstance p_146747_, MobSpawnType p_146748_, SpawnGroupData p_146749_, CompoundTag p_146750_) Mob.finalizeSpawn
(ServerLevelAccessor p_21434_, DifficultyInstance p_21435_, MobSpawnType p_21436_, SpawnGroupData p_21437_, CompoundTag p_21438_) Deprecated.void
Entity.load
(CompoundTag p_20259_) static Entity
EntityType.loadEntityRecursive
(CompoundTag p_20646_, Level p_20647_, Function<Entity, Entity> p_20648_) private static byte
Display.TextDisplay.loadFlag
(byte p_270219_, CompoundTag p_270994_, String p_270958_, byte p_270701_) EntityType.loadStaticEntity
(CompoundTag p_20670_, Level p_20671_) void
AgeableMob.readAdditionalSaveData
(CompoundTag p_146752_) protected void
AreaEffectCloud.readAdditionalSaveData
(CompoundTag p_19727_) protected void
Display.BlockDisplay.readAdditionalSaveData
(CompoundTag p_270139_) protected void
Display.ItemDisplay.readAdditionalSaveData
(CompoundTag p_270713_) protected void
Display.readAdditionalSaveData
(CompoundTag p_270854_) protected void
Display.TextDisplay.readAdditionalSaveData
(CompoundTag p_270714_) protected abstract void
Entity.readAdditionalSaveData
(CompoundTag p_20052_) void
ExperienceOrb.readAdditionalSaveData
(CompoundTag p_20788_) void
GlowSquid.readAdditionalSaveData
(CompoundTag p_147117_) protected void
Interaction.readAdditionalSaveData
(CompoundTag p_272702_) void
ItemBasedSteering.readAdditionalSaveData
(CompoundTag p_20853_) protected void
LightningBolt.readAdditionalSaveData
(CompoundTag p_20873_) void
LivingEntity.readAdditionalSaveData
(CompoundTag p_21096_) protected void
Marker.readAdditionalSaveData
(CompoundTag p_147254_) void
Mob.readAdditionalSaveData
(CompoundTag p_21450_) void
TamableAnimal.readAdditionalSaveData
(CompoundTag p_21815_) default void
NeutralMob.readPersistentAngerSaveData
(Level p_147286_, CompoundTag p_147287_) boolean
Entity.save
(CompoundTag p_20224_) boolean
Entity.saveAsPassenger
(CompoundTag p_20087_) Entity.saveWithoutId
(CompoundTag p_20241_) EntityType.spawn
(ServerLevel p_262704_, CompoundTag p_262603_, Consumer<T> p_262621_, BlockPos p_262672_, MobSpawnType p_262644_, boolean p_262690_, boolean p_262590_) private static void
Display.TextDisplay.storeFlag
(byte p_270879_, CompoundTag p_270177_, String p_270294_, byte p_270853_) static void
EntityType.updateCustomEntityTag
(Level p_20621_, Player p_20622_, Entity p_20623_, CompoundTag p_20624_) -
Uses of CompoundTag in net.minecraft.world.entity.ai.attributes
Modifier and TypeMethodDescriptionvoid
AttributeInstance.load
(CompoundTag p_22114_) static AttributeModifier
AttributeModifier.load
(CompoundTag p_22213_) -
Uses of CompoundTag in net.minecraft.world.entity.ambient
Modifier and TypeMethodDescriptionvoid
Bat.addAdditionalSaveData
(CompoundTag p_27443_) void
Bat.readAdditionalSaveData
(CompoundTag p_27427_) -
Uses of CompoundTag in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionvoid
AbstractFish.addAdditionalSaveData
(CompoundTag p_27485_) void
Animal.addAdditionalSaveData
(CompoundTag p_27587_) void
Bee.addAdditionalSaveData
(CompoundTag p_27823_) void
Cat.addAdditionalSaveData
(CompoundTag p_28156_) void
Chicken.addAdditionalSaveData
(CompoundTag p_28257_) void
Dolphin.addAdditionalSaveData
(CompoundTag p_28364_) void
Fox.addAdditionalSaveData
(CompoundTag p_28518_) void
IronGolem.addAdditionalSaveData
(CompoundTag p_28867_) void
MushroomCow.addAdditionalSaveData
(CompoundTag p_28944_) void
Ocelot.addAdditionalSaveData
(CompoundTag p_29024_) void
Panda.addAdditionalSaveData
(CompoundTag p_29129_) void
Parrot.addAdditionalSaveData
(CompoundTag p_29422_) void
Pig.addAdditionalSaveData
(CompoundTag p_29495_) void
PolarBear.addAdditionalSaveData
(CompoundTag p_29548_) void
Pufferfish.addAdditionalSaveData
(CompoundTag p_29624_) void
Rabbit.addAdditionalSaveData
(CompoundTag p_29697_) void
Sheep.addAdditionalSaveData
(CompoundTag p_29864_) void
SnowGolem.addAdditionalSaveData
(CompoundTag p_29923_) void
TropicalFish.addAdditionalSaveData
(CompoundTag p_30033_) void
Turtle.addAdditionalSaveData
(CompoundTag p_30176_) void
Wolf.addAdditionalSaveData
(CompoundTag p_30418_) AbstractSchoolingFish.finalizeSpawn
(ServerLevelAccessor p_27528_, DifficultyInstance p_27529_, MobSpawnType p_27530_, SpawnGroupData p_27531_, CompoundTag p_27532_) Cat.finalizeSpawn
(ServerLevelAccessor p_28134_, DifficultyInstance p_28135_, MobSpawnType p_28136_, SpawnGroupData p_28137_, CompoundTag p_28138_) Dolphin.finalizeSpawn
(ServerLevelAccessor p_28332_, DifficultyInstance p_28333_, MobSpawnType p_28334_, SpawnGroupData p_28335_, CompoundTag p_28336_) Fox.finalizeSpawn
(ServerLevelAccessor p_28487_, DifficultyInstance p_28488_, MobSpawnType p_28489_, SpawnGroupData p_28490_, CompoundTag p_28491_) Ocelot.finalizeSpawn
(ServerLevelAccessor p_29007_, DifficultyInstance p_29008_, MobSpawnType p_29009_, SpawnGroupData p_29010_, CompoundTag p_29011_) Panda.finalizeSpawn
(ServerLevelAccessor p_29109_, DifficultyInstance p_29110_, MobSpawnType p_29111_, SpawnGroupData p_29112_, CompoundTag p_29113_) Parrot.finalizeSpawn
(ServerLevelAccessor p_29389_, DifficultyInstance p_29390_, MobSpawnType p_29391_, SpawnGroupData p_29392_, CompoundTag p_29393_) PolarBear.finalizeSpawn
(ServerLevelAccessor p_29533_, DifficultyInstance p_29534_, MobSpawnType p_29535_, SpawnGroupData p_29536_, CompoundTag p_29537_) Rabbit.finalizeSpawn
(ServerLevelAccessor p_29678_, DifficultyInstance p_29679_, MobSpawnType p_29680_, SpawnGroupData p_29681_, CompoundTag p_29682_) Sheep.finalizeSpawn
(ServerLevelAccessor p_29835_, DifficultyInstance p_29836_, MobSpawnType p_29837_, SpawnGroupData p_29838_, CompoundTag p_29839_) TropicalFish.finalizeSpawn
(ServerLevelAccessor p_30023_, DifficultyInstance p_30024_, MobSpawnType p_30025_, SpawnGroupData p_30026_, CompoundTag p_30027_) Turtle.finalizeSpawn
(ServerLevelAccessor p_30153_, DifficultyInstance p_30154_, MobSpawnType p_30155_, SpawnGroupData p_30156_, CompoundTag p_30157_) static void
Bucketable.loadDefaultDataFromBucketTag
(Mob p_148826_, CompoundTag p_148827_) Deprecated.void
AbstractFish.loadFromBucketTag
(CompoundTag p_148708_) void
Bucketable.loadFromBucketTag
(CompoundTag p_148832_) void
AbstractFish.readAdditionalSaveData
(CompoundTag p_27465_) void
Animal.readAdditionalSaveData
(CompoundTag p_27576_) void
Bee.readAdditionalSaveData
(CompoundTag p_27793_) void
Cat.readAdditionalSaveData
(CompoundTag p_28142_) void
Chicken.readAdditionalSaveData
(CompoundTag p_28243_) void
Dolphin.readAdditionalSaveData
(CompoundTag p_28340_) void
Fox.readAdditionalSaveData
(CompoundTag p_28493_) void
IronGolem.readAdditionalSaveData
(CompoundTag p_28857_) void
MushroomCow.readAdditionalSaveData
(CompoundTag p_28936_) void
Ocelot.readAdditionalSaveData
(CompoundTag p_29013_) void
Panda.readAdditionalSaveData
(CompoundTag p_29115_) void
Parrot.readAdditionalSaveData
(CompoundTag p_29402_) void
Pig.readAdditionalSaveData
(CompoundTag p_29478_) void
PolarBear.readAdditionalSaveData
(CompoundTag p_29541_) void
Pufferfish.readAdditionalSaveData
(CompoundTag p_29613_) void
Rabbit.readAdditionalSaveData
(CompoundTag p_29684_) void
Sheep.readAdditionalSaveData
(CompoundTag p_29845_) void
SnowGolem.readAdditionalSaveData
(CompoundTag p_29915_) void
TropicalFish.readAdditionalSaveData
(CompoundTag p_30029_) void
Turtle.readAdditionalSaveData
(CompoundTag p_30162_) void
Wolf.readAdditionalSaveData
(CompoundTag p_30402_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionvoid
Allay.addAdditionalSaveData
(CompoundTag p_218367_) void
Allay.readAdditionalSaveData
(CompoundTag p_218350_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.axolotl
Modifier and TypeMethodDescriptionvoid
Axolotl.addAdditionalSaveData
(CompoundTag p_149158_) Axolotl.finalizeSpawn
(ServerLevelAccessor p_149132_, DifficultyInstance p_149133_, MobSpawnType p_149134_, SpawnGroupData p_149135_, CompoundTag p_149136_) void
Axolotl.loadFromBucketTag
(CompoundTag p_149163_) void
Axolotl.readAdditionalSaveData
(CompoundTag p_149145_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.camel
Modifier and TypeMethodDescriptionvoid
Camel.addAdditionalSaveData
(CompoundTag p_250330_) Camel.finalizeSpawn
(ServerLevelAccessor p_249190_, DifficultyInstance p_251264_, MobSpawnType p_250254_, SpawnGroupData p_249259_, CompoundTag p_251838_) void
Camel.readAdditionalSaveData
(CompoundTag p_250781_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.frog
Modifier and TypeMethodDescriptionvoid
Frog.addAdditionalSaveData
(CompoundTag p_218508_) void
Tadpole.addAdditionalSaveData
(CompoundTag p_218709_) Frog.finalizeSpawn
(ServerLevelAccessor p_218488_, DifficultyInstance p_218489_, MobSpawnType p_218490_, SpawnGroupData p_218491_, CompoundTag p_218492_) void
Tadpole.loadFromBucketTag
(CompoundTag p_218715_) void
Frog.readAdditionalSaveData
(CompoundTag p_218496_) void
Tadpole.readAdditionalSaveData
(CompoundTag p_218698_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.goat
Modifier and TypeMethodDescriptionvoid
Goat.addAdditionalSaveData
(CompoundTag p_149385_) Goat.finalizeSpawn
(ServerLevelAccessor p_149365_, DifficultyInstance p_149366_, MobSpawnType p_149367_, SpawnGroupData p_149368_, CompoundTag p_149369_) void
Goat.readAdditionalSaveData
(CompoundTag p_149373_) -
Uses of CompoundTag in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionvoid
AbstractChestedHorse.addAdditionalSaveData
(CompoundTag p_30496_) void
AbstractHorse.addAdditionalSaveData
(CompoundTag p_30589_) void
Horse.addAdditionalSaveData
(CompoundTag p_30716_) void
Llama.addAdditionalSaveData
(CompoundTag p_30793_) void
SkeletonHorse.addAdditionalSaveData
(CompoundTag p_30907_) void
TraderLlama.addAdditionalSaveData
(CompoundTag p_30950_) AbstractHorse.finalizeSpawn
(ServerLevelAccessor p_30555_, DifficultyInstance p_30556_, MobSpawnType p_30557_, SpawnGroupData p_30558_, CompoundTag p_30559_) Horse.finalizeSpawn
(ServerLevelAccessor p_30703_, DifficultyInstance p_30704_, MobSpawnType p_30705_, SpawnGroupData p_30706_, CompoundTag p_30707_) Llama.finalizeSpawn
(ServerLevelAccessor p_30774_, DifficultyInstance p_30775_, MobSpawnType p_30776_, SpawnGroupData p_30777_, CompoundTag p_30778_) TraderLlama.finalizeSpawn
(ServerLevelAccessor p_30942_, DifficultyInstance p_30943_, MobSpawnType p_30944_, SpawnGroupData p_30945_, CompoundTag p_30946_) void
AbstractChestedHorse.readAdditionalSaveData
(CompoundTag p_30488_) void
AbstractHorse.readAdditionalSaveData
(CompoundTag p_30565_) void
Horse.readAdditionalSaveData
(CompoundTag p_30711_) void
Llama.readAdditionalSaveData
(CompoundTag p_30780_) void
SkeletonHorse.readAdditionalSaveData
(CompoundTag p_30901_) void
TraderLlama.readAdditionalSaveData
(CompoundTag p_30948_) -
Uses of CompoundTag in net.minecraft.world.entity.boss
Modifier and TypeMethodDescriptionprotected void
EnderDragonPart.addAdditionalSaveData
(CompoundTag p_31028_) protected void
EnderDragonPart.readAdditionalSaveData
(CompoundTag p_31025_) -
Uses of CompoundTag in net.minecraft.world.entity.boss.enderdragon
Modifier and TypeMethodDescriptionprotected void
EndCrystal.addAdditionalSaveData
(CompoundTag p_31062_) void
EnderDragon.addAdditionalSaveData
(CompoundTag p_31144_) protected void
EndCrystal.readAdditionalSaveData
(CompoundTag p_31055_) void
EnderDragon.readAdditionalSaveData
(CompoundTag p_31134_) -
Uses of CompoundTag in net.minecraft.world.entity.boss.wither
Modifier and TypeMethodDescriptionvoid
WitherBoss.addAdditionalSaveData
(CompoundTag p_31485_) void
WitherBoss.readAdditionalSaveData
(CompoundTag p_31474_) -
Uses of CompoundTag in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionvoid
ArmorStand.addAdditionalSaveData
(CompoundTag p_31619_) void
HangingEntity.addAdditionalSaveData
(CompoundTag p_31736_) void
ItemFrame.addAdditionalSaveData
(CompoundTag p_31808_) void
LeashFenceKnotEntity.addAdditionalSaveData
(CompoundTag p_31852_) void
Painting.addAdditionalSaveData
(CompoundTag p_31935_) static Optional<Holder<PaintingVariant>>
Painting.loadVariant
(CompoundTag p_271010_) void
ArmorStand.readAdditionalSaveData
(CompoundTag p_31600_) void
HangingEntity.readAdditionalSaveData
(CompoundTag p_31730_) void
ItemFrame.readAdditionalSaveData
(CompoundTag p_31795_) void
LeashFenceKnotEntity.readAdditionalSaveData
(CompoundTag p_31850_) void
Painting.readAdditionalSaveData
(CompoundTag p_31927_) private void
ArmorStand.readPose
(CompoundTag p_31658_) static void
Painting.storeVariant
(CompoundTag p_270928_, Holder<PaintingVariant> p_270667_) -
Uses of CompoundTag in net.minecraft.world.entity.item
Modifier and TypeMethodDescriptionprotected void
FallingBlockEntity.addAdditionalSaveData
(CompoundTag p_31973_) void
ItemEntity.addAdditionalSaveData
(CompoundTag p_32050_) protected void
PrimedTnt.addAdditionalSaveData
(CompoundTag p_32097_) protected void
FallingBlockEntity.readAdditionalSaveData
(CompoundTag p_31964_) void
ItemEntity.readAdditionalSaveData
(CompoundTag p_32034_) protected void
PrimedTnt.readAdditionalSaveData
(CompoundTag p_32091_) -
Uses of CompoundTag in net.minecraft.world.entity.monster
Modifier and TypeMethodDescriptionvoid
Creeper.addAdditionalSaveData
(CompoundTag p_32304_) void
EnderMan.addAdditionalSaveData
(CompoundTag p_32520_) void
Endermite.addAdditionalSaveData
(CompoundTag p_32610_) void
Evoker.addAdditionalSaveData
(CompoundTag p_32646_) void
Ghast.addAdditionalSaveData
(CompoundTag p_32744_) void
PatrollingMonster.addAdditionalSaveData
(CompoundTag p_33063_) void
Phantom.addAdditionalSaveData
(CompoundTag p_33141_) void
Pillager.addAdditionalSaveData
(CompoundTag p_33300_) void
Ravager.addAdditionalSaveData
(CompoundTag p_33353_) void
Shulker.addAdditionalSaveData
(CompoundTag p_33443_) void
Skeleton.addAdditionalSaveData
(CompoundTag p_149836_) void
Slime.addAdditionalSaveData
(CompoundTag p_33619_) void
SpellcasterIllager.addAdditionalSaveData
(CompoundTag p_33734_) void
Strider.addAdditionalSaveData
(CompoundTag p_33918_) void
Vex.addAdditionalSaveData
(CompoundTag p_34015_) void
Vindicator.addAdditionalSaveData
(CompoundTag p_34100_) void
Zoglin.addAdditionalSaveData
(CompoundTag p_34234_) void
Zombie.addAdditionalSaveData
(CompoundTag p_34319_) void
ZombieVillager.addAdditionalSaveData
(CompoundTag p_34397_) void
ZombifiedPiglin.addAdditionalSaveData
(CompoundTag p_34458_) AbstractSkeleton.finalizeSpawn
(ServerLevelAccessor p_32146_, DifficultyInstance p_32147_, MobSpawnType p_32148_, SpawnGroupData p_32149_, CompoundTag p_32150_) CaveSpider.finalizeSpawn
(ServerLevelAccessor p_32259_, DifficultyInstance p_32260_, MobSpawnType p_32261_, SpawnGroupData p_32262_, CompoundTag p_32263_) Drowned.finalizeSpawn
(ServerLevelAccessor p_32372_, DifficultyInstance p_32373_, MobSpawnType p_32374_, SpawnGroupData p_32375_, CompoundTag p_32376_) Illusioner.finalizeSpawn
(ServerLevelAccessor p_32921_, DifficultyInstance p_32922_, MobSpawnType p_32923_, SpawnGroupData p_32924_, CompoundTag p_32925_) PatrollingMonster.finalizeSpawn
(ServerLevelAccessor p_33049_, DifficultyInstance p_33050_, MobSpawnType p_33051_, SpawnGroupData p_33052_, CompoundTag p_33053_) Phantom.finalizeSpawn
(ServerLevelAccessor p_33126_, DifficultyInstance p_33127_, MobSpawnType p_33128_, SpawnGroupData p_33129_, CompoundTag p_33130_) Pillager.finalizeSpawn
(ServerLevelAccessor p_33282_, DifficultyInstance p_33283_, MobSpawnType p_33284_, SpawnGroupData p_33285_, CompoundTag p_33286_) Shulker.finalizeSpawn
(ServerLevelAccessor p_149780_, DifficultyInstance p_149781_, MobSpawnType p_149782_, SpawnGroupData p_149783_, CompoundTag p_149784_) Slime.finalizeSpawn
(ServerLevelAccessor p_33601_, DifficultyInstance p_33602_, MobSpawnType p_33603_, SpawnGroupData p_33604_, CompoundTag p_33605_) Spider.finalizeSpawn
(ServerLevelAccessor p_33790_, DifficultyInstance p_33791_, MobSpawnType p_33792_, SpawnGroupData p_33793_, CompoundTag p_33794_) Strider.finalizeSpawn
(ServerLevelAccessor p_33887_, DifficultyInstance p_33888_, MobSpawnType p_33889_, SpawnGroupData p_33890_, CompoundTag p_33891_) Vex.finalizeSpawn
(ServerLevelAccessor p_34002_, DifficultyInstance p_34003_, MobSpawnType p_34004_, SpawnGroupData p_34005_, CompoundTag p_34006_) Vindicator.finalizeSpawn
(ServerLevelAccessor p_34088_, DifficultyInstance p_34089_, MobSpawnType p_34090_, SpawnGroupData p_34091_, CompoundTag p_34092_) WitherSkeleton.finalizeSpawn
(ServerLevelAccessor p_34178_, DifficultyInstance p_34179_, MobSpawnType p_34180_, SpawnGroupData p_34181_, CompoundTag p_34182_) Zombie.finalizeSpawn
(ServerLevelAccessor p_34297_, DifficultyInstance p_34298_, MobSpawnType p_34299_, SpawnGroupData p_34300_, CompoundTag p_34301_) ZombieVillager.finalizeSpawn
(ServerLevelAccessor p_34378_, DifficultyInstance p_34379_, MobSpawnType p_34380_, SpawnGroupData p_34381_, CompoundTag p_34382_) void
AbstractSkeleton.readAdditionalSaveData
(CompoundTag p_32152_) void
Creeper.readAdditionalSaveData
(CompoundTag p_32296_) void
EnderMan.readAdditionalSaveData
(CompoundTag p_32511_) void
Endermite.readAdditionalSaveData
(CompoundTag p_32595_) void
Evoker.readAdditionalSaveData
(CompoundTag p_32642_) void
Ghast.readAdditionalSaveData
(CompoundTag p_32733_) void
PatrollingMonster.readAdditionalSaveData
(CompoundTag p_33055_) void
Phantom.readAdditionalSaveData
(CompoundTag p_33132_) void
Pillager.readAdditionalSaveData
(CompoundTag p_33291_) void
Ravager.readAdditionalSaveData
(CompoundTag p_33344_) void
Shulker.readAdditionalSaveData
(CompoundTag p_33432_) void
Skeleton.readAdditionalSaveData
(CompoundTag p_149833_) void
Slime.readAdditionalSaveData
(CompoundTag p_33607_) void
SpellcasterIllager.readAdditionalSaveData
(CompoundTag p_33732_) void
Strider.readAdditionalSaveData
(CompoundTag p_33898_) void
Vex.readAdditionalSaveData
(CompoundTag p_34008_) void
Vindicator.readAdditionalSaveData
(CompoundTag p_34094_) void
Zoglin.readAdditionalSaveData
(CompoundTag p_34223_) void
Zombie.readAdditionalSaveData
(CompoundTag p_34305_) void
ZombieVillager.readAdditionalSaveData
(CompoundTag p_34387_) void
ZombifiedPiglin.readAdditionalSaveData
(CompoundTag p_34446_) void
ZombieVillager.setTradeOffers
(CompoundTag p_34412_) -
Uses of CompoundTag in net.minecraft.world.entity.monster.hoglin
Modifier and TypeMethodDescriptionvoid
Hoglin.addAdditionalSaveData
(CompoundTag p_34529_) Hoglin.finalizeSpawn
(ServerLevelAccessor p_34508_, DifficultyInstance p_34509_, MobSpawnType p_34510_, SpawnGroupData p_34511_, CompoundTag p_34512_) void
Hoglin.readAdditionalSaveData
(CompoundTag p_34519_) -
Uses of CompoundTag in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionvoid
AbstractPiglin.addAdditionalSaveData
(CompoundTag p_34661_) void
Piglin.addAdditionalSaveData
(CompoundTag p_34751_) Piglin.finalizeSpawn
(ServerLevelAccessor p_34717_, DifficultyInstance p_34718_, MobSpawnType p_34719_, SpawnGroupData p_34720_, CompoundTag p_34721_) PiglinBrute.finalizeSpawn
(ServerLevelAccessor p_35058_, DifficultyInstance p_35059_, MobSpawnType p_35060_, SpawnGroupData p_35061_, CompoundTag p_35062_) void
AbstractPiglin.readAdditionalSaveData
(CompoundTag p_34659_) void
Piglin.readAdditionalSaveData
(CompoundTag p_34725_) -
Uses of CompoundTag in net.minecraft.world.entity.monster.warden
Modifier and TypeMethodDescriptionvoid
Warden.addAdditionalSaveData
(CompoundTag p_219434_) Warden.finalizeSpawn
(ServerLevelAccessor p_219400_, DifficultyInstance p_219401_, MobSpawnType p_219402_, SpawnGroupData p_219403_, CompoundTag p_219404_) void
Warden.readAdditionalSaveData
(CompoundTag p_219415_) -
Uses of CompoundTag in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionvoid
AbstractVillager.addAdditionalSaveData
(CompoundTag p_35301_) void
Villager.addAdditionalSaveData
(CompoundTag p_35481_) void
WanderingTrader.addAdditionalSaveData
(CompoundTag p_35861_) AbstractVillager.finalizeSpawn
(ServerLevelAccessor p_35282_, DifficultyInstance p_35283_, MobSpawnType p_35284_, SpawnGroupData p_35285_, CompoundTag p_35286_) Villager.finalizeSpawn
(ServerLevelAccessor p_35439_, DifficultyInstance p_35440_, MobSpawnType p_35441_, SpawnGroupData p_35442_, CompoundTag p_35443_) void
AbstractVillager.readAdditionalSaveData
(CompoundTag p_35290_) void
Villager.readAdditionalSaveData
(CompoundTag p_35451_) void
WanderingTrader.readAdditionalSaveData
(CompoundTag p_35852_) default void
InventoryCarrier.readInventoryFromTag
(CompoundTag p_253699_) default void
InventoryCarrier.writeInventoryToTag
(CompoundTag p_254428_) -
Uses of CompoundTag in net.minecraft.world.entity.player
Modifier and TypeFieldDescriptionprotected static final EntityDataAccessor<CompoundTag>
Player.DATA_SHOULDER_LEFT
protected static final EntityDataAccessor<CompoundTag>
Player.DATA_SHOULDER_RIGHT
Modifier and TypeMethodDescriptionvoid
Player.addAdditionalSaveData
(CompoundTag p_36265_) void
Abilities.addSaveData
(CompoundTag p_35946_) void
Abilities.loadSaveData
(CompoundTag p_35951_) private void
Player.playShoulderEntityAmbientSound
(CompoundTag p_36368_) void
Player.readAdditionalSaveData
(CompoundTag p_36215_) private void
Player.respawnEntityOnShoulder
(CompoundTag p_36371_) boolean
Player.setEntityOnShoulder
(CompoundTag p_36361_) protected void
Player.setShoulderEntityLeft
(CompoundTag p_36363_) protected void
Player.setShoulderEntityRight
(CompoundTag p_36365_) -
Uses of CompoundTag in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionvoid
AbstractArrow.addAdditionalSaveData
(CompoundTag p_36772_) void
AbstractHurtingProjectile.addAdditionalSaveData
(CompoundTag p_36848_) void
Arrow.addAdditionalSaveData
(CompoundTag p_36881_) protected void
EvokerFangs.addAdditionalSaveData
(CompoundTag p_36943_) void
EyeOfEnder.addAdditionalSaveData
(CompoundTag p_36975_) void
Fireball.addAdditionalSaveData
(CompoundTag p_37013_) void
FireworkRocketEntity.addAdditionalSaveData
(CompoundTag p_37075_) void
FishingHook.addAdditionalSaveData
(CompoundTag p_37161_) void
LargeFireball.addAdditionalSaveData
(CompoundTag p_37222_) protected void
Projectile.addAdditionalSaveData
(CompoundTag p_37265_) protected void
ShulkerBullet.addAdditionalSaveData
(CompoundTag p_37357_) void
SpectralArrow.addAdditionalSaveData
(CompoundTag p_37426_) void
ThrowableItemProjectile.addAdditionalSaveData
(CompoundTag p_37449_) void
ThrownTrident.addAdditionalSaveData
(CompoundTag p_37582_) void
AbstractArrow.readAdditionalSaveData
(CompoundTag p_36761_) void
AbstractHurtingProjectile.readAdditionalSaveData
(CompoundTag p_36844_) void
Arrow.readAdditionalSaveData
(CompoundTag p_36875_) protected void
EvokerFangs.readAdditionalSaveData
(CompoundTag p_36941_) void
EyeOfEnder.readAdditionalSaveData
(CompoundTag p_36970_) void
Fireball.readAdditionalSaveData
(CompoundTag p_37009_) void
FireworkRocketEntity.readAdditionalSaveData
(CompoundTag p_37073_) void
FishingHook.readAdditionalSaveData
(CompoundTag p_37151_) void
LargeFireball.readAdditionalSaveData
(CompoundTag p_37220_) protected void
Projectile.readAdditionalSaveData
(CompoundTag p_37262_) protected void
ShulkerBullet.readAdditionalSaveData
(CompoundTag p_37353_) void
SpectralArrow.readAdditionalSaveData
(CompoundTag p_37424_) void
ThrowableItemProjectile.readAdditionalSaveData
(CompoundTag p_37445_) void
ThrownTrident.readAdditionalSaveData
(CompoundTag p_37578_) -
Uses of CompoundTag in net.minecraft.world.entity.raid
Modifier and TypeMethodDescriptionRaid.save
(CompoundTag p_37748_) Raids.save
(CompoundTag p_37976_) Modifier and TypeMethodDescriptionvoid
Raider.addAdditionalSaveData
(CompoundTag p_37870_) Raider.finalizeSpawn
(ServerLevelAccessor p_37856_, DifficultyInstance p_37857_, MobSpawnType p_37858_, SpawnGroupData p_37859_, CompoundTag p_37860_) static Raids
Raids.load
(ServerLevel p_150236_, CompoundTag p_150237_) void
Raider.readAdditionalSaveData
(CompoundTag p_37862_) Raid.save
(CompoundTag p_37748_) Raids.save
(CompoundTag p_37976_) -
Uses of CompoundTag in net.minecraft.world.entity.vehicle
Modifier and TypeMethodDescriptionprotected void
AbstractMinecart.addAdditionalSaveData
(CompoundTag p_38151_) protected void
AbstractMinecartContainer.addAdditionalSaveData
(CompoundTag p_38248_) protected void
Boat.addAdditionalSaveData
(CompoundTag p_38359_) protected void
ChestBoat.addAdditionalSaveData
(CompoundTag p_219908_) protected void
MinecartCommandBlock.addAdditionalSaveData
(CompoundTag p_38529_) protected void
MinecartFurnace.addAdditionalSaveData
(CompoundTag p_38567_) protected void
MinecartHopper.addAdditionalSaveData
(CompoundTag p_38608_) protected void
MinecartSpawner.addAdditionalSaveData
(CompoundTag p_38635_) protected void
MinecartTNT.addAdditionalSaveData
(CompoundTag p_38687_) default void
ContainerEntity.addChestVehicleSaveData
(CompoundTag p_219944_) protected void
AbstractMinecart.readAdditionalSaveData
(CompoundTag p_38137_) protected void
AbstractMinecartContainer.readAdditionalSaveData
(CompoundTag p_38235_) protected void
Boat.readAdditionalSaveData
(CompoundTag p_38338_) protected void
ChestBoat.readAdditionalSaveData
(CompoundTag p_219901_) protected void
MinecartCommandBlock.readAdditionalSaveData
(CompoundTag p_38525_) protected void
MinecartFurnace.readAdditionalSaveData
(CompoundTag p_38565_) protected void
MinecartHopper.readAdditionalSaveData
(CompoundTag p_38606_) protected void
MinecartSpawner.readAdditionalSaveData
(CompoundTag p_38633_) protected void
MinecartTNT.readAdditionalSaveData
(CompoundTag p_38682_) default void
ContainerEntity.readChestVehicleSaveData
(CompoundTag p_219935_) -
Uses of CompoundTag in net.minecraft.world.food
Modifier and TypeMethodDescriptionvoid
FoodData.addAdditionalSaveData
(CompoundTag p_38720_) void
FoodData.readAdditionalSaveData
(CompoundTag p_38716_) -
Uses of CompoundTag in net.minecraft.world.item
Modifier and TypeFieldDescriptionprivate CompoundTag
ItemStack.capNBT
private CompoundTag
ItemStack.tag
Modifier and TypeMethodDescriptionstatic CompoundTag
BlockItem.getBlockEntityData
(ItemStack p_186337_) ItemStack.getOrCreateTag()
ItemStack.getOrCreateTagElement
(String p_41699_) ItemStack.getTag()
ItemStack.getTagElement
(String p_41738_) ItemStack.save
(CompoundTag p_41740_) Modifier and TypeMethodDescriptionprivate static Optional<CompoundTag>
BundleItem.getMatchingItem
(ItemStack p_150757_, ListTag p_150758_) Modifier and TypeMethodDescriptionprivate void
CompassItem.addLodestoneTags
(ResourceKey<Level> p_40733_, BlockPos p_40734_, CompoundTag p_40735_) static void
FireworkStarItem.appendHoverText
(CompoundTag p_41257_, List<Component> p_41258_) void
ItemStack.deserializeNBT
(CompoundTag nbt) private static Optional<ResourceKey<Level>>
CompassItem.getLodestoneDimension
(CompoundTag p_40728_) static GlobalPos
CompassItem.getLodestonePosition
(CompoundTag p_220022_) EntityType<?>
SpawnEggItem.getType
(CompoundTag p_43229_) BucketItem.initCapabilities
(ItemStack stack, CompoundTag nbt) MilkBucketItem.initCapabilities
(ItemStack stack, CompoundTag nbt) static boolean
WritableBookItem.makeSureTagIsValid
(CompoundTag p_43453_) static boolean
WrittenBookItem.makeSureTagIsValid
(CompoundTag p_43472_) static ItemStack
ItemStack.of
(CompoundTag p_41713_) ItemStack.save
(CompoundTag p_41740_) static void
BlockItem.setBlockEntityData
(ItemStack p_186339_, BlockEntityType<?> p_186340_, CompoundTag p_186341_) void
ItemStack.setTag
(CompoundTag p_41752_) boolean
SpawnEggItem.spawnsEntity
(CompoundTag p_43231_, EntityType<?> p_43232_) void
Item.verifyTagAfterLoad
(CompoundTag p_150898_) void
PlayerHeadItem.verifyTagAfterLoad
(CompoundTag p_151179_) ModifierConstructorDescriptionprivate
ItemStack
(CompoundTag p_41608_) ItemStack
(ItemLike p_41604_, int p_41605_, CompoundTag p_41606_) ModifierConstructorDescriptionprivate
ItemStack
(ItemLike p_41604_, int p_41605_, Optional<CompoundTag> p_41606_) -
Uses of CompoundTag in net.minecraft.world.item.alchemy
Modifier and TypeMethodDescriptionstatic List<MobEffectInstance>
PotionUtils.getAllEffects
(CompoundTag p_43567_) static List<MobEffectInstance>
PotionUtils.getCustomEffects
(CompoundTag p_43574_) static void
PotionUtils.getCustomEffects
(CompoundTag p_43569_, List<MobEffectInstance> p_43570_) static Potion
PotionUtils.getPotion
(CompoundTag p_43578_) -
Uses of CompoundTag in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionstatic CompoundTag
EnchantmentHelper.storeEnchantment
(ResourceLocation p_182444_, int p_182445_) Modifier and TypeMethodDescriptionstatic ResourceLocation
EnchantmentHelper.getEnchantmentId
(CompoundTag p_182447_) static int
EnchantmentHelper.getEnchantmentLevel
(CompoundTag p_182439_) static void
EnchantmentHelper.setEnchantmentLevel
(CompoundTag p_182441_, int p_182442_) -
Uses of CompoundTag in net.minecraft.world.item.trading
ModifierConstructorDescriptionMerchantOffer
(CompoundTag p_45351_) MerchantOffers
(CompoundTag p_45387_) -
Uses of CompoundTag in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate final CompoundTag
SpawnData.entityToSpawn
The field for theentityToSpawn
record component.Modifier and TypeMethodDescriptionGameRules.createTag()
SpawnData.entityToSpawn()
Returns the value of theentityToSpawn
record component.SpawnData.getEntityToSpawn()
BaseCommandBlock.save
(CompoundTag p_45422_) BaseSpawner.save
(CompoundTag p_186382_) ForcedChunksSavedData.save
(CompoundTag p_46120_) Modifier and TypeMethodDescriptionvoid
Level.createFireworks
(double p_46475_, double p_46476_, double p_46477_, double p_46478_, double p_46479_, double p_46480_, CompoundTag p_46481_) void
BaseCommandBlock.load
(CompoundTag p_45432_) void
BaseSpawner.load
(Level p_151329_, BlockPos p_151330_, CompoundTag p_151331_) static ForcedChunksSavedData
ForcedChunksSavedData.load
(CompoundTag p_151484_) BaseCommandBlock.save
(CompoundTag p_45422_) BaseSpawner.save
(CompoundTag p_186382_) ForcedChunksSavedData.save
(CompoundTag p_46120_) ModifierConstructorDescriptionSpawnData
(CompoundTag entityToSpawn, Optional<SpawnData.CustomSpawnRules> customSpawnRules) Creates an instance of aSpawnData
record class. -
Uses of CompoundTag in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionvoid
SculkSpreader.load
(CompoundTag p_222270_) void
SculkSpreader.save
(CompoundTag p_222276_) -
Uses of CompoundTag in net.minecraft.world.level.block.entity
Modifier and TypeFieldDescriptionprivate CompoundTag
BlockEntity.customPersistentData
(package private) final CompoundTag
BeehiveBlockEntity.BeeData.entityData
Modifier and TypeMethodDescriptionBlockEntity.getPersistentData()
BannerBlockEntity.getUpdateTag()
BeaconBlockEntity.getUpdateTag()
BlockEntity.getUpdateTag()
CampfireBlockEntity.getUpdateTag()
ConduitBlockEntity.getUpdateTag()
DecoratedPotBlockEntity.getUpdateTag()
JigsawBlockEntity.getUpdateTag()
SignBlockEntity.getUpdateTag()
SkullBlockEntity.getUpdateTag()
SpawnerBlockEntity.getUpdateTag()
StructureBlockEntity.getUpdateTag()
SuspiciousSandBlockEntity.getUpdateTag()
TheEndGatewayBlockEntity.getUpdateTag()
final CompoundTag
BlockEntity.saveWithFullMetadata()
final CompoundTag
BlockEntity.saveWithId()
final CompoundTag
BlockEntity.saveWithoutMetadata()
Modifier and TypeMethodDescriptionstatic void
BlockEntity.addEntityType
(CompoundTag p_187469_, BlockEntityType<?> p_187470_) static BlockPos
BlockEntity.getPosFromTag
(CompoundTag p_187473_) void
AbstractFurnaceBlockEntity.load
(CompoundTag p_155025_) void
BannerBlockEntity.load
(CompoundTag p_155042_) void
BarrelBlockEntity.load
(CompoundTag p_155055_) void
BaseContainerBlockEntity.load
(CompoundTag p_155080_) void
BeaconBlockEntity.load
(CompoundTag p_155113_) void
BeehiveBlockEntity.load
(CompoundTag p_155156_) void
BlockEntity.load
(CompoundTag p_155245_) void
BrewingStandBlockEntity.load
(CompoundTag p_155297_) void
CampfireBlockEntity.load
(CompoundTag p_155312_) void
ChestBlockEntity.load
(CompoundTag p_155349_) void
ChiseledBookShelfBlockEntity.load
(CompoundTag p_249911_) void
CommandBlockEntity.load
(CompoundTag p_155383_) void
ComparatorBlockEntity.load
(CompoundTag p_155389_) void
ConduitBlockEntity.load
(CompoundTag p_155437_) void
DecoratedPotBlockEntity.load
(CompoundTag p_272924_) void
DispenserBlockEntity.load
(CompoundTag p_155496_) void
EnchantmentTableBlockEntity.load
(CompoundTag p_155509_) void
HopperBlockEntity.load
(CompoundTag p_155588_) void
JigsawBlockEntity.load
(CompoundTag p_155608_) void
JukeboxBlockEntity.load
(CompoundTag p_155616_) void
LecternBlockEntity.load
(CompoundTag p_155625_) void
SculkCatalystBlockEntity.load
(CompoundTag p_222787_) void
SculkSensorBlockEntity.load
(CompoundTag p_155649_) void
SculkShriekerBlockEntity.load
(CompoundTag p_222868_) void
ShulkerBoxBlockEntity.load
(CompoundTag p_155678_) void
SignBlockEntity.load
(CompoundTag p_155716_) void
SkullBlockEntity.load
(CompoundTag p_155745_) void
SpawnerBlockEntity.load
(CompoundTag p_155760_) void
StructureBlockEntity.load
(CompoundTag p_155800_) void
SuspiciousSandBlockEntity.load
(CompoundTag p_272838_) void
TheEndGatewayBlockEntity.load
(CompoundTag p_155840_) void
ShulkerBoxBlockEntity.loadFromTag
(CompoundTag p_59694_) static BlockEntity
BlockEntity.loadStatic
(BlockPos p_155242_, BlockState p_155243_, CompoundTag p_155244_) (package private) static void
BeehiveBlockEntity.removeIgnoredBeeTags
(CompoundTag p_155162_) protected void
AbstractFurnaceBlockEntity.saveAdditional
(CompoundTag p_187452_) protected void
BannerBlockEntity.saveAdditional
(CompoundTag p_187456_) protected void
BarrelBlockEntity.saveAdditional
(CompoundTag p_187459_) protected void
BaseContainerBlockEntity.saveAdditional
(CompoundTag p_187461_) protected void
BeaconBlockEntity.saveAdditional
(CompoundTag p_187463_) protected void
BeehiveBlockEntity.saveAdditional
(CompoundTag p_187467_) protected void
BlockEntity.saveAdditional
(CompoundTag p_187471_) protected void
BrewingStandBlockEntity.saveAdditional
(CompoundTag p_187484_) protected void
CampfireBlockEntity.saveAdditional
(CompoundTag p_187486_) protected void
ChestBlockEntity.saveAdditional
(CompoundTag p_187489_) protected void
ChiseledBookShelfBlockEntity.saveAdditional
(CompoundTag p_251872_) protected void
CommandBlockEntity.saveAdditional
(CompoundTag p_187491_) protected void
ComparatorBlockEntity.saveAdditional
(CompoundTag p_187493_) protected void
ConduitBlockEntity.saveAdditional
(CompoundTag p_187495_) protected void
DecoratedPotBlockEntity.saveAdditional
(CompoundTag p_272957_) protected void
DispenserBlockEntity.saveAdditional
(CompoundTag p_187498_) protected void
EnchantmentTableBlockEntity.saveAdditional
(CompoundTag p_187500_) protected void
HopperBlockEntity.saveAdditional
(CompoundTag p_187502_) protected void
JigsawBlockEntity.saveAdditional
(CompoundTag p_187504_) protected void
JukeboxBlockEntity.saveAdditional
(CompoundTag p_187507_) protected void
LecternBlockEntity.saveAdditional
(CompoundTag p_187509_) protected void
SculkCatalystBlockEntity.saveAdditional
(CompoundTag p_222789_) protected void
SculkSensorBlockEntity.saveAdditional
(CompoundTag p_187511_) protected void
SculkShriekerBlockEntity.saveAdditional
(CompoundTag p_222878_) protected void
ShulkerBoxBlockEntity.saveAdditional
(CompoundTag p_187513_) protected void
SignBlockEntity.saveAdditional
(CompoundTag p_187515_) protected void
SkullBlockEntity.saveAdditional
(CompoundTag p_187518_) protected void
SpawnerBlockEntity.saveAdditional
(CompoundTag p_187521_) protected void
StructureBlockEntity.saveAdditional
(CompoundTag p_187524_) protected void
SuspiciousSandBlockEntity.saveAdditional
(CompoundTag p_273761_) protected void
TheEndGatewayBlockEntity.saveAdditional
(CompoundTag p_187527_) private void
BlockEntity.saveId
(CompoundTag p_187475_) private void
BlockEntity.saveMetadata
(CompoundTag p_187479_) static void
DecoratedPotBlockEntity.saveShards
(List<Item> p_273539_, CompoundTag p_272709_) void
BeehiveBlockEntity.storeBee
(CompoundTag p_155158_, int p_155159_, boolean p_155160_) protected boolean
RandomizableContainerBlockEntity.tryLoadLootTable
(CompoundTag p_59632_) private boolean
SuspiciousSandBlockEntity.tryLoadLootTable
(CompoundTag p_272958_) protected boolean
RandomizableContainerBlockEntity.trySaveLootTable
(CompoundTag p_59635_) private boolean
SuspiciousSandBlockEntity.trySaveLootTable
(CompoundTag p_273618_) ModifierConstructorDescription(package private)
BeeData
(CompoundTag p_58786_, int p_58787_, int p_58788_) -
Uses of CompoundTag in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescriptionvoid
PistonMovingBlockEntity.load
(CompoundTag p_155930_) protected void
PistonMovingBlockEntity.saveAdditional
(CompoundTag p_187530_) -
Uses of CompoundTag in net.minecraft.world.level.border
-
Uses of CompoundTag in net.minecraft.world.level.chunk
Modifier and TypeFieldDescriptionprivate final List<CompoundTag>
ProtoChunk.entities
protected final Map<BlockPos,
CompoundTag> ChunkAccess.pendingBlockEntities
Modifier and TypeMethodDescriptionChunkAccess.getBlockEntityNbt
(BlockPos p_62103_) ImposterProtoChunk.getBlockEntityNbt
(BlockPos p_62757_) abstract CompoundTag
ChunkAccess.getBlockEntityNbtForSaving
(BlockPos p_62104_) ImposterProtoChunk.getBlockEntityNbtForSaving
(BlockPos p_62760_) LevelChunk.getBlockEntityNbtForSaving
(BlockPos p_62932_) ProtoChunk.getBlockEntityNbtForSaving
(BlockPos p_63275_) UpgradeData.write()
final @Nullable CompoundTag
LevelChunk.writeCapsToNBT()
Deprecated.Modifier and TypeMethodDescriptionvoid
ProtoChunk.addEntity
(CompoundTag p_63243_) private static <T> void
UpgradeData.loadTicks
(CompoundTag p_208133_, String p_208134_, Function<String, Optional<T>> p_208135_, List<SavedTick<T>> p_208136_) private BlockEntity
LevelChunk.promotePendingBlockEntity
(BlockPos p_62871_, CompoundTag p_62872_) final void
LevelChunk.readCapsFromNBT
(CompoundTag tag) Deprecated.void
LevelChunk.replaceWithPacketData
(FriendlyByteBuf p_187972_, CompoundTag p_187973_, Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> p_187974_) void
ChunkAccess.setBlockEntityNbt
(CompoundTag p_62091_) void
ImposterProtoChunk.setBlockEntityNbt
(CompoundTag p_62728_) -
Uses of CompoundTag in net.minecraft.world.level.chunk.storage
Modifier and TypeMethodDescriptionprivate static CompoundTag
ChunkSerializer.packStructureData
(StructurePieceSerializationContext p_188250_, ChunkPos p_188251_, Map<Structure, StructureStart> p_188252_, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_188253_) ChunkStorage.upgradeChunkTag
(ResourceKey<Level> p_188289_, Supplier<DimensionDataStorage> p_188290_, CompoundTag p_188291_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_188292_) private CompoundTag
EntityStorage.upgradeChunkTag
(CompoundTag p_156573_) static CompoundTag
ChunkSerializer.write
(ServerLevel p_63455_, ChunkAccess p_63456_) Modifier and TypeMethodDescriptionstatic ChunkStatus.ChunkType
ChunkSerializer.getChunkTypeFromTag
(CompoundTag p_63486_) private static ListTag
ChunkSerializer.getListOfCompoundsOrNull
(CompoundTag p_196898_, String p_196899_) static int
ChunkStorage.getVersion
(CompoundTag p_63506_) static void
ChunkStorage.injectDatafixingContext
(CompoundTag p_196919_, ResourceKey<Level> p_196920_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_196921_) private boolean
IOWorker.isOldChunk
(CompoundTag p_223485_) private static LevelChunk.PostLoadProcessor
ChunkSerializer.postLoadChunk
(ServerLevel p_196891_, CompoundTag p_196892_) static ProtoChunk
ChunkSerializer.read
(ServerLevel p_188231_, PoiManager p_188232_, ChunkPos p_188233_, CompoundTag p_188234_) private static ChunkPos
EntityStorage.readChunkPos
(CompoundTag p_156571_) private static void
ChunkSerializer.saveTicks
(ServerLevel p_188236_, CompoundTag p_188237_, ChunkAccess.TicksToSave p_188238_) IOWorker.store
(ChunkPos p_63539_, CompoundTag p_63540_) ChunkSerializer.unpackStructureReferences
(RegistryAccess p_208155_, ChunkPos p_208156_, CompoundTag p_208157_) private static Map<Structure,
StructureStart> ChunkSerializer.unpackStructureStart
(StructurePieceSerializationContext p_188255_, CompoundTag p_188256_, long p_188257_) ChunkStorage.upgradeChunkTag
(ResourceKey<Level> p_188289_, Supplier<DimensionDataStorage> p_188290_, CompoundTag p_188291_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_188292_) private CompoundTag
EntityStorage.upgradeChunkTag
(CompoundTag p_156573_) void
ChunkStorage.write
(ChunkPos p_63503_, CompoundTag p_63504_) protected void
RegionFileStorage.write
(ChunkPos p_63709_, CompoundTag p_63710_) private static void
EntityStorage.writeChunkPos
(CompoundTag p_156563_, ChunkPos p_156564_) -
Uses of CompoundTag in net.minecraft.world.level.dimension.end
ModifierConstructorDescriptionEndDragonFight
(ServerLevel p_64078_, long p_64079_, CompoundTag p_64080_) -
Uses of CompoundTag in net.minecraft.world.level.levelgen
Modifier and TypeMethodDescriptionstatic BelowZeroRetrogen
BelowZeroRetrogen.read
(CompoundTag p_188486_) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure
Modifier and TypeFieldDescriptionprivate final Map<String,
it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> LegacyStructureDataHandler.dataMap
Modifier and TypeMethodDescriptionfinal CompoundTag
StructurePiece.createTag
(StructurePieceSerializationContext p_192645_) StructureStart.createTag
(StructurePieceSerializationContext p_192661_, ChunkPos p_192662_) StructureFeatureIndexSavedData.save
(CompoundTag p_73372_) LegacyStructureDataHandler.updateFromLegacy
(CompoundTag p_71327_) private CompoundTag
LegacyStructureDataHandler.updateStructureStart
(CompoundTag p_71329_, ChunkPos p_71330_) Modifier and TypeMethodDescriptionprotected void
PoolElementStructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_192425_, CompoundTag p_192426_) protected void
ScatteredFeaturePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_192471_, CompoundTag p_192472_) protected abstract void
StructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_192646_, CompoundTag p_192647_) protected void
TemplateStructurePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_192690_, CompoundTag p_192691_) StructureFeatureIndexSavedData.load
(CompoundTag p_163535_) static StructureStart
StructureStart.loadStaticStart
(StructurePieceSerializationContext p_226858_, CompoundTag p_226859_, long p_226860_) private it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>
StructureCheck.loadStructures
(CompoundTag p_197312_) StructureFeatureIndexSavedData.save
(CompoundTag p_73372_) LegacyStructureDataHandler.updateFromLegacy
(CompoundTag p_71327_) private CompoundTag
LegacyStructureDataHandler.updateStructureStart
(CompoundTag p_71329_, ChunkPos p_71330_) ModifierConstructorDescriptionPoolElementStructurePiece
(StructurePieceSerializationContext p_192406_, CompoundTag p_192407_) protected
ScatteredFeaturePiece
(StructurePieceType p_209929_, CompoundTag p_209930_) StructurePiece
(StructurePieceType p_209998_, CompoundTag p_209999_) TemplateStructurePiece
(StructurePieceType p_226894_, CompoundTag p_226895_, StructureTemplateManager p_226896_, Function<ResourceLocation, StructurePlaceSettings> p_226897_) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pieces
Modifier and TypeMethodDescriptionStructurePieceType.ContextlessType.load
(CompoundTag p_210167_) default StructurePiece
StructurePieceType.ContextlessType.load
(StructurePieceSerializationContext p_210164_, CompoundTag p_210165_) StructurePieceType.load
(StructurePieceSerializationContext p_210161_, CompoundTag p_210162_) default StructurePiece
StructurePieceType.StructureTemplateType.load
(StructurePieceSerializationContext p_210169_, CompoundTag p_210170_) StructurePieceType.StructureTemplateType.load
(StructureTemplateManager p_226963_, CompoundTag p_226964_) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.pools
-
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.structures
Modifier and TypeMethodDescriptionprotected void
BuriedTreasurePieces.BuriedTreasurePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227378_, CompoundTag p_227379_) protected void
DesertPyramidPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227413_, CompoundTag p_227414_) protected void
EndCityPieces.EndCityPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227500_, CompoundTag p_227501_) protected void
IglooPieces.IglooPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227579_, CompoundTag p_227580_) protected void
JungleTemplePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227682_, CompoundTag p_227683_) protected void
MineshaftPieces.MineShaftCorridor.addAdditionalSaveData
(StructurePieceSerializationContext p_227806_, CompoundTag p_227807_) protected void
MineshaftPieces.MineShaftCrossing.addAdditionalSaveData
(StructurePieceSerializationContext p_227862_, CompoundTag p_227863_) protected void
MineshaftPieces.MineShaftPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_227898_, CompoundTag p_227899_) protected void
MineshaftPieces.MineShaftRoom.addAdditionalSaveData
(StructurePieceSerializationContext p_227926_, CompoundTag p_227927_) protected void
NetherFortressPieces.BridgeEndFiller.addAdditionalSaveData
(StructurePieceSerializationContext p_228081_, CompoundTag p_228082_) protected void
NetherFortressPieces.CastleSmallCorridorLeftTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228259_, CompoundTag p_228260_) protected void
NetherFortressPieces.CastleSmallCorridorRightTurnPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228321_, CompoundTag p_228322_) protected void
NetherFortressPieces.MonsterThrone.addAdditionalSaveData
(StructurePieceSerializationContext p_228377_, CompoundTag p_228378_) protected void
NetherFortressPieces.NetherBridgePiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228389_, CompoundTag p_228390_) protected void
NetherFossilPieces.NetherFossilPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228558_, CompoundTag p_228559_) protected void
OceanMonumentPieces.OceanMonumentPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_228872_, CompoundTag p_228873_) protected void
OceanRuinPieces.OceanRuinPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229039_, CompoundTag p_229040_) protected void
RuinedPortalPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229158_, CompoundTag p_229159_) protected void
ShipwreckPieces.ShipwreckPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229373_, CompoundTag p_229374_) protected void
StrongholdPieces.ChestCorridor.addAdditionalSaveData
(StructurePieceSerializationContext p_229492_, CompoundTag p_229493_) protected void
StrongholdPieces.FillerCorridor.addAdditionalSaveData
(StructurePieceSerializationContext p_229517_, CompoundTag p_229518_) protected void
StrongholdPieces.FiveCrossing.addAdditionalSaveData
(StructurePieceSerializationContext p_229554_, CompoundTag p_229555_) protected void
StrongholdPieces.Library.addAdditionalSaveData
(StructurePieceSerializationContext p_229612_, CompoundTag p_229613_) protected void
StrongholdPieces.PortalRoom.addAdditionalSaveData
(StructurePieceSerializationContext p_229654_, CompoundTag p_229655_) protected void
StrongholdPieces.RoomCrossing.addAdditionalSaveData
(StructurePieceSerializationContext p_229745_, CompoundTag p_229746_) protected void
StrongholdPieces.StairsDown.addAdditionalSaveData
(StructurePieceSerializationContext p_229795_, CompoundTag p_229796_) protected void
StrongholdPieces.Straight.addAdditionalSaveData
(StructurePieceSerializationContext p_229840_, CompoundTag p_229841_) protected void
StrongholdPieces.StrongholdPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229891_, CompoundTag p_229892_) protected void
SwampHutPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_229969_, CompoundTag p_229970_) protected void
WoodlandMansionPieces.WoodlandMansionPiece.addAdditionalSaveData
(StructurePieceSerializationContext p_230208_, CompoundTag p_230209_) private static StructurePlaceSettings
RuinedPortalPiece.makeSettings
(StructureTemplateManager p_229166_, CompoundTag p_229167_, ResourceLocation p_229168_) ModifierConstructorDescriptionBridgeCrossing
(CompoundTag p_228033_) protected
BridgeCrossing
(StructurePieceType p_228030_, CompoundTag p_228031_) BridgeEndFiller
(CompoundTag p_228063_) BridgeStraight
(CompoundTag p_228092_) BuriedTreasurePiece
(CompoundTag p_227368_) CastleCorridorStairsPiece
(CompoundTag p_228121_) CastleCorridorTBalconyPiece
(CompoundTag p_228149_) CastleEntrance
(CompoundTag p_228178_) CastleSmallCorridorCrossingPiece
(CompoundTag p_228207_) CastleSmallCorridorLeftTurnPiece
(CompoundTag p_228237_) CastleSmallCorridorPiece
(CompoundTag p_228269_) CastleSmallCorridorRightTurnPiece
(CompoundTag p_228299_) CastleStalkRoom
(CompoundTag p_228331_) ChestCorridor
(CompoundTag p_229470_) DesertPyramidPiece
(CompoundTag p_227403_) EndCityPiece
(StructureTemplateManager p_227497_, CompoundTag p_227498_) FillerCorridor
(CompoundTag p_229500_) FiveCrossing
(CompoundTag p_229532_) IglooPiece
(StructureTemplateManager p_227561_, CompoundTag p_227562_) JungleTemplePiece
(CompoundTag p_227672_) LeftTurn
(CompoundTag p_229562_) Library
(CompoundTag p_229594_) MineShaftCorridor
(CompoundTag p_227737_) MineShaftCrossing
(CompoundTag p_227834_) MineShaftPiece
(StructurePieceType p_227872_, CompoundTag p_227873_) MineShaftRoom
(CompoundTag p_227908_) MineShaftStairs
(CompoundTag p_227937_) MonsterThrone
(CompoundTag p_228360_) MonumentBuilding
(CompoundTag p_228653_) NetherBridgePiece
(StructurePieceType p_228384_, CompoundTag p_228385_) NetherFossilPiece
(StructureTemplateManager p_228545_, CompoundTag p_228546_) OceanMonumentCoreRoom
(CompoundTag p_228702_) OceanMonumentDoubleXRoom
(CompoundTag p_228715_) OceanMonumentDoubleXYRoom
(CompoundTag p_228728_) OceanMonumentDoubleYRoom
(CompoundTag p_228741_) OceanMonumentDoubleYZRoom
(CompoundTag p_228754_) OceanMonumentDoubleZRoom
(CompoundTag p_228767_) OceanMonumentEntryRoom
(CompoundTag p_228780_) OceanMonumentPenthouse
(CompoundTag p_228793_) OceanMonumentPiece
(StructurePieceType p_228841_, CompoundTag p_228842_) OceanMonumentSimpleRoom
(CompoundTag p_228899_) OceanMonumentSimpleTopRoom
(CompoundTag p_228912_) OceanMonumentWingRoom
(CompoundTag p_228927_) OceanRuinPiece
(StructureTemplateManager p_229026_, CompoundTag p_229027_) PortalRoom
(CompoundTag p_229633_) PrisonHall
(CompoundTag p_229665_) RightTurn
(CompoundTag p_229692_) RoomCrossing
(CompoundTag p_228459_) RoomCrossing
(CompoundTag p_229723_) RuinedPortalPiece
(StructureTemplateManager p_229115_, CompoundTag p_229116_) ShipwreckPiece
(StructureTemplateManager p_229360_, CompoundTag p_229361_) StairsDown
(CompoundTag p_229773_) StairsDown
(StructurePieceType p_229770_, CompoundTag p_229771_) StairsRoom
(CompoundTag p_228487_) StartPiece
(CompoundTag p_228516_) StartPiece
(CompoundTag p_229805_) Straight
(CompoundTag p_229818_) StraightStairsDown
(CompoundTag p_229851_) StrongholdPiece
(StructurePieceType p_229878_, CompoundTag p_229879_) SwampHutPiece
(CompoundTag p_229956_) Turn
(StructurePieceType p_229934_, CompoundTag p_229935_) WoodlandMansionPiece
(StructureTemplateManager p_230202_, CompoundTag p_230203_) -
Uses of CompoundTag in net.minecraft.world.level.levelgen.structure.templatesystem
Modifier and TypeFieldDescriptionfinal CompoundTag
StructureTemplate.StructureBlockInfo.nbt
final CompoundTag
StructureTemplate.StructureEntityInfo.nbt
private final CompoundTag
ProcessorRule.outputTag
Modifier and TypeMethodDescriptionProcessorRule.getOutputTag()
StructureTemplate.save
(CompoundTag p_74619_) Modifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException
(ServerLevelAccessor p_74544_, CompoundTag p_74545_) void
StructureTemplate.load
(HolderGetter<Block> p_255773_, CompoundTag p_248574_) StructureTemplateManager.readStructure
(CompoundTag p_230405_) StructureTemplate.save
(CompoundTag p_74619_) ModifierConstructorDescriptionStructureBlockInfo
(BlockPos p_74679_, BlockState p_74680_, CompoundTag p_74681_) StructureEntityInfo
(Vec3 p_74687_, BlockPos p_74688_, CompoundTag p_74689_) ModifierConstructorDescriptionProcessorRule
(RuleTest p_74232_, RuleTest p_74233_, PosRuleTest p_74234_, BlockState p_74235_, Optional<CompoundTag> p_74236_) -
Uses of CompoundTag in net.minecraft.world.level.saveddata
-
Uses of CompoundTag in net.minecraft.world.level.saveddata.maps
Modifier and TypeMethodDescriptionMapBanner.save()
MapFrame.save()
MapIndex.save
(CompoundTag p_77884_) MapItemSavedData.save
(CompoundTag p_77956_) Modifier and TypeMethodDescriptionstatic MapBanner
MapBanner.load
(CompoundTag p_77778_) static MapFrame
MapFrame.load
(CompoundTag p_77873_) static MapIndex
MapIndex.load
(CompoundTag p_164763_) static MapItemSavedData
MapItemSavedData.load
(CompoundTag p_164808_) MapIndex.save
(CompoundTag p_77884_) MapItemSavedData.save
(CompoundTag p_77956_) -
Uses of CompoundTag in net.minecraft.world.level.storage
Modifier and TypeFieldDescriptionprivate CompoundTag
PrimaryLevelData.customBossEvents
private CompoundTag
PrimaryLevelData.endDragonFightData
private CompoundTag
PrimaryLevelData.loadedPlayerTag
Modifier and TypeFieldDescriptionprivate final Map<String,
CompoundTag> CommandStorage.Container.storage
Modifier and TypeMethodDescriptionPrimaryLevelData.createTag
(RegistryAccess p_78543_, CompoundTag p_78544_) WorldData.createTag
(RegistryAccess p_78636_, CompoundTag p_78637_) PrimaryLevelData.endDragonFightData()
WorldData.endDragonFightData()
CommandStorage.get
(ResourceLocation p_78045_) PrimaryLevelData.getCustomBossEvents()
WorldData.getCustomBossEvents()
PrimaryLevelData.getLoadedPlayerTag()
WorldData.getLoadedPlayerTag()
DimensionDataStorage.readTagFromDisk
(String p_78159_, int p_78160_) CommandStorage.Container.save
(CompoundTag p_78075_) Modifier and TypeMethodDescriptionPrimaryLevelData.createTag
(RegistryAccess p_78543_, CompoundTag p_78544_) WorldData.createTag
(RegistryAccess p_78636_, CompoundTag p_78637_) (package private) CommandStorage.Container
CommandStorage.Container.load
(CompoundTag p_164850_) static <T> PrimaryLevelData
PrimaryLevelData.parse
(com.mojang.serialization.Dynamic<T> p_78531_, com.mojang.datafixers.DataFixer p_78532_, int p_78533_, CompoundTag p_78534_, LevelSettings p_78535_, LevelVersion p_78536_, PrimaryLevelData.SpecialWorldProperty p_250651_, WorldOptions p_251864_, com.mojang.serialization.Lifecycle p_78538_) void
CommandStorage.Container.put
(String p_78064_, CompoundTag p_78065_) CommandStorage.Container.save
(CompoundTag p_78075_) void
LevelStorageSource.LevelStorageAccess.saveDataTag
(RegistryAccess p_78291_, WorldData p_78292_, CompoundTag p_78293_) void
CommandStorage.set
(ResourceLocation p_78047_, CompoundTag p_78048_) void
PrimaryLevelData.setCustomBossEvents
(CompoundTag p_78571_) void
WorldData.setCustomBossEvents
(CompoundTag p_78643_) void
PrimaryLevelData.setEndDragonFightData
(CompoundTag p_78557_) void
WorldData.setEndDragonFightData
(CompoundTag p_78641_) private void
PrimaryLevelData.setTagData
(RegistryAccess p_78546_, CompoundTag p_78547_, CompoundTag p_78548_) Modifier and TypeMethodDescription<T extends SavedData>
TDimensionDataStorage.computeIfAbsent
(Function<CompoundTag, T> p_164862_, Supplier<T> p_164863_, String p_164864_) <T extends SavedData>
TDimensionDataStorage.get
(Function<CompoundTag, T> p_164859_, String p_164860_) private <T extends SavedData>
TDimensionDataStorage.readSavedData
(Function<CompoundTag, T> p_164869_, String p_164870_) ModifierConstructorDescriptionprivate
PrimaryLevelData
(com.mojang.datafixers.DataFixer p_249266_, int p_249857_, CompoundTag p_249309_, boolean p_251525_, int p_249614_, int p_252310_, int p_250544_, float p_250495_, long p_250393_, long p_252085_, int p_250455_, int p_248981_, int p_249051_, boolean p_249672_, int p_249807_, boolean p_252350_, boolean p_250231_, boolean p_249788_, WorldBorder.Settings p_251494_, int p_249519_, int p_250649_, UUID p_248892_, Set<String> p_251898_, TimerQueue<MinecraftServer> p_251119_, CompoundTag p_248915_, CompoundTag p_252274_, LevelSettings p_248619_, WorldOptions p_251512_, PrimaryLevelData.SpecialWorldProperty p_251396_, com.mojang.serialization.Lifecycle p_252247_) -
Uses of CompoundTag in net.minecraft.world.level.storage.loot.functions
Modifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder<?>
SetNbtFunction.setTag
(CompoundTag p_81188_) Deprecated.ModifierConstructorDescription(package private)
SetNbtFunction
(LootItemCondition[] p_81176_, CompoundTag p_81177_) -
Uses of CompoundTag in net.minecraft.world.level.timers
Modifier and TypeMethodDescription<T extends TimerCallback<C>>
CompoundTagTimerCallbacks.serialize
(T p_82235_) private CompoundTag
TimerQueue.storeEvent
(TimerQueue.Event<T> p_82255_) Modifier and TypeMethodDescriptionFunctionCallback.Serializer.deserialize
(CompoundTag p_82180_) FunctionTagCallback.Serializer.deserialize
(CompoundTag p_82204_) abstract C
TimerCallback.Serializer.deserialize
(CompoundTag p_82225_) TimerCallbacks.deserialize
(CompoundTag p_82239_) private void
TimerQueue.loadEvent
(CompoundTag p_82266_) 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 p_82222_, C p_82223_) -
Uses of CompoundTag in net.minecraft.world.scores
Modifier and TypeMethodDescriptionScoreboardSaveData.load
(CompoundTag p_166103_) private void
ScoreboardSaveData.loadDisplaySlots
(CompoundTag p_83531_) ScoreboardSaveData.save
(CompoundTag p_83527_) private void
ScoreboardSaveData.saveDisplaySlots
(CompoundTag p_83533_) -
Uses of CompoundTag in net.minecraft.world.ticks
Modifier and TypeMethodDescriptionprivate static CompoundTag
SavedTick.saveTick
(String p_193339_, BlockPos p_193340_, int p_193341_, TickPriority p_193342_) static <T> CompoundTag
SavedTick.saveTick
(ScheduledTick<T> p_193332_, Function<T, String> p_193333_, long p_193334_) -
Uses of CompoundTag in net.minecraftforge.common
Modifier and TypeMethodDescriptionEntityType<?>
ForgeSpawnEggItem.getType
(@Nullable CompoundTag tag) static @Nullable MobEffect
ForgeHooks.loadMobEffect
(CompoundTag nbt, String key, @Nullable MobEffect fallback) static void
ForgeHooks.readAdditionalLevelSaveData
(CompoundTag rootTag) Deprecated, for removal: This API element is subject to removal in a future version.To be removed in 1.20.static void
ForgeHooks.readAdditionalLevelSaveData
(CompoundTag rootTag, LevelStorageSource.LevelDirectory levelDirectory) static void
ForgeHooks.saveMobEffect
(CompoundTag nbt, String key, MobEffect effect) static void
ForgeHooks.writeAdditionalLevelSaveData
(WorldData worldData, CompoundTag levelTag) -
Uses of CompoundTag in net.minecraftforge.common.capabilities
Modifier and TypeMethodDescriptionprotected final @Nullable CompoundTag
CapabilityProvider.serializeCaps()
@Nullable CompoundTag
CapabilityProvider.AsField.serializeInternal()
CapabilityDispatcher.serializeNBT()
Modifier and TypeMethodDescriptionprotected final void
CapabilityProvider.deserializeCaps
(CompoundTag tag) void
CapabilityProvider.AsField.deserializeInternal
(CompoundTag tag) void
CapabilityDispatcher.deserializeNBT
(CompoundTag nbt) -
Uses of CompoundTag in net.minecraftforge.common.crafting
Modifier and TypeMethodDescriptionstatic CompoundTag
CraftingHelper.getNBT
(com.google.gson.JsonElement element) Modifier and TypeMethodDescriptionstatic PartialNBTIngredient
PartialNBTIngredient.of
(CompoundTag nbt, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given NBTstatic PartialNBTIngredient
PartialNBTIngredient.of
(ItemLike item, CompoundTag nbt) Creates a new ingredient matching the given item, containing the given NBT -
Uses of CompoundTag in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptionIForgeBlockEntity.getPersistentData()
Gets aCompoundTag
that can be used to store custom data for this block entity.IForgeEntity.getPersistentData()
Returns a NBTTagCompound that can be used to store custom data for this entity.default @Nullable CompoundTag
IForgeItem.getShareTag
(ItemStack stack) Override this method to change the NBT data being sent to the client.default @Nullable CompoundTag
IForgeItemStack.getShareTag()
Get the NBT data to be sent to the client.default CompoundTag
IForgeBlockEntity.serializeNBT()
default CompoundTag
IForgeEntity.serializeNBT()
default CompoundTag
IForgeItemStack.serializeNBT()
Modifier and TypeMethodDescriptiondefault void
IForgeBlockEntity.deserializeNBT
(CompoundTag nbt) default void
IForgeEntity.deserializeNBT
(CompoundTag nbt) default void
IForgeBlockEntity.handleUpdateTag
(CompoundTag tag) Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag()
, is received on the client.default ICapabilityProvider
IForgeItem.initCapabilities
(ItemStack stack, @Nullable CompoundTag nbt) Called from ItemStack.setItem, will hold extra data for the life of this ItemStack.default void
IForgeItem.readShareTag
(ItemStack stack, @Nullable CompoundTag nbt) Override this method to decide what to do with the NBT data received from getNBTShareTag().default void
IForgeItemStack.readShareTag
(@Nullable CompoundTag nbt) Override this method to decide what to do with the NBT data received from getNBTShareTag().default void
IForgeMobEffectInstance.writeCurativeItems
(CompoundTag nbt) -
Uses of CompoundTag in net.minecraftforge.common.util
Modifier and TypeFieldDescriptionprivate CompoundTag
LevelCapabilityData.capNBT
private final @Nullable CompoundTag
BlockSnapshot.nbt
Modifier and TypeFieldDescriptionprivate INBTSerializable<CompoundTag>
LevelCapabilityData.serializable
Modifier and TypeMethodDescriptionprivate static @Nullable CompoundTag
BlockSnapshot.getBlockEntityTag
(@Nullable BlockEntity te) @Nullable CompoundTag
BlockSnapshot.getTag()
static @Nullable CompoundTag
DummySavedData.save
(CompoundTag compound) LevelCapabilityData.save
(CompoundTag nbt) Modifier and TypeMethodDescriptionstatic LevelCapabilityData
LevelCapabilityData.load
(CompoundTag tag, @Nullable INBTSerializable<CompoundTag> serializable) void
LevelCapabilityData.read
(CompoundTag nbt) DummySavedData.save
(CompoundTag compound) LevelCapabilityData.save
(CompoundTag nbt) Modifier and TypeMethodDescriptionstatic LevelCapabilityData
LevelCapabilityData.load
(CompoundTag tag, @Nullable INBTSerializable<CompoundTag> serializable) void
LevelCapabilityData.setCapabilities
(INBTSerializable<CompoundTag> capabilities) ModifierConstructorDescriptionprivate
BlockSnapshot
(ResourceKey<Level> dim, LevelAccessor level, BlockPos pos, BlockState state, @Nullable CompoundTag nbt, int flags) ModifierConstructorDescriptionLevelCapabilityData
(@Nullable INBTSerializable<CompoundTag> serializable) -
Uses of CompoundTag in net.minecraftforge.common.world
Modifier and TypeMethodDescriptionprivate static void
ForgeChunkManager.readBlockForcedChunks
(String modId, long chunkPos, CompoundTag modEntry, String key, Map<ForgeChunkManager.TicketOwner<BlockPos>, it.unimi.dsi.fastutil.longs.LongSet> blockForcedChunks) Reads the forge block forced chunks.private static void
ForgeChunkManager.readEntityForcedChunks
(String modId, long chunkPos, CompoundTag modEntry, String key, Map<ForgeChunkManager.TicketOwner<UUID>, it.unimi.dsi.fastutil.longs.LongSet> entityForcedChunks) Reads the forge entity forced chunks.static void
ForgeChunkManager.readForgeForcedChunks
(CompoundTag nbt, ForgeChunkManager.TicketTracker<BlockPos> blockForcedChunks, ForgeChunkManager.TicketTracker<UUID> entityForcedChunks) Reads the forge forced chunks from the NBT compound.static void
ForgeChunkManager.writeForgeForcedChunks
(CompoundTag nbt, ForgeChunkManager.TicketTracker<BlockPos> blockForcedChunks, ForgeChunkManager.TicketTracker<UUID> entityForcedChunks) Writes the forge forced chunks into the NBT compound.Modifier and TypeMethodDescriptionprivate static <T extends Comparable<? super T>>
voidForgeChunkManager.writeForcedChunkOwners
(Map<String, it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> forcedEntries, Map<ForgeChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> forcedChunks, String listKey, int listType, BiConsumer<T, ListTag> ownerWriter) private static <T extends Comparable<? super T>>
voidForgeChunkManager.writeForcedChunkOwners
(Map<String, it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompoundTag>> forcedEntries, ForgeChunkManager.TicketTracker<T> tracker, String listKey, int listType, BiConsumer<T, ListTag> ownerWriter) -
Uses of CompoundTag in net.minecraftforge.debug.block
Modifier and TypeMethodDescriptionFullPotsAccessorDemo.DioriteFlowerPotBlockEntity.getUpdateTag()
Modifier and TypeMethodDescriptionvoid
FullPotsAccessorDemo.DioriteFlowerPotBlockEntity.handleUpdateTag
(CompoundTag tag) void
FullPotsAccessorDemo.DioriteFlowerPotBlockEntity.load
(CompoundTag tag) protected void
FullPotsAccessorDemo.DioriteFlowerPotBlockEntity.saveAdditional
(CompoundTag tag) -
Uses of CompoundTag in net.minecraftforge.debug.client.model
Modifier and TypeMethodDescriptionCustomItemDisplayContextTest.ItemHangerBlockEntity.getUpdateTag()
Modifier and TypeMethodDescriptionvoid
CustomItemDisplayContextTest.ItemHangerBlockEntity.handleUpdateTag
(CompoundTag tag) void
CustomItemDisplayContextTest.ItemHangerBlockEntity.load
(CompoundTag tag) protected void
CustomItemDisplayContextTest.ItemHangerBlockEntity.saveAdditional
(CompoundTag tag) -
Uses of CompoundTag in net.minecraftforge.debug.entity
Modifier and TypeMethodDescriptionprotected void
PartEntityTest.TestEntityPart.addAdditionalSaveData
(CompoundTag nbt) protected void
PartEntityTest.TestEntityPart.readAdditionalSaveData
(CompoundTag nbt) -
Uses of CompoundTag in net.minecraftforge.debug.item
Modifier and TypeMethodDescriptionCustomFluidContainerTest.CustomFluidContainer.initCapabilities
(ItemStack stack, CompoundTag nbt) -
Uses of CompoundTag in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic @Nullable SpawnGroupData
ForgeEventFactory.onFinalizeSpawn
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, @Nullable CompoundTag spawnTag) Vanilla calls toMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData, net.minecraft.nbt.CompoundTag)
are replaced with calls to this method via coremod.
Mods should call this method in place of callingMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData, net.minecraft.nbt.CompoundTag)
.static MobSpawnEvent.FinalizeSpawn
ForgeEventFactory.onFinalizeSpawnSpawner
(Mob mob, ServerLevelAccessor level, DifficultyInstance difficulty, @Nullable SpawnGroupData spawnData, @Nullable CompoundTag spawnTag, BaseSpawner spawner) Returns the FinalizeSpawn event instance, or null if it was canceled.
This is separate since mob spawners perform special finalizeSpawn handling when NBT data is present, but we still want to fire the event.
This overload is also the only way to pass through aBaseSpawner
instance. -
Uses of CompoundTag in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate @Nullable CompoundTag
MobSpawnEvent.FinalizeSpawn.spawnTag
Modifier and TypeMethodDescription@Nullable CompoundTag
MobSpawnEvent.FinalizeSpawn.getSpawnTag()
This is the NBT data the entity was loaded from, if applicable.Modifier and TypeMethodDescriptionvoid
MobSpawnEvent.FinalizeSpawn.setSpawnTag
(@Nullable CompoundTag tag) Sets the spawn data for this event, which will be propagated toMob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.MobSpawnType, net.minecraft.world.entity.SpawnGroupData, net.minecraft.nbt.CompoundTag)
unless cancelled.ModifierConstructorDescriptionFinalizeSpawn
(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, @Nullable CompoundTag spawnTag, @Nullable BaseSpawner spawner) -
Uses of CompoundTag in net.minecraftforge.event.level
ModifierConstructorDescriptionChunkDataEvent
(ChunkAccess chunk, CompoundTag data) ChunkDataEvent
(ChunkAccess chunk, LevelAccessor world, CompoundTag data) Load
(ChunkAccess chunk, CompoundTag data, ChunkStatus.ChunkType status) Save
(ChunkAccess chunk, LevelAccessor world, CompoundTag data) -
Uses of CompoundTag in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionFluidStack.getChildTag
(String childName) FluidStack.getOrCreateChildTag
(String childName) FluidStack.getOrCreateTag()
FluidStack.getTag()
FluidStack.writeToNBT
(CompoundTag nbt) Modifier and TypeMethodDescriptionstatic FluidStack
FluidStack.loadFluidStackFromNBT
(CompoundTag nbt) This provides a safe method for retrieving a FluidStack - if the Fluid is invalid, the stack will return as null.void
FluidStack.setTag
(CompoundTag tag) FluidStack.writeToNBT
(CompoundTag nbt) -
Uses of CompoundTag in net.minecraftforge.fluids.capability
Modifier and TypeMethodDescriptionItemFluidContainer.initCapabilities
(@NotNull ItemStack stack, @Nullable CompoundTag nbt) void
FluidHandlerBlockEntity.load
(CompoundTag tag) protected void
FluidHandlerBlockEntity.saveAdditional
(CompoundTag tag) -
Uses of CompoundTag in net.minecraftforge.fluids.capability.templates
Modifier and TypeMethodDescriptionFluidTank.readFromNBT
(CompoundTag nbt) FluidTank.writeToNBT
(CompoundTag nbt) -
Uses of CompoundTag in net.minecraftforge.items
-
Uses of CompoundTag in net.minecraftforge.items.wrapper
Modifier and TypeMethodDescriptionprivate NonNullList<ItemStack>
ShulkerItemStackInvWrapper.refreshItemList
(CompoundTag rootTag) -
Uses of CompoundTag in net.minecraftforge.registries
Modifier and TypeMethodDescriptionstatic ForgeRegistry.Snapshot
ForgeRegistry.Snapshot.read
(CompoundTag nbt)