2020-07-14 13:31:22 -04:00
|
|
|
CLASS net/minecraft/class_5455 net/minecraft/util/registry/DynamicRegistryManager
|
|
|
|
COMMENT A manager of dynamic registries. It allows users to access non-hardcoded
|
|
|
|
COMMENT registries reliably.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Each minecraft server has a dynamic registry manager for file-loaded
|
|
|
|
COMMENT registries, while each client play network handler has a dynamic registry
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT manager for server-sent dynamic registries.
|
2020-07-14 13:31:22 -04:00
|
|
|
COMMENT
|
2022-03-23 06:38:27 -04:00
|
|
|
COMMENT <p>The {@link DynamicRegistryManager.ImmutableImpl}
|
2020-07-14 13:31:22 -04:00
|
|
|
COMMENT class serves as an immutable implementation of any particular collection
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT or configuration of dynamic registries.
|
2022-10-18 14:31:24 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>To create a new instance, call {@link #createAndLoad}, then (optionally)
|
|
|
|
COMMENT load the data pack-defined values via {@link
|
|
|
|
COMMENT net.minecraft.util.dynamic.RegistryOps#ofLoaded(DynamicOps, DynamicRegistryManager.Mutable, net.minecraft.resource.ResourceManager)}.
|
|
|
|
COMMENT Values registered in {@link BuiltinRegistries} are always available.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see net.minecraft.server.MinecraftServer#getRegistryManager()
|
|
|
|
COMMENT @see net.minecraft.client.network.ClientPlayNetworkHandler#getRegistryManager()
|
2022-01-19 12:26:32 -05:00
|
|
|
FIELD field_25918 LOGGER Lorg/slf4j/Logger;
|
2020-12-16 13:52:22 -05:00
|
|
|
METHOD method_30530 get (Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;
|
2022-02-16 10:57:25 -05:00
|
|
|
COMMENT Retrieves a registry from this manager or {@link Registry#REGISTRIES},
|
|
|
|
COMMENT or throws an exception when the registry does not exist.
|
2020-07-14 13:31:22 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IllegalStateException if the registry does not exist
|
|
|
|
ARG 1 key
|
2020-12-31 09:22:27 -05:00
|
|
|
METHOD method_33310 getOptional (Lnet/minecraft/class_5321;)Ljava/util/Optional;
|
|
|
|
ARG 1 key
|
2022-02-16 10:57:25 -05:00
|
|
|
METHOD method_40302 of (Lnet/minecraft/class_2378;)Lnet/minecraft/class_5455$class_6890;
|
2022-02-10 13:47:38 -05:00
|
|
|
ARG 0 registries
|
2022-02-16 10:57:25 -05:00
|
|
|
METHOD method_40311 streamAllRegistries ()Ljava/util/stream/Stream;
|
|
|
|
METHOD method_40316 toImmutable ()Lnet/minecraft/class_5455$class_6890;
|
2022-02-22 11:29:15 -05:00
|
|
|
METHOD method_41200 (Lnet/minecraft/class_5455$class_6892;)Lcom/mojang/serialization/Lifecycle;
|
|
|
|
ARG 0 entry
|
|
|
|
METHOD method_41201 getRegistryLifecycle ()Lcom/mojang/serialization/Lifecycle;
|
2022-02-16 10:57:25 -05:00
|
|
|
CLASS class_6890 Immutable
|
|
|
|
CLASS class_6891 ImmutableImpl
|
|
|
|
FIELD field_36471 registries Ljava/util/Map;
|
|
|
|
METHOD <init> (Ljava/util/Map;)V
|
|
|
|
ARG 1 registries
|
|
|
|
METHOD <init> (Ljava/util/stream/Stream;)V
|
|
|
|
ARG 1 stream
|
|
|
|
CLASS class_6892 Entry
|
|
|
|
METHOD method_40330 of (Ljava/util/Map$Entry;)Lnet/minecraft/class_5455$class_6892;
|
|
|
|
ARG 0 entry
|
|
|
|
METHOD method_40331 of (Lnet/minecraft/class_5321;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5455$class_6892;
|
|
|
|
ARG 0 key
|
|
|
|
ARG 1 value
|
|
|
|
METHOD method_40332 freeze ()Lnet/minecraft/class_5455$class_6892;
|