Class TagManager

java.lang.Object
net.minecraft.tag.TagManager

public class TagManager extends Object
Mappings:
Namespace Name
official agc
intermediary net/minecraft/class_5415
named net/minecraft/tag/TagManager
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lagc;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_28305 Lnet/minecraft/class_5415;field_28305:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/tag/TagManager;LOGGER:Lorg/apache/logging/log4j/Logger;
    • EMPTY

      public static final TagManager EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a:Lagc;
      intermediary field_25744 Lnet/minecraft/class_5415;field_25744:Lnet/minecraft/class_5415;
      named EMPTY Lnet/minecraft/tag/TagManager;EMPTY:Lnet/minecraft/tag/TagManager;
    • tagGroups

      private final Map<RegistryKey<? extends Registry<?>>,​TagGroup<?>> tagGroups
      Mappings:
      Namespace Name Mixin selector
      official c Lagc;c:Ljava/util/Map;
      intermediary field_28306 Lnet/minecraft/class_5415;field_28306:Ljava/util/Map;
      named tagGroups Lnet/minecraft/tag/TagManager;tagGroups:Ljava/util/Map;
  • Constructor Details

    • TagManager

      TagManager(Map<RegistryKey<? extends Registry<?>>,​TagGroup<?>> tagGroups)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lagc;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_5415;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/tag/TagManager;<init>(Ljava/util/Map;)V
  • Method Details

    • getTagGroup

      @Nullable private <T> @Nullable TagGroup<T> getTagGroup(RegistryKey<? extends Registry<T>> registryKey)
      Mappings:
      Namespace Name Mixin selector
      official b Lagc;b(Lwv;)Lagb;
      intermediary method_33170 Lnet/minecraft/class_5415;method_33170(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5414;
      named getTagGroup Lnet/minecraft/tag/TagManager;getTagGroup(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/tag/TagGroup;
    • getOrCreateTagGroup

      public <T> TagGroup<T> getOrCreateTagGroup(RegistryKey<? extends Registry<T>> registryKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lwv;)Lagb;
      intermediary method_33164 Lnet/minecraft/class_5415;method_33164(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5414;
      named getOrCreateTagGroup Lnet/minecraft/tag/TagManager;getOrCreateTagGroup(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/tag/TagGroup;
    • getTag

      public <T,​ E extends Exception> Tag<T> getTag(RegistryKey<? extends Registry<T>> registryKey, Identifier id, Function<Identifier,​E> exceptionFactory) throws E
      Throws:
      E extends Exception
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lwv;Lww;Ljava/util/function/Function;)Laga;
      intermediary method_33166 Lnet/minecraft/class_5415;method_33166(Lnet/minecraft/class_5321;Lnet/minecraft/class_2960;Ljava/util/function/Function;)Lnet/minecraft/class_3494;
      named getTag Lnet/minecraft/tag/TagManager;getTag(Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/Identifier;Ljava/util/function/Function;)Lnet/minecraft/tag/Tag;
    • getTagId

      public <T,​ E extends Exception> Identifier getTagId(RegistryKey<? extends Registry<T>> registryKey, Tag<T> tag, Supplier<E> exceptionSupplier) throws E
      Throws:
      E extends Exception
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lwv;Laga;Ljava/util/function/Supplier;)Lww;
      intermediary method_33165 Lnet/minecraft/class_5415;method_33165(Lnet/minecraft/class_5321;Lnet/minecraft/class_3494;Ljava/util/function/Supplier;)Lnet/minecraft/class_2960;
      named getTagId Lnet/minecraft/tag/TagManager;getTagId(Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/tag/Tag;Ljava/util/function/Supplier;)Lnet/minecraft/util/Identifier;
    • accept

      public void accept(TagManager.Visitor visitor)
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lagc$b;)V
      intermediary method_33161 Lnet/minecraft/class_5415;method_33161(Lnet/minecraft/class_5415$class_5750;)V
      named accept Lnet/minecraft/tag/TagManager;accept(Lnet/minecraft/tag/TagManager$Visitor;)V
    • offerTo

      private static <T> void offerTo(TagManager.Visitor visitor, RegistryKey<? extends Registry<?>> type, TagGroup<?> group)
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lagc$b;Lwv;Lagb;)V
      intermediary method_33162 Lnet/minecraft/class_5415;method_33162(Lnet/minecraft/class_5415$class_5750;Lnet/minecraft/class_5321;Lnet/minecraft/class_5414;)V
      named offerTo Lnet/minecraft/tag/TagManager;offerTo(Lnet/minecraft/tag/TagManager$Visitor;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/tag/TagGroup;)V
    • apply

      public void apply()
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a()V
      intermediary method_30222 Lnet/minecraft/class_5415;method_30222()V
      named apply Lnet/minecraft/tag/TagManager;apply()V
    • toPacket

      public Map<RegistryKey<? extends Registry<?>>,​TagGroup.Serialized> toPacket(DynamicRegistryManager registryManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lgx;)Ljava/util/Map;
      intermediary method_30217 Lnet/minecraft/class_5415;method_30217(Lnet/minecraft/class_5455;)Ljava/util/Map;
      named toPacket Lnet/minecraft/tag/TagManager;toPacket(Lnet/minecraft/util/registry/DynamicRegistryManager;)Ljava/util/Map;
    • fromPacket

      public static TagManager fromPacket(DynamicRegistryManager registryManager, Map<RegistryKey<? extends Registry<?>>,​TagGroup.Serialized> groups)
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lgx;Ljava/util/Map;)Lagc;
      intermediary method_30219 Lnet/minecraft/class_5415;method_30219(Lnet/minecraft/class_5455;Ljava/util/Map;)Lnet/minecraft/class_5415;
      named fromPacket Lnet/minecraft/tag/TagManager;fromPacket(Lnet/minecraft/util/registry/DynamicRegistryManager;Ljava/util/Map;)Lnet/minecraft/tag/TagManager;
    • tryAdd

      private static <T> void tryAdd(DynamicRegistryManager registryManager, TagManager.Builder builder, RegistryKey<? extends Registry<? extends T>> type, TagGroup.Serialized group)
      Mappings:
      Namespace Name Mixin selector
      official a Lagc;a(Lgx;Lagc$a;Lwv;Lagb$a;)V
      intermediary method_33163 Lnet/minecraft/class_5415;method_33163(Lnet/minecraft/class_5455;Lnet/minecraft/class_5415$class_5749;Lnet/minecraft/class_5321;Lnet/minecraft/class_5414$class_5748;)V
      named tryAdd Lnet/minecraft/tag/TagManager;tryAdd(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/tag/TagManager$Builder;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/tag/TagGroup$Serialized;)V