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_335982_, List<WritableRegistry<?>> p_336159_) private static LayeredRegistryAccess
<RegistryLayer> createUpdatedRegistries
(LayeredRegistryAccess<RegistryLayer> p_335434_, List<WritableRegistry<?>> p_336097_) reload
(LayeredRegistryAccess<RegistryLayer> p_335950_, ResourceManager p_335786_, Executor p_335516_) private static <T> CompletableFuture
<WritableRegistry<?>> scheduleElementParse
(LootDataType<T> p_335741_, RegistryOps<com.google.gson.JsonElement> p_336173_, ResourceManager p_335893_, Executor p_336104_) private static <T> void
validateRegistry
(ValidationContext p_335565_, LootDataType<T> p_335997_, RegistryAccess p_335400_)
-
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_335950_, ResourceManager p_335786_, Executor p_335516_) -
scheduleElementParse
private static <T> CompletableFuture<WritableRegistry<?>> scheduleElementParse(LootDataType<T> p_335741_, RegistryOps<com.google.gson.JsonElement> p_336173_, ResourceManager p_335893_, Executor p_336104_) -
apply
private static LayeredRegistryAccess<RegistryLayer> apply(LayeredRegistryAccess<RegistryLayer> p_335982_, List<WritableRegistry<?>> p_336159_) -
createUpdatedRegistries
private static LayeredRegistryAccess<RegistryLayer> createUpdatedRegistries(LayeredRegistryAccess<RegistryLayer> p_335434_, List<WritableRegistry<?>> p_336097_) -
validateRegistry
private static <T> void validateRegistry(ValidationContext p_335565_, LootDataType<T> p_335997_, RegistryAccess p_335400_)
-