Package net.minecraft.server
Class ReloadableServerRegistries
java.lang.Object
net.minecraft.server.ReloadableServerRegistries
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final RegistrationInfo
private static final com.google.gson.Gson
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static LayeredRegistryAccess
<RegistryLayer> apply
(LayeredRegistryAccess<RegistryLayer> p_336264_, List<WritableRegistry<?>> p_334683_) private static LayeredRegistryAccess
<RegistryLayer> createUpdatedRegistries
(LayeredRegistryAccess<RegistryLayer> p_334470_, List<WritableRegistry<?>> p_328349_) reload
(LayeredRegistryAccess<RegistryLayer> p_331894_, ResourceManager p_333753_, Executor p_334093_) private static <T> CompletableFuture
<WritableRegistry<?>> scheduleElementParse
(LootDataType<T> p_335755_, RegistryOps<com.google.gson.JsonElement> p_328500_, ResourceManager p_330738_, Executor p_327700_) private static <T> void
validateRegistry
(ValidationContext p_335560_, LootDataType<T> p_335486_, RegistryAccess p_332651_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
DEFAULT_REGISTRATION_INFO
-
-
Constructor Details
-
ReloadableServerRegistries
public ReloadableServerRegistries()
-
-
Method Details
-
reload
public static CompletableFuture<LayeredRegistryAccess<RegistryLayer>> reload(LayeredRegistryAccess<RegistryLayer> p_331894_, ResourceManager p_333753_, Executor p_334093_) -
scheduleElementParse
private static <T> CompletableFuture<WritableRegistry<?>> scheduleElementParse(LootDataType<T> p_335755_, RegistryOps<com.google.gson.JsonElement> p_328500_, ResourceManager p_330738_, Executor p_327700_) -
apply
private static LayeredRegistryAccess<RegistryLayer> apply(LayeredRegistryAccess<RegistryLayer> p_336264_, List<WritableRegistry<?>> p_334683_) -
createUpdatedRegistries
private static LayeredRegistryAccess<RegistryLayer> createUpdatedRegistries(LayeredRegistryAccess<RegistryLayer> p_334470_, List<WritableRegistry<?>> p_328349_) -
validateRegistry
private static <T> void validateRegistry(ValidationContext p_335560_, LootDataType<T> p_335486_, RegistryAccess p_332651_)
-