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 ServerAdvancementManagerprivate final Commandsprivate final ICondition.IContextprivate static final CompletableFuture<Unit> private final ReloadableServerRegistries.Holderprivate final ServerFunctionLibraryprivate static final org.slf4j.Loggerprivate final RecipeManagerprivate final ReloadableServerResources.ConfigurableRegistryLookupprivate final TagManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReloadableServerResources(RegistryAccess.Frozen p_206857_, FeatureFlagSet p_250695_, Commands.CommandSelection p_206858_, 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_, FeatureFlagSet p_250212_, Commands.CommandSelection p_249301_, int p_251126_, Executor p_249136_, Executor p_249601_) voidprivate static <T> voidupdateRegistryTags(RegistryAccess p_206871_, TagManager.LoadResult<T> p_206872_)
-
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 p_206857_, FeatureFlagSet p_250695_, Commands.CommandSelection p_206858_, 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_, FeatureFlagSet p_250212_, Commands.CommandSelection p_249301_, int p_251126_, Executor p_249136_, Executor p_249601_) -
updateRegistryTags
public void updateRegistryTags() -
updateRegistryTags
private static <T> void updateRegistryTags(RegistryAccess p_206871_, TagManager.LoadResult<T> p_206872_)
-