Package net.minecraft.tag
Interface TagGroup<T>
public interface TagGroup<T>
Contains the set of tags all of the same type.
- Mappings:
Namespace Name official afd
intermediary net/minecraft/class_5414
named net/minecraft/tag/TagGroup
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TagGroup.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.Identifier
getUncheckedTagId(Tag<T> tag)
static <T> TagGroup<T>
method_33155(TagGroup.class_5748 class_5748, Registry<? extends T> registry)
default TagGroup.class_5748
toPacket(Registry<T> registry)
-
Method Details
-
getTags
Map<Identifier,Tag<T>> getTags()- Mappings:
Namespace Name Mixin selector official a
Lafd;a()Ljava/util/Map;
intermediary method_30204
Lnet/minecraft/class_5414;method_30204()Ljava/util/Map;
named getTags
Lnet/minecraft/tag/TagGroup;getTags()Ljava/util/Map;
-
getTag
- Mappings:
Namespace Name Mixin selector official a
Lafd;a(Lwb;)Lafc;
intermediary method_30210
Lnet/minecraft/class_5414;method_30210(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;
named getTag
Lnet/minecraft/tag/TagGroup;getTag(Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
-
getTagOrEmpty
- Mappings:
Namespace Name Mixin selector official b
Lafd;b(Lwb;)Lafc;
intermediary method_30213
Lnet/minecraft/class_5414;method_30213(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;
named getTagOrEmpty
Lnet/minecraft/tag/TagGroup;getTagOrEmpty(Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
-
getUncheckedTagId
- Mappings:
Namespace Name Mixin selector official a
Lafd;a(Lafc;)Lwb;
intermediary method_30205
Lnet/minecraft/class_5414;method_30205(Lnet/minecraft/class_3494;)Lnet/minecraft/class_2960;
named getUncheckedTagId
Lnet/minecraft/tag/TagGroup;getUncheckedTagId(Lnet/minecraft/tag/Tag;)Lnet/minecraft/util/Identifier;
-
getTagIds
- Mappings:
Namespace Name Mixin selector official b
Lafd;b()Ljava/util/Collection;
intermediary method_30211
Lnet/minecraft/class_5414;method_30211()Ljava/util/Collection;
named getTagIds
Lnet/minecraft/tag/TagGroup;getTagIds()Ljava/util/Collection;
-
getTagsFor
Gets the identifiers of all tags an object is applicable to.- Mappings:
Namespace Name Mixin selector official a
Lafd;a(Ljava/lang/Object;)Ljava/util/Collection;
intermediary method_30206
Lnet/minecraft/class_5414;method_30206(Ljava/lang/Object;)Ljava/util/Collection;
named getTagsFor
Lnet/minecraft/tag/TagGroup;getTagsFor(Ljava/lang/Object;)Ljava/util/Collection;
-
toPacket
- Mappings:
Namespace Name Mixin selector official a
Lafd;a(Lgn;)Lafd$a;
intermediary method_30208
Lnet/minecraft/class_5414;method_30208(Lnet/minecraft/class_2378;)Lnet/minecraft/class_5414$class_5748;
named toPacket
Lnet/minecraft/tag/TagGroup;toPacket(Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/tag/TagGroup$class_5748;
-
method_33155
@Environment(CLIENT) static <T> TagGroup<T> method_33155(TagGroup.class_5748 class_5748, Registry<? extends T> registry)- Mappings:
Namespace Name Mixin selector official a
Lafd;a(Lafd$a;Lgn;)Lafd;
intermediary method_33155
Lnet/minecraft/class_5414;method_33155(Lnet/minecraft/class_5414$class_5748;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5414;
named method_33155
Lnet/minecraft/tag/TagGroup;method_33155(Lnet/minecraft/tag/TagGroup$class_5748;Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/tag/TagGroup;
-
createEmpty
- Mappings:
Namespace Name Mixin selector official c
Lafd;c()Lafd;
intermediary method_30214
Lnet/minecraft/class_5414;method_30214()Lnet/minecraft/class_5414;
named createEmpty
Lnet/minecraft/tag/TagGroup;createEmpty()Lnet/minecraft/tag/TagGroup;
-
create
- Mappings:
Namespace Name Mixin selector official a
Lafd;a(Ljava/util/Map;)Lafd;
intermediary method_30207
Lnet/minecraft/class_5414;method_30207(Ljava/util/Map;)Lnet/minecraft/class_5414;
named create
Lnet/minecraft/tag/TagGroup;create(Ljava/util/Map;)Lnet/minecraft/tag/TagGroup;
-