类 TagManager
- java.lang.Object
-
- net.minecraft.tag.TagManager
-
public class TagManager extends Object
- Mappings:
Namespace Name official afuintermediary net/minecraft/class_5415named net/minecraft/tag/TagManager
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classTagManager.Builder(专用程序包) static interfaceTagManager.Visitor
-
字段概要
字段 修饰符和类型 字段 说明 static TagManagerEMPTYprivate static LoggerLOGGERprivate Map<RegistryKey<? extends Registry<?>>,TagGroup<?>>tagGroups
-
构造器概要
构造器 限定符 构造器 说明 privateTagManager(Map<RegistryKey<? extends Registry<?>>,TagGroup<?>> tagGroups)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(TagManager.Visitor visitor)voidapply()static TagManagerfromPacket(DynamicRegistryManager registryManager, Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> groups)<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> exceptionFactory)private <T> @Nullable TagGroup<T>getTagGroup(RegistryKey<? extends Registry<T>> registryKey)<T,E extends Exception>
IdentifiergetTagId(RegistryKey<? extends Registry<T>> registryKey, Tag<T> tag, Supplier<E> exceptionSupplier)private static <T> voidofferTo(TagManager.Visitor visitor, RegistryKey<? extends Registry<?>> type, TagGroup<?> group)Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized>toPacket(DynamicRegistryManager registryManager)private static <T> voidtryAdd(DynamicRegistryManager registryManager, TagManager.Builder builder, RegistryKey<? extends Registry<? extends T>> type, TagGroup.Serialized group)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official bLafu;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
public static final TagManager EMPTY
- Mappings:
Namespace Name Mixin selector official aLafu;a:Lafu;intermediary field_25744Lnet/minecraft/class_5415;field_25744:Lnet/minecraft/class_5415;named EMPTYLnet/minecraft/tag/TagManager;EMPTY:Lnet/minecraft/tag/TagManager;
-
tagGroups
private final Map<RegistryKey<? extends Registry<?>>,TagGroup<?>> tagGroups
- Mappings:
Namespace Name Mixin selector official cLafu;c:Ljava/util/Map;intermediary field_28306Lnet/minecraft/class_5415;field_28306:Ljava/util/Map;named tagGroupsLnet/minecraft/tag/TagManager;tagGroups:Ljava/util/Map;
-
-
构造器详细资料
-
TagManager
private TagManager(Map<RegistryKey<? extends Registry<?>>,TagGroup<?>> tagGroups)
- Mappings:
Namespace Name Mixin selector official <init>Lafu;<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
-
-
方法详细资料
-
getTagGroup
@Nullable private <T> @Nullable TagGroup<T> getTagGroup(RegistryKey<? extends Registry<T>> registryKey)
- Mappings:
Namespace Name Mixin selector official bLafu;b(Lwo;)Laft;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
public <T> TagGroup<T> getOrCreateTagGroup(RegistryKey<? extends Registry<T>> registryKey)
- Mappings:
Namespace Name Mixin selector official aLafu;a(Lwo;)Laft;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> exceptionFactory) throws E extends Exception
- 抛出:
E extends Exception- Mappings:
Namespace Name Mixin selector official aLafu;a(Lwo;Lwp;Ljava/util/function/Function;)Lafs;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> exceptionSupplier) throws E extends Exception
- 抛出:
E extends Exception- Mappings:
Namespace Name Mixin selector official aLafu;a(Lwo;Lafs;Ljava/util/function/Supplier;)Lwp;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;
-
accept
public void accept(TagManager.Visitor visitor)
- Mappings:
Namespace Name Mixin selector official aLafu;a(Lafu$b;)Vintermediary method_33161Lnet/minecraft/class_5415;method_33161(Lnet/minecraft/class_5415$class_5750;)Vnamed acceptLnet/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 aLafu;a(Lafu$b;Lwo;Laft;)Vintermediary method_33162Lnet/minecraft/class_5415;method_33162(Lnet/minecraft/class_5415$class_5750;Lnet/minecraft/class_5321;Lnet/minecraft/class_5414;)Vnamed offerToLnet/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 aLafu;a()Vintermediary method_30222Lnet/minecraft/class_5415;method_30222()Vnamed applyLnet/minecraft/tag/TagManager;apply()V
-
toPacket
public Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> toPacket(DynamicRegistryManager registryManager)
- Mappings:
Namespace Name Mixin selector official aLafu;a(Lgs;)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
public static TagManager fromPacket(DynamicRegistryManager registryManager, Map<RegistryKey<? extends Registry<?>>,TagGroup.Serialized> groups)
- Mappings:
Namespace Name Mixin selector official aLafu;a(Lgs;Ljava/util/Map;)Lafu;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;
-
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 aLafu;a(Lgs;Lafu$a;Lwo;Laft$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 tryAddLnet/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
-
-