Package net.minecraft.server
Class ReloadableServerResources
java.lang.Object
net.minecraft.server.ReloadableServerResources
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerAdvancementManager
private final Commands
private final ICondition.IContext
private static final CompletableFuture
<Unit> private final ReloadableServerRegistries.Holder
private final ServerFunctionLibrary
private static final org.slf4j.Logger
private final RecipeManager
private final ReloadableServerResources.ConfigurableRegistryLookup
private final TagManager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ReloadableServerResources
(RegistryAccess.Frozen pRegistryAccess, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, int pFunctionCompilationLevel) -
Method Summary
Modifier and TypeMethodDescriptionExposes the current condition context for usage in other reload listeners.
This is not useful outside the reloading stage.Returns the lookup provider access for the currently active reload.loadResources
(ResourceManager pResourceManager, LayeredRegistryAccess<RegistryLayer> pRegistries, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, int pFunctionCompilationLevel, Executor pBackgroundExecutor, Executor pGameExecutor) void
private static <T> void
updateRegistryTags
(RegistryAccess pRegistryAccess, TagManager.LoadResult<T> pLoadResult)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DATA_RELOAD_INITIAL_TASK
-
fullRegistryHolder
-
registryLookup
-
commands
-
recipes
-
tagManager
-
advancements
-
functionLibrary
-
context
-
-
Constructor Details
-
ReloadableServerResources
private ReloadableServerResources(RegistryAccess.Frozen pRegistryAccess, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, int pFunctionCompilationLevel)
-
-
Method Details
-
getFunctionLibrary
-
fullRegistries
-
getRecipeManager
-
getCommands
-
getAdvancements
-
listeners
-
getConditionContext
Exposes the current condition context for usage in other reload listeners.
This is not useful outside the reloading stage.- Returns:
- The condition context for the currently active reload.
-
getRegistryLookup
Returns the lookup provider access for the currently active reload.- Returns:
- the lookup provider access for the currently active reload
-
loadResources
public static CompletableFuture<ReloadableServerResources> loadResources(ResourceManager pResourceManager, LayeredRegistryAccess<RegistryLayer> pRegistries, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, int pFunctionCompilationLevel, Executor pBackgroundExecutor, Executor pGameExecutor) -
updateRegistryTags
public void updateRegistryTags() -
updateRegistryTags
private static <T> void updateRegistryTags(RegistryAccess pRegistryAccess, TagManager.LoadResult<T> pLoadResult)
-