Package net.minecraft.tag
Class RequiredTagList<T>
java.lang.Object
net.minecraft.tag.RequiredTagList<T>
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 afsintermediary net/minecraft/class_5120named net/minecraft/tag/RequiredTagList
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate RegistryKey<? extends Registry<T>>private List<RequiredTagList.TagWrapper<T>> -
Constructor Summary
ConstructorsConstructorDescriptionRequiredTagList(RegistryKey<? extends Registry<T>> registryKey, String dataType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToManager(TagManager.Builder manager)voidgetGroup()getMissingTags(TagManager tagManager)Gets the required tags which are not supplied by the current datapacks.RegistryKey<? extends Registry<T>>voidupdateTagManager(TagManager tagManager)
-
Field Details
-
registryKey
- Mappings:
Namespace Name Mixin selector official aLafs;a:Lwq;intermediary field_28301Lnet/minecraft/class_5120;field_28301:Lnet/minecraft/class_5321;named registryKeyLnet/minecraft/tag/RequiredTagList;registryKey:Lnet/minecraft/util/registry/RegistryKey;
-
dataType
- Mappings:
Namespace Name Mixin selector official bLafs;b:Ljava/lang/String;intermediary field_28302Lnet/minecraft/class_5120;field_28302:Ljava/lang/String;named dataTypeLnet/minecraft/tag/RequiredTagList;dataType:Ljava/lang/String;
-
group
- Mappings:
Namespace Name Mixin selector official cLafs;c:Lafv;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 dLafs;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>Lafs;<init>(Lwq;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 aLafs;a(Ljava/lang/String;)Lafu$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
public void clearAllTags()- Mappings:
Namespace Name Mixin selector official aLafs;a()Vintermediary method_27061Lnet/minecraft/class_5120;method_27061()Vnamed clearAllTagsLnet/minecraft/tag/RequiredTagList;clearAllTags()V
-
updateTagManager
- Mappings:
Namespace Name Mixin selector official aLafs;a(Lafw;)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 bLafs;b()Lafv;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 bLafs;b(Lafw;)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 cLafs;c()Lwq;intermediary method_33148Lnet/minecraft/class_5120;method_33148()Lnet/minecraft/class_5321;named getRegistryKeyLnet/minecraft/tag/RequiredTagList;getRegistryKey()Lnet/minecraft/util/registry/RegistryKey;
-
getDataType
- Mappings:
Namespace Name Mixin selector official dLafs;d()Ljava/lang/String;intermediary method_33149Lnet/minecraft/class_5120;method_33149()Ljava/lang/String;named getDataTypeLnet/minecraft/tag/RequiredTagList;getDataType()Ljava/lang/String;
-
addToManager
- Mappings:
Namespace Name Mixin selector official aLafs;a(Lafw$a;)Vintermediary method_33147Lnet/minecraft/class_5120;method_33147(Lnet/minecraft/class_5415$class_5749;)Vnamed addToManagerLnet/minecraft/tag/RequiredTagList;addToManager(Lnet/minecraft/tag/TagManager$Builder;)V
-