Package net.minecraft.tag
Class TagManager
java.lang.Object
net.minecraft.tag.TagManager
public class TagManager extends Object
- Mappings:
Namespace Name official afeintermediary net/minecraft/class_5415named net/minecraft/tag/TagManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTagManager.class_5749(package private) static interfaceTagManager.class_5750 -
Field Summary
Fields Modifier and Type Field Description static TagManagerEMPTYprivate static LoggerLOGGERprivate Map<RegistryKey<? extends Registry<?>>,TagGroup<?>>tagGroups -
Constructor Summary
Constructors Modifier Constructor Description privateTagManager(Map<RegistryKey<? extends Registry<?>>,TagGroup<?>> tagGroups) -
Method Summary
Modifier and Type Method Description voidapply()static TagManagerfromPacket(DynamicRegistryManager dynamicRegistryManager, Map<RegistryKey<? extends Registry<?>>,TagGroup.class_5748> map)<T> TagGroup<T>getOrCreateTagGroup(RegistryKey<? extends Registry<T>> registryKey)<T, E extends Exception>
Tag<T>getTag(RegistryKey<? extends Registry<T>> registryKey, Identifier id, Function<Identifier,E> function)private <T> TagGroup<T>getTagGroup(RegistryKey<? extends Registry<T>> registryKey)<T, E extends Exception>
IdentifiergetTagId(RegistryKey<? extends Registry<T>> registryKey, Tag<T> tag, Supplier<E> supplier)voidmethod_33161(TagManager.class_5750 class_5750)private static <T> voidmethod_33162(TagManager.class_5750 class_5750, RegistryKey<? extends Registry<?>> registryKey, TagGroup<?> tagGroup)private static <T> voidmethod_33163(DynamicRegistryManager dynamicRegistryManager, TagManager.class_5749 class_5749, RegistryKey<? extends Registry<? extends T>> registryKey, TagGroup.class_5748 class_5748)Map<RegistryKey<? extends Registry<?>>,TagGroup.class_5748>toPacket(DynamicRegistryManager dynamicRegistryManager)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLafe;b:Lorg/apache/logging/log4j/Logger;intermediary field_28305Lnet/minecraft/class_5415;field_28305:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/tag/TagManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official aLafe;a:Lafe;intermediary field_25744Lnet/minecraft/class_5415;field_25744:Lnet/minecraft/class_5415;named EMPTYLnet/minecraft/tag/TagManager;EMPTY:Lnet/minecraft/tag/TagManager;
-
tagGroups
- Mappings:
Namespace Name Mixin selector official cLafe;c:Ljava/util/Map;intermediary field_28306Lnet/minecraft/class_5415;field_28306:Ljava/util/Map;named tagGroupsLnet/minecraft/tag/TagManager;tagGroups:Ljava/util/Map;
-
-
Constructor Details
-
TagManager
- Mappings:
Namespace Name Mixin selector official <init>Lafe;<init>(Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_5415;<init>(Ljava/util/Map;)Vnamed <init>Lnet/minecraft/tag/TagManager;<init>(Ljava/util/Map;)V
-
-
Method Details
-
getTagGroup
- Mappings:
Namespace Name Mixin selector official bLafe;b(Lwa;)Lafd;intermediary method_33170Lnet/minecraft/class_5415;method_33170(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5414;named getTagGroupLnet/minecraft/tag/TagManager;getTagGroup(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/tag/TagGroup;
-
getOrCreateTagGroup
- Mappings:
Namespace Name Mixin selector official aLafe;a(Lwa;)Lafd;intermediary method_33164Lnet/minecraft/class_5415;method_33164(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5414;named getOrCreateTagGroupLnet/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> function) throws E extends Exception- Throws:
E extends Exception- Mappings:
Namespace Name Mixin selector official aLafe;a(Lwa;Lwb;Ljava/util/function/Function;)Lafc;intermediary method_33166Lnet/minecraft/class_5415;method_33166(Lnet/minecraft/class_5321;Lnet/minecraft/class_2960;Ljava/util/function/Function;)Lnet/minecraft/class_3494;named getTagLnet/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> supplier) throws E extends Exception- Throws:
E extends Exception- Mappings:
Namespace Name Mixin selector official aLafe;a(Lwa;Lafc;Ljava/util/function/Supplier;)Lwb;intermediary method_33165Lnet/minecraft/class_5415;method_33165(Lnet/minecraft/class_5321;Lnet/minecraft/class_3494;Ljava/util/function/Supplier;)Lnet/minecraft/class_2960;named getTagIdLnet/minecraft/tag/TagManager;getTagId(Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/tag/Tag;Ljava/util/function/Supplier;)Lnet/minecraft/util/Identifier;
-
method_33161
- Mappings:
Namespace Name Mixin selector official aLafe;a(Lafe$b;)Vintermediary method_33161Lnet/minecraft/class_5415;method_33161(Lnet/minecraft/class_5415$class_5750;)Vnamed method_33161Lnet/minecraft/tag/TagManager;method_33161(Lnet/minecraft/tag/TagManager$class_5750;)V
-
method_33162
private static <T> void method_33162(TagManager.class_5750 class_5750, RegistryKey<? extends Registry<?>> registryKey, TagGroup<?> tagGroup)- Mappings:
Namespace Name Mixin selector official aLafe;a(Lafe$b;Lwa;Lafd;)Vintermediary method_33162Lnet/minecraft/class_5415;method_33162(Lnet/minecraft/class_5415$class_5750;Lnet/minecraft/class_5321;Lnet/minecraft/class_5414;)Vnamed method_33162Lnet/minecraft/tag/TagManager;method_33162(Lnet/minecraft/tag/TagManager$class_5750;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/tag/TagGroup;)V
-
apply
public void apply()- Mappings:
Namespace Name Mixin selector official aLafe;a()Vintermediary method_30222Lnet/minecraft/class_5415;method_30222()Vnamed applyLnet/minecraft/tag/TagManager;apply()V
-
toPacket
public Map<RegistryKey<? extends Registry<?>>,TagGroup.class_5748> toPacket(DynamicRegistryManager dynamicRegistryManager)- Mappings:
Namespace Name Mixin selector official aLafe;a(Lgo;)Ljava/util/Map;intermediary method_30217Lnet/minecraft/class_5415;method_30217(Lnet/minecraft/class_5455;)Ljava/util/Map;named toPacketLnet/minecraft/tag/TagManager;toPacket(Lnet/minecraft/util/registry/DynamicRegistryManager;)Ljava/util/Map;
-
fromPacket
@Environment(CLIENT) public static TagManager fromPacket(DynamicRegistryManager dynamicRegistryManager, Map<RegistryKey<? extends Registry<?>>,TagGroup.class_5748> map)- Mappings:
Namespace Name Mixin selector official aLafe;a(Lgo;Ljava/util/Map;)Lafe;intermediary method_30219Lnet/minecraft/class_5415;method_30219(Lnet/minecraft/class_5455;Ljava/util/Map;)Lnet/minecraft/class_5415;named fromPacketLnet/minecraft/tag/TagManager;fromPacket(Lnet/minecraft/util/registry/DynamicRegistryManager;Ljava/util/Map;)Lnet/minecraft/tag/TagManager;
-
method_33163
@Environment(CLIENT) private static <T> void method_33163(DynamicRegistryManager dynamicRegistryManager, TagManager.class_5749 class_5749, RegistryKey<? extends Registry<? extends T>> registryKey, TagGroup.class_5748 class_5748)- Mappings:
Namespace Name Mixin selector official aLafe;a(Lgo;Lafe$a;Lwa;Lafd$a;)Vintermediary method_33163Lnet/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;)Vnamed method_33163Lnet/minecraft/tag/TagManager;method_33163(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/tag/TagManager$class_5749;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/tag/TagGroup$class_5748;)V
-