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 agbintermediary net/minecraft/class_5414named net/minecraft/tag/TagGroup
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA serialization-friendly POJO representation of a tag group. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontains(Identifier id)static <T> TagGroup<T>create(Map<Identifier,Tag<T>> tags)static <T> TagGroup<T>static <T> TagGroup<T>deserialize(TagGroup.Serialized serialized, Registry<? extends T> registry)Deserializes a serialized tag group.default @Nullable IdentifiergetId(Tag.Identified<T> tag)getTag(Identifier id)default Collection<Identifier>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.getUncheckedTagId(Tag<T> tag)default TagGroup.SerializedSerializes this tag group.
-
Method Details
-
getTags
Map<Identifier,Tag<T>> getTags()- Mappings:
Namespace Name Mixin selector official aLagb;a()Ljava/util/Map;intermediary method_30204Lnet/minecraft/class_5414;method_30204()Ljava/util/Map;named getTagsLnet/minecraft/tag/TagGroup;getTags()Ljava/util/Map;
-
getTag
- Mappings:
Namespace Name Mixin selector official aLagb;a(Lww;)Laga;intermediary method_30210Lnet/minecraft/class_5414;method_30210(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;named getTagLnet/minecraft/tag/TagGroup;getTag(Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
-
getTagOrEmpty
- Mappings:
Namespace Name Mixin selector official bLagb;b(Lww;)Laga;intermediary method_30213Lnet/minecraft/class_5414;method_30213(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;named getTagOrEmptyLnet/minecraft/tag/TagGroup;getTagOrEmpty(Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
-
getId
- Mappings:
Namespace Name Mixin selector official aLagb;a(Laga$e;)Lww;intermediary method_34894Lnet/minecraft/class_5414;method_34894(Lnet/minecraft/class_3494$class_5123;)Lnet/minecraft/class_2960;named getIdLnet/minecraft/tag/TagGroup;getId(Lnet/minecraft/tag/Tag$Identified;)Lnet/minecraft/util/Identifier;
-
getUncheckedTagId
- Mappings:
Namespace Name Mixin selector official aLagb;a(Laga;)Lww;intermediary method_30205Lnet/minecraft/class_5414;method_30205(Lnet/minecraft/class_3494;)Lnet/minecraft/class_2960;named getUncheckedTagIdLnet/minecraft/tag/TagGroup;getUncheckedTagId(Lnet/minecraft/tag/Tag;)Lnet/minecraft/util/Identifier;
-
contains
- Mappings:
Namespace Name Mixin selector official cLagb;c(Lww;)Zintermediary method_34895Lnet/minecraft/class_5414;method_34895(Lnet/minecraft/class_2960;)Znamed containsLnet/minecraft/tag/TagGroup;contains(Lnet/minecraft/util/Identifier;)Z
-
getTagIds
- Mappings:
Namespace Name Mixin selector official bLagb;b()Ljava/util/Collection;intermediary method_30211Lnet/minecraft/class_5414;method_30211()Ljava/util/Collection;named getTagIdsLnet/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 aLagb;a(Ljava/lang/Object;)Ljava/util/Collection;intermediary method_30206Lnet/minecraft/class_5414;method_30206(Ljava/lang/Object;)Ljava/util/Collection;named getTagsForLnet/minecraft/tag/TagGroup;getTagsFor(Ljava/lang/Object;)Ljava/util/Collection;
-
serialize
Serializes this tag group.- Mappings:
Namespace Name Mixin selector official aLagb;a(Lgw;)Lagb$a;intermediary method_30208Lnet/minecraft/class_5414;method_30208(Lnet/minecraft/class_2378;)Lnet/minecraft/class_5414$class_5748;named serializeLnet/minecraft/tag/TagGroup;serialize(Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/tag/TagGroup$Serialized;
-
deserialize
Deserializes a serialized tag group.- Mappings:
Namespace Name Mixin selector official aLagb;a(Lagb$a;Lgw;)Lagb;intermediary method_33155Lnet/minecraft/class_5414;method_33155(Lnet/minecraft/class_5414$class_5748;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5414;named deserializeLnet/minecraft/tag/TagGroup;deserialize(Lnet/minecraft/tag/TagGroup$Serialized;Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/tag/TagGroup;
-
createEmpty
- Mappings:
Namespace Name Mixin selector official cLagb;c()Lagb;intermediary method_30214Lnet/minecraft/class_5414;method_30214()Lnet/minecraft/class_5414;named createEmptyLnet/minecraft/tag/TagGroup;createEmpty()Lnet/minecraft/tag/TagGroup;
-
create
- Mappings:
Namespace Name Mixin selector official aLagb;a(Ljava/util/Map;)Lagb;intermediary method_30207Lnet/minecraft/class_5414;method_30207(Ljava/util/Map;)Lnet/minecraft/class_5414;named createLnet/minecraft/tag/TagGroup;create(Ljava/util/Map;)Lnet/minecraft/tag/TagGroup;
-