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.
The propagation of data pack reload is done by RequiredTagListRegistry.
- Mappings:
Namespace Name official ahkintermediary net/minecraft/class_5120named net/minecraft/tag/RequiredTagList
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final RegistryKey<? extends Registry<T>>private final 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>>Returns the registry key representing the type of object in this list.voidupdateTagManager(TagManager tagManager)
-
Field Details
-
registryKey
- Mappings:
Namespace Name Mixin selector official aLahk;a:Lyb;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 bLahk;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 cLahk;c:Lahn;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 dLahk;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>Lahk;<init>(Lyb;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 aLahk;a(Ljava/lang/String;)Lahm$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 aLahk;a()Vintermediary method_27061Lnet/minecraft/class_5120;method_27061()Vnamed clearAllTagsLnet/minecraft/tag/RequiredTagList;clearAllTags()V
-
updateTagManager
- Mappings:
Namespace Name Mixin selector official aLahk;a(Laho;)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 bLahk;b()Lahn;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 bLahk;b(Laho;)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
Returns the registry key representing the type of object in this list.- Returns:
- the registry key representing the type of object in this list
- Mappings:
Namespace Name Mixin selector official cLahk;c()Lyb;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 dLahk;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 aLahk;a(Laho$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
-