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 TagGroup<T>groupprivate Function<TagManager,TagGroup<T>>groupGetterprivate List<RequiredTagList.TagWrapper<T>>tags -
Constructor Summary
Constructors Constructor Description RequiredTagList(Function<TagManager,TagGroup<T>> managerGetter) -
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.List<? extends Tag.Identified<T>>getTags()voidupdateTagManager(TagManager tagManager)
-
Field Details
-
group
-
tags
-
groupGetter
-
-
Constructor Details
-
RequiredTagList
-
-
Method Details
-
add
-
clearAllTags
@Environment(CLIENT) public void clearAllTags() -
updateTagManager
-
getGroup
-
getTags
-
getMissingTags
Gets the required tags which are not supplied by the current datapacks.
-