Package net.minecraft.tag
Class RequiredTagList<T>
java.lang.Object
net.minecraft.tag.RequiredTagList<T>
public class RequiredTagList<T> extends Object
Stores all required tags of a given type, so they can be updated to point to the new tag instances on datapack reload
- Mappings:
Namespace Name official afaintermediary net/minecraft/class_5120named net/minecraft/tag/RequiredTagList
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classRequiredTagList.TagWrapper<T> -
Field Summary
Fields Modifier and Type Field Description private Stringfield_28302private TagGroup<T>groupprivate RegistryKey<? extends Registry<T>>registryKeyprivate List<RequiredTagList.TagWrapper<T>>tags -
Constructor Summary
Constructors Constructor Description RequiredTagList(RegistryKey<? extends Registry<T>> registryKey, String string) -
Method Summary
Modifier and Type Method Description Tag.Identified<T>add(String id)voidclearAllTags()TagGroup<T>getGroup()Set<Identifier>getMissingTags(TagManager tagManager)Gets the required tags which are not supplied by the current datapacks.RegistryKey<? extends Registry<T>>getRegistryKey()protected voidmethod_33147(TagManager.class_5749 class_5749)Stringmethod_33149()voidupdateTagManager(TagManager tagManager)
-
Field Details
-
registryKey
- Mappings:
Namespace Name Mixin selector official aLafa;a:Lwa;intermediary field_28301Lnet/minecraft/class_5120;field_28301:Lnet/minecraft/class_5321;named registryKeyLnet/minecraft/tag/RequiredTagList;registryKey:Lnet/minecraft/util/registry/RegistryKey;
-
field_28302
- Mappings:
Namespace Name Mixin selector official bLafa;b:Ljava/lang/String;intermediary field_28302Lnet/minecraft/class_5120;field_28302:Ljava/lang/String;named field_28302Lnet/minecraft/tag/RequiredTagList;field_28302:Ljava/lang/String;
-
group
- Mappings:
Namespace Name Mixin selector official cLafa;c:Lafd;intermediary field_23682Lnet/minecraft/class_5120;field_23682:Lnet/minecraft/class_5414;named groupLnet/minecraft/tag/RequiredTagList;group:Lnet/minecraft/tag/TagGroup;
-
tags
- Mappings:
Namespace Name Mixin selector official dLafa;d:Ljava/util/List;intermediary field_23683Lnet/minecraft/class_5120;field_23683:Ljava/util/List;named tagsLnet/minecraft/tag/RequiredTagList;tags:Ljava/util/List;
-
-
Constructor Details
-
RequiredTagList
- Mappings:
Namespace Name Mixin selector official <init>Lafa;<init>(Lwa;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_5120;<init>(Lnet/minecraft/class_5321;Ljava/lang/String;)Vnamed <init>Lnet/minecraft/tag/RequiredTagList;<init>(Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/String;)V
-
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector official aLafa;a(Ljava/lang/String;)Lafc$e;intermediary method_26773Lnet/minecraft/class_5120;method_26773(Ljava/lang/String;)Lnet/minecraft/class_3494$class_5123;named addLnet/minecraft/tag/RequiredTagList;add(Ljava/lang/String;)Lnet/minecraft/tag/Tag$Identified;
-
clearAllTags
- Mappings:
Namespace Name Mixin selector official aLafa;a()Vintermediary method_27061Lnet/minecraft/class_5120;method_27061()Vnamed clearAllTagsLnet/minecraft/tag/RequiredTagList;clearAllTags()V
-
updateTagManager
- Mappings:
Namespace Name Mixin selector official aLafa;a(Lafe;)Vintermediary method_26771Lnet/minecraft/class_5120;method_26771(Lnet/minecraft/class_5415;)Vnamed updateTagManagerLnet/minecraft/tag/RequiredTagList;updateTagManager(Lnet/minecraft/tag/TagManager;)V
-
getGroup
- Mappings:
Namespace Name Mixin selector official bLafa;b()Lafd;intermediary method_26770Lnet/minecraft/class_5120;method_26770()Lnet/minecraft/class_5414;named getGroupLnet/minecraft/tag/RequiredTagList;getGroup()Lnet/minecraft/tag/TagGroup;
-
getMissingTags
Gets the required tags which are not supplied by the current datapacks.- Mappings:
Namespace Name Mixin selector official bLafa;b(Lafe;)Ljava/util/Set;intermediary method_29224Lnet/minecraft/class_5120;method_29224(Lnet/minecraft/class_5415;)Ljava/util/Set;named getMissingTagsLnet/minecraft/tag/RequiredTagList;getMissingTags(Lnet/minecraft/tag/TagManager;)Ljava/util/Set;
-
getRegistryKey
- Mappings:
Namespace Name Mixin selector official cLafa;c()Lwa;intermediary method_33148Lnet/minecraft/class_5120;method_33148()Lnet/minecraft/class_5321;named getRegistryKeyLnet/minecraft/tag/RequiredTagList;getRegistryKey()Lnet/minecraft/util/registry/RegistryKey;
-
method_33149
- Mappings:
Namespace Name Mixin selector official dLafa;d()Ljava/lang/String;intermediary method_33149Lnet/minecraft/class_5120;method_33149()Ljava/lang/String;named method_33149Lnet/minecraft/tag/RequiredTagList;method_33149()Ljava/lang/String;
-
method_33147
- Mappings:
Namespace Name Mixin selector official aLafa;a(Lafe$a;)Vintermediary method_33147Lnet/minecraft/class_5120;method_33147(Lnet/minecraft/class_5415$class_5749;)Vnamed method_33147Lnet/minecraft/tag/RequiredTagList;method_33147(Lnet/minecraft/tag/TagManager$class_5749;)V
-