Class RequiredTagList<T>

java.lang.Object
net.minecraft.tag.RequiredTagList<T>

public class RequiredTagList<T> extends Object
Stores all required tags of a given type, so they can be updated to point to the new tag instances on datapack reload
Mappings:
Namespace Name
official afy
intermediary net/minecraft/class_5120
named net/minecraft/tag/RequiredTagList
  • Field Details

    • registryKey

      private final RegistryKey<? extends Registry<T>> registryKey
      Mappings:
      Namespace Name Mixin selector
      official a Lafy;a:Lwv;
      intermediary field_28301 Lnet/minecraft/class_5120;field_28301:Lnet/minecraft/class_5321;
      named registryKey Lnet/minecraft/tag/RequiredTagList;registryKey:Lnet/minecraft/util/registry/RegistryKey;
    • dataType

      private final String dataType
      Mappings:
      Namespace Name Mixin selector
      official b Lafy;b:Ljava/lang/String;
      intermediary field_28302 Lnet/minecraft/class_5120;field_28302:Ljava/lang/String;
      named dataType Lnet/minecraft/tag/RequiredTagList;dataType:Ljava/lang/String;
    • group

      private TagGroup<T> group
      Mappings:
      Namespace Name Mixin selector
      official c Lafy;c:Lagb;
      intermediary field_23682 Lnet/minecraft/class_5120;field_23682:Lnet/minecraft/class_5414;
      named group Lnet/minecraft/tag/RequiredTagList;group:Lnet/minecraft/tag/TagGroup;
    • tags

      private final List<RequiredTagList.TagWrapper<T>> tags
      Mappings:
      Namespace Name Mixin selector
      official d Lafy;d:Ljava/util/List;
      intermediary field_23683 Lnet/minecraft/class_5120;field_23683:Ljava/util/List;
      named tags Lnet/minecraft/tag/RequiredTagList;tags:Ljava/util/List;
  • Constructor Details

    • RequiredTagList

      public RequiredTagList(RegistryKey<? extends Registry<T>> registryKey, String dataType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafy;<init>(Lwv;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_5120;<init>(Lnet/minecraft/class_5321;Ljava/lang/String;)V
      named <init> Lnet/minecraft/tag/RequiredTagList;<init>(Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/String;)V
  • Method Details

    • add

      public Tag.Identified<T> add(String id)
      Mappings:
      Namespace Name Mixin selector
      official a Lafy;a(Ljava/lang/String;)Laga$e;
      intermediary method_26773 Lnet/minecraft/class_5120;method_26773(Ljava/lang/String;)Lnet/minecraft/class_3494$class_5123;
      named add Lnet/minecraft/tag/RequiredTagList;add(Ljava/lang/String;)Lnet/minecraft/tag/Tag$Identified;
    • clearAllTags

      public void clearAllTags()
      Mappings:
      Namespace Name Mixin selector
      official a Lafy;a()V
      intermediary method_27061 Lnet/minecraft/class_5120;method_27061()V
      named clearAllTags Lnet/minecraft/tag/RequiredTagList;clearAllTags()V
    • updateTagManager

      public void updateTagManager(TagManager tagManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lafy;a(Lagc;)V
      intermediary method_26771 Lnet/minecraft/class_5120;method_26771(Lnet/minecraft/class_5415;)V
      named updateTagManager Lnet/minecraft/tag/RequiredTagList;updateTagManager(Lnet/minecraft/tag/TagManager;)V
    • getGroup

      public TagGroup<T> getGroup()
      Mappings:
      Namespace Name Mixin selector
      official b Lafy;b()Lagb;
      intermediary method_26770 Lnet/minecraft/class_5120;method_26770()Lnet/minecraft/class_5414;
      named getGroup Lnet/minecraft/tag/RequiredTagList;getGroup()Lnet/minecraft/tag/TagGroup;
    • getMissingTags

      public Set<Identifier> getMissingTags(TagManager tagManager)
      Gets the required tags which are not supplied by the current datapacks.
      Mappings:
      Namespace Name Mixin selector
      official b Lafy;b(Lagc;)Ljava/util/Set;
      intermediary method_29224 Lnet/minecraft/class_5120;method_29224(Lnet/minecraft/class_5415;)Ljava/util/Set;
      named getMissingTags Lnet/minecraft/tag/RequiredTagList;getMissingTags(Lnet/minecraft/tag/TagManager;)Ljava/util/Set;
    • getRegistryKey

      public RegistryKey<? extends Registry<T>> getRegistryKey()
      Mappings:
      Namespace Name Mixin selector
      official c Lafy;c()Lwv;
      intermediary method_33148 Lnet/minecraft/class_5120;method_33148()Lnet/minecraft/class_5321;
      named getRegistryKey Lnet/minecraft/tag/RequiredTagList;getRegistryKey()Lnet/minecraft/util/registry/RegistryKey;
    • getDataType

      public String getDataType()
      Mappings:
      Namespace Name Mixin selector
      official d Lafy;d()Ljava/lang/String;
      intermediary method_33149 Lnet/minecraft/class_5120;method_33149()Ljava/lang/String;
      named getDataType Lnet/minecraft/tag/RequiredTagList;getDataType()Ljava/lang/String;
    • addToManager

      protected void addToManager(TagManager.Builder manager)
      Mappings:
      Namespace Name Mixin selector
      official a Lafy;a(Lagc$a;)V
      intermediary method_33147 Lnet/minecraft/class_5120;method_33147(Lnet/minecraft/class_5415$class_5749;)V
      named addToManager Lnet/minecraft/tag/RequiredTagList;addToManager(Lnet/minecraft/tag/TagManager$Builder;)V