Package net.minecraft.tag
Interface TagGroup<T>
public interface TagGroup<T>
Contains the set of tags all of the same type.
-
Method Summary
Modifier and Type Method Description static <T> TagGroup<T>create(Map<Identifier,Tag<T>> tags)static <T> TagGroup<T>createEmpty()static <T> TagGroup<T>fromPacket(PacketByteBuf buf, Registry<T> registry)default Tag<T>getTag(Identifier id)default IdentifiergetTagId(Tag<T> tag)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)default voidtoPacket(PacketByteBuf buf, DefaultedRegistry<T> registry)
-
Method Details
-
getTags
Map<Identifier,Tag<T>> getTags() -
getTag
-
getTagOrEmpty
-
getUncheckedTagId
-
getTagId
-
getTagIds
-
getTagsFor
Gets the identifiers of all tags an object is applicable to. -
toPacket
-
fromPacket
-
createEmpty
-
create
-