public class RequiredTagList<T> extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RequiredTagList.TagWrapper<T> |
Modifier and Type | Field and Description |
---|---|
private TagGroup<T> |
group |
private Function<TagManager,TagGroup<T>> |
groupGetter |
private List<RequiredTagList.TagWrapper<T>> |
tags |
Constructor and Description |
---|
RequiredTagList(Function<TagManager,TagGroup<T>> managerGetter) |
Modifier and Type | Method and Description |
---|---|
Tag.Identified<T> |
add(String id) |
void |
clearAllTags() |
TagGroup<T> |
getGroup() |
Set<Identifier> |
getMissingTags(TagManager manager)
Gets the required tags which are not supplied by the current datapacks.
|
List<? extends Tag.Identified<T>> |
getTags() |
void |
updateTagManager(TagManager manager) |
private final List<RequiredTagList.TagWrapper<T>> tags
private final Function<TagManager,TagGroup<T>> groupGetter
public RequiredTagList(Function<TagManager,TagGroup<T>> managerGetter)
public Tag.Identified<T> add(String id)
@Environment(value=CLIENT) public void clearAllTags()
public void updateTagManager(TagManager manager)
public List<? extends Tag.Identified<T>> getTags()
public Set<Identifier> getMissingTags(TagManager manager)