Uses of Interface
net.minecraft.nbt.Tag
Package
Description
-
Uses of Tag in net.minecraft.advancements.critereon
-
Uses of Tag in net.minecraft.client.player.inventory
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.DynamicOps
<Tag> Hotbar.DEFAULT_OPS
-
Uses of Tag in net.minecraft.commands.arguments
Modifier and TypeFieldDescriptionNbtPathArgument.MatchElementNode.predicate
NbtPathArgument.MatchObjectNode.predicate
NbtPathArgument.MatchRootObjectNode.predicate
Modifier and TypeMethodDescriptionNbtPathArgument.AllElementsNode.createPreferredParentTag()
NbtPathArgument.CompoundChildNode.createPreferredParentTag()
NbtPathArgument.IndexedElementNode.createPreferredParentTag()
NbtPathArgument.MatchElementNode.createPreferredParentTag()
NbtPathArgument.MatchObjectNode.createPreferredParentTag()
NbtPathArgument.MatchRootObjectNode.createPreferredParentTag()
NbtPathArgument.Node.createPreferredParentTag()
static <S> Tag
NbtTagArgument.getNbtTag
(com.mojang.brigadier.context.CommandContext<S> p_100663_, String p_100664_) NbtTagArgument.parse
(com.mojang.brigadier.StringReader p_100661_) (package private) static Tag
ResourceOrIdArgument.parseInlineOrId
(com.mojang.brigadier.StringReader p_335947_) Modifier and TypeMethodDescriptionNbtPathArgument.createTagPredicate
(CompoundTag p_99511_) NbtPathArgument.NbtPath.getOrCreate
(Tag p_99641_, Supplier<Tag> p_99642_) NbtPathArgument.Node.getOrCreate
(List<Tag> p_99659_, Supplier<Tag> p_99660_) NbtPathArgument.NbtPath.getOrCreateParents
(Tag p_99651_) Modifier and TypeMethodDescriptionint
NbtPathArgument.NbtPath.countMatching
(Tag p_99644_) NbtPathArgument.NbtPath.getOrCreate
(Tag p_99641_, Supplier<Tag> p_99642_) NbtPathArgument.NbtPath.getOrCreateParents
(Tag p_99651_) void
NbtPathArgument.AllElementsNode.getOrCreateTag
(Tag p_99528_, Supplier<Tag> p_99529_, List<Tag> p_99530_) void
NbtPathArgument.CompoundChildNode.getOrCreateTag
(Tag p_99544_, Supplier<Tag> p_99545_, List<Tag> p_99546_) void
NbtPathArgument.IndexedElementNode.getOrCreateTag
(Tag p_99560_, Supplier<Tag> p_99561_, List<Tag> p_99562_) void
NbtPathArgument.MatchElementNode.getOrCreateTag
(Tag p_99581_, Supplier<Tag> p_99582_, List<Tag> p_99583_) void
NbtPathArgument.MatchObjectNode.getOrCreateTag
(Tag p_99600_, Supplier<Tag> p_99601_, List<Tag> p_99602_) void
NbtPathArgument.MatchRootObjectNode.getOrCreateTag
(Tag p_99616_, Supplier<Tag> p_99617_, List<Tag> p_99618_) void
void
void
void
void
void
void
void
static boolean
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
Modifier and TypeMethodDescriptionprivate static int
private static int
NbtPathArgument.NbtPath.getOrCreate
(Tag p_99641_, Supplier<Tag> p_99642_) NbtPathArgument.Node.getOrCreate
(List<Tag> p_99659_, Supplier<Tag> p_99660_) NbtPathArgument.Node.getOrCreate
(List<Tag> p_99659_, Supplier<Tag> p_99660_) void
NbtPathArgument.AllElementsNode.getOrCreateTag
(Tag p_99528_, Supplier<Tag> p_99529_, List<Tag> p_99530_) void
NbtPathArgument.AllElementsNode.getOrCreateTag
(Tag p_99528_, Supplier<Tag> p_99529_, List<Tag> p_99530_) void
NbtPathArgument.CompoundChildNode.getOrCreateTag
(Tag p_99544_, Supplier<Tag> p_99545_, List<Tag> p_99546_) void
NbtPathArgument.CompoundChildNode.getOrCreateTag
(Tag p_99544_, Supplier<Tag> p_99545_, List<Tag> p_99546_) void
NbtPathArgument.IndexedElementNode.getOrCreateTag
(Tag p_99560_, Supplier<Tag> p_99561_, List<Tag> p_99562_) void
NbtPathArgument.IndexedElementNode.getOrCreateTag
(Tag p_99560_, Supplier<Tag> p_99561_, List<Tag> p_99562_) void
NbtPathArgument.MatchElementNode.getOrCreateTag
(Tag p_99581_, Supplier<Tag> p_99582_, List<Tag> p_99583_) void
NbtPathArgument.MatchElementNode.getOrCreateTag
(Tag p_99581_, Supplier<Tag> p_99582_, List<Tag> p_99583_) void
NbtPathArgument.MatchObjectNode.getOrCreateTag
(Tag p_99600_, Supplier<Tag> p_99601_, List<Tag> p_99602_) void
NbtPathArgument.MatchObjectNode.getOrCreateTag
(Tag p_99600_, Supplier<Tag> p_99601_, List<Tag> p_99602_) void
NbtPathArgument.MatchRootObjectNode.getOrCreateTag
(Tag p_99616_, Supplier<Tag> p_99617_, List<Tag> p_99618_) void
NbtPathArgument.MatchRootObjectNode.getOrCreateTag
(Tag p_99616_, Supplier<Tag> p_99617_, List<Tag> p_99618_) void
void
void
void
void
void
void
void
void
int
NbtPathArgument.NbtPath.insert
(int p_263397_, CompoundTag p_263348_, List<Tag> p_263419_) int
int
int
int
int
int
int
-
Uses of Tag in net.minecraft.commands.arguments.item
Modifier and TypeFieldDescription(package private) final com.mojang.serialization.DynamicOps
<Tag> ItemParser.registryOps
private final RegistryOps
<Tag> ItemPredicateArgument.Context.registryOps
Modifier and TypeMethodDescriptionComponentPredicateParser.Context.createComponentTest
(com.mojang.brigadier.ImmutableStringReader p_336142_, C p_336094_, Tag p_336057_) ItemPredicateArgument.Context.createComponentTest
(com.mojang.brigadier.ImmutableStringReader p_335953_, ItemPredicateArgument.ComponentWrapper p_335824_, Tag p_335973_) ComponentPredicateParser.Context.createPredicateTest
(com.mojang.brigadier.ImmutableStringReader p_335898_, P p_335609_, Tag p_335661_) ItemPredicateArgument.Context.createPredicateTest
(com.mojang.brigadier.ImmutableStringReader p_335414_, ItemPredicateArgument.PredicateWrapper p_335561_, Tag p_336073_) ItemPredicateArgument.ComponentWrapper.decode
(com.mojang.brigadier.ImmutableStringReader p_335970_, RegistryOps<Tag> p_335855_, Tag p_335892_) ItemPredicateArgument.PredicateWrapper.decode
(com.mojang.brigadier.ImmutableStringReader p_335497_, RegistryOps<Tag> p_335845_, Tag p_335487_) Modifier and TypeMethodDescriptionItemPredicateArgument.ComponentWrapper.decode
(com.mojang.brigadier.ImmutableStringReader p_335970_, RegistryOps<Tag> p_335855_, Tag p_335892_) ItemPredicateArgument.PredicateWrapper.decode
(com.mojang.brigadier.ImmutableStringReader p_335497_, RegistryOps<Tag> p_335845_, Tag p_335487_) -
Uses of Tag in net.minecraft.commands.functions
-
Uses of Tag in net.minecraft.core
Modifier and TypeFieldDescriptionRegistrySynchronization.PackedRegistryEntry.data
The field for thedata
record component.Modifier and TypeMethodDescriptionRegistrySynchronization.PackedRegistryEntry.data()
Returns the value of thedata
record component.Modifier and TypeMethodDescriptionstatic void
RegistrySynchronization.packRegistries
(com.mojang.serialization.DynamicOps<Tag> p_321796_, RegistryAccess p_321733_, Set<KnownPack> p_326143_, BiConsumer<ResourceKey<? extends Registry<?>>, List<RegistrySynchronization.PackedRegistryEntry>> p_321539_) private static <T> void
RegistrySynchronization.packRegistry
(com.mojang.serialization.DynamicOps<Tag> p_321608_, RegistryDataLoader.RegistryData<T> p_321701_, RegistryAccess p_321717_, Set<KnownPack> p_326432_, BiConsumer<ResourceKey<? extends Registry<?>>, List<RegistrySynchronization.PackedRegistryEntry>> p_321724_) ModifierConstructorDescriptionPackedRegistryEntry
(ResourceLocation id, Optional<Tag> data) Creates an instance of aPackedRegistryEntry
record class. -
Uses of Tag in net.minecraft.nbt
Modifier and TypeClassDescriptionclass
CollectionTag<T extends Tag>
interface
static interface
TagType.StaticSize<T extends Tag>
static interface
TagType.VariableSize<T extends Tag>
Modifier and TypeClassDescriptionclass
class
class
CollectionTag<T extends Tag>
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionByteArrayTag.copy()
Tag.copy()
NbtOps.createBoolean
(boolean p_129050_) NbtOps.createByte
(byte p_128963_) NbtOps.createByteList
(ByteBuffer p_128990_) NbtOps.createDouble
(double p_128972_) NbtOps.createFloat
(float p_128974_) NbtOps.createInt
(int p_128976_) NbtOps.createIntList
(IntStream p_129000_) NbtOps.createList
(Stream<Tag> p_129052_) NbtOps.createLong
(long p_128978_) NbtOps.createLongList
(LongStream p_129002_) NbtOps.createNumeric
(Number p_128983_) NbtOps.createShort
(short p_129048_) NbtOps.createString
(String p_128985_) NbtOps.empty()
ListTag.get
(int p_128781_) static Tag
NbtIo.readAnyTag
(DataInput p_294481_, NbtAccounter p_294287_) private Tag
TagParser.readArrayTag()
protected Tag
TagParser.readList()
private Tag
TagParser.readListTag()
(package private) static Tag
CompoundTag.readNamedTagData
(TagType<?> p_128414_, String p_128415_, DataInput p_128416_, NbtAccounter p_128418_) private static Tag
NbtIo.readTagSafe
(DataInput p_295228_, NbtAccounter p_294806_, byte p_294992_) protected Tag
TagParser.readTypedValue()
private static Tag
NbtIo.readUnnamedTag
(DataInput p_128931_, NbtAccounter p_128933_) TagParser.readValue()
ListTag.remove
(int p_128751_) NbtOps.ByteListCollector.result()
NbtOps.HeterogenousListCollector.result()
NbtOps.HomogenousListCollector.result()
NbtOps.InitialListCollector.result()
NbtOps.IntListCollector.result()
NbtOps.ListCollector.result()
NbtOps.LongListCollector.result()
private static Tag
NbtOps.tryUnwrap
(CompoundTag p_251041_) private Tag
private static Tag
NbtOps.HeterogenousListCollector.wrapIfNeeded
(Tag p_252042_) static Tag
NbtUtils.writeBlockPos
(BlockPos p_129225_) Modifier and TypeMethodDescriptionprotected com.mojang.serialization.DataResult
<Tag> NbtOps.NbtRecordBuilder.build
(CompoundTag p_129190_, Tag p_129191_) CompoundTag.entrySet()
com.mojang.serialization.DataResult
<com.mojang.serialization.MapLike<Tag>> com.mojang.serialization.DataResult
<Consumer<BiConsumer<Tag, Tag>>> NbtOps.getMapEntries
(Tag p_129103_) com.mojang.serialization.DataResult
<Consumer<BiConsumer<Tag, Tag>>> NbtOps.getMapEntries
(Tag p_129103_) NbtOps.getMapValues
(Tag p_129070_) NbtOps.getMapValues
(Tag p_129070_) com.mojang.serialization.RecordBuilder
<Tag> NbtOps.mapBuilder()
com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToList
(Tag p_129038_, List<Tag> p_129039_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToList
(Tag p_129041_, Tag p_129042_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_129032_, com.mojang.serialization.MapLike<Tag> p_129033_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_341945_, Map<Tag, Tag> p_341920_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_129044_, Tag p_129045_, Tag p_129046_) Modifier and TypeMethodDescriptionvoid
boolean
abstract boolean
boolean
boolean
boolean
protected CompoundTag
NbtOps.NbtRecordBuilder.append
(String p_129186_, Tag p_129187_, CompoundTag p_129188_) private void
TextComponentTagVisitor.appendSubTag
(Tag p_347469_, boolean p_347632_) protected com.mojang.serialization.DataResult
<Tag> NbtOps.NbtRecordBuilder.build
(CompoundTag p_129190_, Tag p_129191_) static boolean
NbtUtils.compareNbt
(Tag p_129236_, Tag p_129237_, boolean p_129238_) <U> U
private static Optional
<NbtOps.ListCollector> NbtOps.createCollector
(Tag p_249503_) com.mojang.serialization.DataResult
<ByteBuffer> NbtOps.getByteBuffer
(Tag p_129132_) com.mojang.serialization.DataResult
<IntStream> NbtOps.getIntStream
(Tag p_129134_) com.mojang.serialization.DataResult
<LongStream> NbtOps.getLongStream
(Tag p_129136_) com.mojang.serialization.DataResult
<com.mojang.serialization.MapLike<Tag>> com.mojang.serialization.DataResult
<Consumer<BiConsumer<Tag, Tag>>> NbtOps.getMapEntries
(Tag p_129103_) NbtOps.getMapValues
(Tag p_129070_) com.mojang.serialization.DataResult
<Number> NbtOps.getNumberValue
(Tag p_129030_) com.mojang.serialization.DataResult
<String> NbtOps.getStringValue
(Tag p_129061_) static UUID
com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToList
(Tag p_129038_, List<Tag> p_129039_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToList
(Tag p_129041_, Tag p_129042_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_129032_, com.mojang.serialization.MapLike<Tag> p_129033_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_341945_, Map<Tag, Tag> p_341920_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_129044_, Tag p_129045_, Tag p_129046_) static StringBuilder
NbtUtils.prettyPrint
(StringBuilder p_178027_, Tag p_178028_, int p_178029_, boolean p_178030_) static String
NbtUtils.prettyPrint
(Tag p_178058_) static String
NbtUtils.prettyPrint
(Tag p_178051_, boolean p_178052_) boolean
abstract boolean
boolean
boolean
boolean
static Component
NbtUtils.toPrettyComponent
(Tag p_178062_) private boolean
ListTag.updateType
(Tag p_128739_) private static CompoundTag
NbtOps.HeterogenousListCollector.wrapElement
(Tag p_251263_) private static Tag
NbtOps.HeterogenousListCollector.wrapIfNeeded
(Tag p_252042_) static void
NbtIo.writeAnyTag
(Tag p_294166_, DataOutput p_295552_) private static void
CompoundTag.writeNamedTag
(String p_128369_, Tag p_128370_, DataOutput p_128371_) static void
NbtIo.writeUnnamedTag
(Tag p_128951_, DataOutput p_128952_) static void
NbtIo.writeUnnamedTagWithFallback
(Tag p_311861_, DataOutput p_312306_) Modifier and TypeMethodDescriptiondefault NbtOps.ListCollector
default NbtOps.ListCollector
NbtOps.createList
(Stream<Tag> p_129052_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToList
(Tag p_129038_, List<Tag> p_129039_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_129032_, com.mojang.serialization.MapLike<Tag> p_129033_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_341945_, Map<Tag, Tag> p_341920_) com.mojang.serialization.DataResult
<Tag> NbtOps.mergeToMap
(Tag p_341945_, Map<Tag, Tag> p_341920_) ModifierConstructorDescriptionprotected
CompoundTag
(Map<String, Tag> p_128333_) HeterogenousListCollector
(Collection<Tag> p_249606_) (package private)
-
Uses of Tag in net.minecraft.nbt.visitors
-
Uses of Tag in net.minecraft.network
Modifier and TypeMethodDescriptionstatic Tag
FriendlyByteBuf.readNbt
(io.netty.buffer.ByteBuf p_320170_, NbtAccounter p_320055_) FriendlyByteBuf.readNbt
(NbtAccounter p_130082_) Modifier and TypeMethodDescriptionstatic void
Modifier and TypeMethodDescription<T> T
FriendlyByteBuf.readWithCodec
(com.mojang.serialization.DynamicOps<Tag> p_266903_, com.mojang.serialization.Codec<T> p_267107_, NbtAccounter p_295027_) Deprecated.<T> T
FriendlyByteBuf.readWithCodecTrusted
(com.mojang.serialization.DynamicOps<Tag> p_295347_, com.mojang.serialization.Codec<T> p_296304_) Deprecated.<T> FriendlyByteBuf
FriendlyByteBuf.writeWithCodec
(com.mojang.serialization.DynamicOps<Tag> p_266702_, com.mojang.serialization.Codec<T> p_267245_, T p_266783_) Deprecated. -
Uses of Tag in net.minecraft.network.codec
Modifier and TypeFieldDescriptionstatic final StreamCodec
<io.netty.buffer.ByteBuf, Tag> ByteBufCodecs.TAG
static final StreamCodec
<io.netty.buffer.ByteBuf, Tag> ByteBufCodecs.TRUSTED_TAG
Modifier and TypeMethodDescriptionstatic StreamCodec
<io.netty.buffer.ByteBuf, Tag> ByteBufCodecs.tagCodec
(Supplier<NbtAccounter> p_320506_) -
Uses of Tag in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static CommandSourceStack
ExecuteCommand.storeData
(CommandSourceStack p_137118_, DataAccessor p_137119_, NbtPathArgument.NbtPath p_137120_, IntFunction<Tag> p_137121_, boolean p_137122_) -
Uses of Tag in net.minecraft.server.commands.data
Modifier and TypeMethodDescriptionstatic Tag
DataCommands.getSingleTag
(NbtPathArgument.NbtPath p_139399_, DataAccessor p_139400_) Modifier and TypeMethodDescriptionDataCommands.getSingletonSource
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265108_, DataCommands.DataProvider p_265370_) DataCommands.resolveSourcePath
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_265468_, DataCommands.DataProvider p_265670_) DataCommands.stringifyTagList
(List<Tag> p_288980_, DataCommands.StringProcessor p_289012_) Modifier and TypeMethodDescriptionprivate static String
BlockDataAccessor.getPrintSuccess
(Tag p_139309_) DataAccessor.getPrintSuccess
(Tag p_139324_) EntityDataAccessor.getPrintSuccess
(Tag p_139521_) StorageDataAccessor.getPrintSuccess
(Tag p_139558_) Modifier and TypeMethodDescriptionprivate static int
DataCommands.manipulateData
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139376_, DataCommands.DataProvider p_139377_, DataCommands.DataManipulator p_139378_, List<Tag> p_139379_) int
DataCommands.DataManipulator.modify
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_139496_, CompoundTag p_139497_, NbtPathArgument.NbtPath p_139498_, List<Tag> p_139499_) DataCommands.stringifyTagList
(List<Tag> p_288980_, DataCommands.StringProcessor p_289012_) -
Uses of Tag in net.minecraft.util.parsing.packrat.commands
Modifier and TypeMethodDescriptionTagParseRule.parse
(ParseState<com.mojang.brigadier.StringReader> p_336059_) -
Uses of Tag in net.minecraft.world.effect
-
Uses of Tag in net.minecraft.world.entity
-
Uses of Tag in net.minecraft.world.entity.monster
-
Uses of Tag in net.minecraft.world.entity.npc
-
Uses of Tag in net.minecraft.world.item
Modifier and TypeMethodDescriptionItemStack.save
(HolderLookup.Provider p_332160_) ItemStack.save
(HolderLookup.Provider p_331900_, Tag p_330830_) ItemStack.saveOptional
(HolderLookup.Provider p_330895_) Modifier and TypeMethodDescriptionItemStack.parse
(HolderLookup.Provider p_331096_, Tag p_330238_) ItemStack.save
(HolderLookup.Provider p_331900_, Tag p_330830_) -
Uses of Tag in net.minecraft.world.item.component
Modifier and TypeMethodDescription<T> com.mojang.serialization.DataResult
<T> CustomData.read
(com.mojang.serialization.DynamicOps<Tag> p_346230_, com.mojang.serialization.MapDecoder<T> p_344951_) <T> com.mojang.serialization.DataResult
<CustomData> CustomData.update
(com.mojang.serialization.DynamicOps<Tag> p_346001_, com.mojang.serialization.MapEncoder<T> p_331823_, T p_332045_) -
Uses of Tag in net.minecraft.world.level.block.entity.vault
Modifier and TypeMethodDescriptionprivate static <T> Tag
VaultBlockEntity.encode
(com.mojang.serialization.Codec<T> p_324465_, T p_324338_, HolderLookup.Provider p_331118_) -
Uses of Tag in net.minecraft.world.level.chunk.storage
Modifier and TypeMethodDescriptioncom.mojang.serialization.Dynamic
<Tag> SimpleRegionStorage.upgradeChunkTag
(com.mojang.serialization.Dynamic<Tag> p_321643_, int p_321759_) Modifier and TypeMethodDescriptionprivate void
SectionStorage.readColumn
(ChunkPos p_63802_, RegistryOps<Tag> p_321830_, CompoundTag p_321530_) com.mojang.serialization.Dynamic
<Tag> SimpleRegionStorage.upgradeChunkTag
(com.mojang.serialization.Dynamic<Tag> p_321643_, int p_321759_) -
Uses of Tag in net.minecraft.world.level.levelgen.structure.pieces
Modifier and TypeMethodDescriptionPiecesContainer.save
(StructurePieceSerializationContext p_192750_) -
Uses of Tag in net.minecraft.world.level.storage
Modifier and TypeMethodDescriptionprivate static Tag
LevelStorageSource.readLightweightData
(Path p_230837_) -
Uses of Tag in net.minecraft.world.level.storage.loot.functions
Modifier and TypeMethodDescriptionvoid
abstract void
CopyCustomDataFunction.MergeStrategy.merge
(Tag p_330558_, NbtPathArgument.NbtPath p_331810_, List<Tag> p_330953_) -
Uses of Tag in net.minecraft.world.level.storage.loot.providers.nbt
Modifier and TypeMethodDescriptionContextNbtProvider.get
(LootContext p_165573_) ContextNbtProvider.Getter.get
(LootContext p_165591_) NbtProvider.get
(LootContext p_165622_) StorageNbtProvider.get
(LootContext p_165636_) -
Uses of Tag in net.minecraft.world.ticks
-
Uses of Tag in net.neoforged.neoforge.attachment
Modifier and TypeInterfaceDescriptioninterface
IAttachmentSerializer<S extends Tag,
T> Serializer for data attachments.Modifier and TypeMethodDescriptionprivate static <T,
H extends Tag>
IAttachmentCopyHandler<T> AttachmentType.defaultCopyHandler
(@Nullable IAttachmentSerializer<H, T> serializer) static <S extends Tag,
T extends INBTSerializable<S>>
AttachmentType.Builder<T> AttachmentType.serializable
(Function<IAttachmentHolder, T> defaultValueConstructor) Create a builder for an attachment type that usesINBTSerializable
for serialization.static <S extends Tag,
T extends INBTSerializable<S>>
AttachmentType.Builder<T> AttachmentType.serializable
(Supplier<T> defaultValueSupplier) Create a builder for an attachment type that usesINBTSerializable
for serialization. -
Uses of Tag in net.neoforged.neoforge.common.util
Modifier and TypeInterfaceDescriptioninterface
INBTSerializable<T extends Tag>
An interface designed to unify various things in the Minecraft code base that can be serialized to and from a NBT tag.Modifier and TypeMethodDescriptionstatic <T extends DataComponentHolder>
TagDataComponentUtil.wrapEncodingExceptions
(T componentHolder, com.mojang.serialization.Codec<T> codec, HolderLookup.Provider provider) Wraps encoding exceptions and adds additional logging for a DataComponentHolder that failed to save.static <T extends DataComponentHolder>
TagDataComponentUtil.wrapEncodingExceptions
(T componentHolder, com.mojang.serialization.Codec<T> codec, HolderLookup.Provider provider, Tag tag) Wraps encoding exceptions and adds additional logging for a DataComponentHolder that failed to save.Modifier and TypeMethodDescriptionstatic void
DataComponentUtil.logDataComponentSaveError
(DataComponentHolder componentHolder, Exception original, @Nullable Tag tag) Logs component information and tag data for a DataComponentHolder that failed to save.static <T extends DataComponentHolder>
TagDataComponentUtil.wrapEncodingExceptions
(T componentHolder, com.mojang.serialization.Codec<T> codec, HolderLookup.Provider provider, Tag tag) Wraps encoding exceptions and adds additional logging for a DataComponentHolder that failed to save. -
Uses of Tag in net.neoforged.neoforge.energy
Modifier and TypeMethodDescriptionvoid
EnergyStorage.deserializeNBT
(HolderLookup.Provider provider, Tag nbt) -
Uses of Tag in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescriptionFluidStack.save
(HolderLookup.Provider lookupProvider) Saves this stack to a new tag.FluidStack.save
(HolderLookup.Provider lookupProvider, Tag prefix) Saves this stack to a tag, directly writing the keys into the passed tag.FluidStack.saveOptional
(HolderLookup.Provider lookupProvider) Saves this stack to a new tag.Modifier and TypeMethodDescriptionstatic Optional
<FluidStack> FluidStack.parse
(HolderLookup.Provider lookupProvider, Tag tag) Tries to parse a fluid stack.FluidStack.save
(HolderLookup.Provider lookupProvider, Tag prefix) Saves this stack to a tag, directly writing the keys into the passed tag.