public interface TagGroup<T>
Modifier and Type | Method and 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 Identifier |
getTagId(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.
|
Identifier |
getUncheckedTagId(Tag<T> tag) |
default void |
toPacket(PacketByteBuf buf,
DefaultedRegistry<T> registry) |
Map<Identifier,Tag<T>> getTags()
@Nullable default Tag<T> getTag(Identifier id)
Tag<T> getTagOrEmpty(Identifier id)
@Nullable Identifier getUncheckedTagId(Tag<T> tag)
default Identifier getTagId(Tag<T> tag)
default Collection<Identifier> getTagIds()
@Environment(value=CLIENT) default Collection<Identifier> getTagsFor(T object)
default void toPacket(PacketByteBuf buf, DefaultedRegistry<T> registry)
static <T> TagGroup<T> fromPacket(PacketByteBuf buf, Registry<T> registry)
static <T> TagGroup<T> createEmpty()
static <T> TagGroup<T> create(Map<Identifier,Tag<T>> tags)