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
-
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
-
field_28302
-
group
-
tags
-
-
Constructor Details
-
RequiredTagList
-
-
Method Details
-
add
-
clearAllTags
@Environment(CLIENT) public void clearAllTags() -
updateTagManager
-
getGroup
-
getMissingTags
Gets the required tags which are not supplied by the current datapacks. -
getRegistryKey
-
method_33149
-
method_33147
-