接口 TagGroup<T>


  • public interface TagGroup<T>
    Contains the set of tags all of the same type.
    Mappings:
    Namespace Name
    official aft
    intermediary net/minecraft/class_5414
    named net/minecraft/tag/TagGroup
    • 方法详细资料

      • getTags

        Map<Identifier,​Tag<T>> getTags()
        Mappings:
        Namespace Name Mixin selector
        official a Laft;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

        @Nullable
        default @Nullable Tag<T> getTag​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official a Laft;a(Lwp;)Lafs;
        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

        Tag<T> getTagOrEmpty​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official b Laft;b(Lwp;)Lafs;
        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;
      • method_34894

        @Nullable
        default @Nullable Identifier method_34894​(Tag.Identified<T> identified)
        Mappings:
        Namespace Name Mixin selector
        official a Laft;a(Lafs$e;)Lwp;
        intermediary method_34894 Lnet/minecraft/class_5414;method_34894(Lnet/minecraft/class_3494$class_5123;)Lnet/minecraft/class_2960;
        named method_34894 Lnet/minecraft/tag/TagGroup;method_34894(Lnet/minecraft/tag/Tag$Identified;)Lnet/minecraft/util/Identifier;
      • getUncheckedTagId

        @Nullable
        @Nullable Identifier getUncheckedTagId​(Tag<T> tag)
        Mappings:
        Namespace Name Mixin selector
        official a Laft;a(Lafs;)Lwp;
        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;
      • method_34895

        default boolean method_34895​(Identifier identifier)
        Mappings:
        Namespace Name Mixin selector
        official c Laft;c(Lwp;)Z
        intermediary method_34895 Lnet/minecraft/class_5414;method_34895(Lnet/minecraft/class_2960;)Z
        named method_34895 Lnet/minecraft/tag/TagGroup;method_34895(Lnet/minecraft/util/Identifier;)Z
      • getTagIds

        default Collection<Identifier> getTagIds()
        Mappings:
        Namespace Name Mixin selector
        official b Laft;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

        default Collection<Identifier> getTagsFor​(T object)
        Gets the identifiers of all tags an object is applicable to.
        Mappings:
        Namespace Name Mixin selector
        official a Laft;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;
      • serialize

        default TagGroup.Serialized serialize​(Registry<T> registry)
        Serializes this tag group.
        Mappings:
        Namespace Name Mixin selector
        official a Laft;a(Lgr;)Laft$a;
        intermediary method_30208 Lnet/minecraft/class_5414;method_30208(Lnet/minecraft/class_2378;)Lnet/minecraft/class_5414$class_5748;
        named serialize Lnet/minecraft/tag/TagGroup;serialize(Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/tag/TagGroup$Serialized;
      • deserialize

        static <T> TagGroup<T> deserialize​(TagGroup.Serialized serialized,
                                           Registry<? extends T> registry)
        Deserializes a serialized tag group.
        Mappings:
        Namespace Name Mixin selector
        official a Laft;a(Laft$a;Lgr;)Laft;
        intermediary method_33155 Lnet/minecraft/class_5414;method_33155(Lnet/minecraft/class_5414$class_5748;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5414;
        named deserialize Lnet/minecraft/tag/TagGroup;deserialize(Lnet/minecraft/tag/TagGroup$Serialized;Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/tag/TagGroup;
      • createEmpty

        static <T> TagGroup<T> createEmpty()
        Mappings:
        Namespace Name Mixin selector
        official c Laft;c()Laft;
        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

        static <T> TagGroup<T> create​(Map<Identifier,​Tag<T>> tags)
        Mappings:
        Namespace Name Mixin selector
        official a Laft;a(Ljava/util/Map;)Laft;
        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;