Package net.minecraft.server
Class ReloadableServerResources
java.lang.Object
net.minecraft.server.ReloadableServerResources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerAdvancementManager
private final Commands
private final ConditionContext
private static final CompletableFuture
<Unit> private final ReloadableServerRegistries.Holder
private final ServerFunctionLibrary
private static final org.slf4j.Logger
private final List
<Registry.PendingTags<?>> private final RecipeManager
private final HolderLookup.Provider
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ReloadableServerResources
(LayeredRegistryAccess<RegistryLayer> pRegistryAccess, HolderLookup.Provider pRegistries, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, List<Registry.PendingTags<?>> pPostponedTags, 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> pRegistryAccess, List<Registry.PendingTags<?>> pPostponedTags, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, int pFunctionCompilationLevel, Executor pBackgroundExecutor, Executor pGameExecutor) void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DATA_RELOAD_INITIAL_TASK
-
fullRegistryHolder
-
commands
-
recipes
-
advancements
-
functionLibrary
-
postponedTags
-
registryLookup
-
context
-
-
Constructor Details
-
ReloadableServerResources
private ReloadableServerResources(LayeredRegistryAccess<RegistryLayer> pRegistryAccess, HolderLookup.Provider pRegistries, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, List<Registry.PendingTags<?>> pPostponedTags, 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> pRegistryAccess, List<Registry.PendingTags<?>> pPostponedTags, FeatureFlagSet pEnabledFeatures, Commands.CommandSelection pCommandSelection, int pFunctionCompilationLevel, Executor pBackgroundExecutor, Executor pGameExecutor) -
updateStaticRegistryTags
public void updateStaticRegistryTags()
-