Package net.minecraft.tag
Interface TagGroup<T>
public interface TagGroup<T>
Contains the set of tags all of the same type.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTagGroup.class_5748 -
Method Summary
Modifier and Type Method Description static <T> TagGroup<T>create(Map<Identifier,Tag<T>> tags)static <T> TagGroup<T>createEmpty()default Tag<T>getTag(Identifier id)default Collection<Identifier>getTagIds()Tag<T>getTagOrEmpty(Identifier id)Map<Identifier,Tag<T>>getTags()default Collection<Identifier>getTagsFor(T object)Gets the identifiers of all tags an object is applicable to.IdentifiergetUncheckedTagId(Tag<T> tag)static <T> TagGroup<T>method_33155(TagGroup.class_5748 class_5748, Registry<? extends T> registry)default TagGroup.class_5748toPacket(Registry<T> registry)
-
Method Details
-
getTags
Map<Identifier,Tag<T>> getTags() -
getTag
-
getTagOrEmpty
-
getUncheckedTagId
-
getTagIds
-
getTagsFor
Gets the identifiers of all tags an object is applicable to. -
toPacket
-
method_33155
@Environment(CLIENT) static <T> TagGroup<T> method_33155(TagGroup.class_5748 class_5748, Registry<? extends T> registry) -
createEmpty
-
create
-