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> p_362982_, HolderLookup.Provider p_361583_, FeatureFlagSet p_250695_, Commands.CommandSelection p_206858_, List<Registry.PendingTags<?>> p_362624_, int p_206859_) -
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 p_248588_, LayeredRegistryAccess<RegistryLayer> p_335667_, List<Registry.PendingTags<?>> p_363739_, FeatureFlagSet p_250212_, Commands.CommandSelection p_249301_, int p_251126_, Executor p_249136_, Executor p_249601_) 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> p_362982_, HolderLookup.Provider p_361583_, FeatureFlagSet p_250695_, Commands.CommandSelection p_206858_, List<Registry.PendingTags<?>> p_362624_, int p_206859_)
-
-
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 p_248588_, LayeredRegistryAccess<RegistryLayer> p_335667_, List<Registry.PendingTags<?>> p_363739_, FeatureFlagSet p_250212_, Commands.CommandSelection p_249301_, int p_251126_, Executor p_249136_, Executor p_249601_) -
updateStaticRegistryTags
public void updateStaticRegistryTags()
-