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 RegistryKey<? extends Registry<T>>field_28301private Stringfield_28302private TagGroup<T>groupprivate 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.protected voidmethod_33147(TagManager.class_5749 class_5749)RegistryKey<? extends Registry<T>>method_33148()Stringmethod_33149()voidupdateTagManager(TagManager tagManager)
-
Field Details
-
field_28301
-
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. -
method_33148
-
method_33149
-
method_33147
-