Package net.minecraft.server
Class ReloadableServerResources
java.lang.Object
net.minecraft.server.ReloadableServerResources
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ServerAdvancementManager
private final CommandBuildContext
private final Commands
private final ICondition.IContext
private static final CompletableFuture<Unit>
private final ServerFunctionLibrary
private final ItemModifierManager
private static final org.slf4j.Logger
private final LootTables
private final PredicateManager
private final RecipeManager
private final TagManager
-
Constructor Summary
ConstructorDescriptionReloadableServerResources
(RegistryAccess.Frozen p_206857_, 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.loadResources
(ResourceManager p_206862_, RegistryAccess.Frozen p_206863_, Commands.CommandSelection p_206864_, int p_206865_, Executor p_206866_, Executor p_206867_) void
updateRegistryTags
(RegistryAccess p_206869_) private static <T> void
updateRegistryTags
(RegistryAccess p_206871_, TagManager.LoadResult<T> p_206872_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DATA_RELOAD_INITIAL_TASK
-
commandBuildContext
-
commands
-
recipes
-
tagManager
-
predicateManager
-
lootTables
-
itemModifierManager
-
advancements
-
functionLibrary
-
context
-
-
Constructor Details
-
ReloadableServerResources
public ReloadableServerResources(RegistryAccess.Frozen p_206857_, Commands.CommandSelection p_206858_, int p_206859_)
-
-
Method Details
-
getFunctionLibrary
-
getPredicateManager
-
getLootTables
-
getItemModifierManager
-
getRecipeManager
-
getCommands
-
getAdvancements
-
listeners
-
loadResources
public static CompletableFuture<ReloadableServerResources> loadResources(ResourceManager p_206862_, RegistryAccess.Frozen p_206863_, Commands.CommandSelection p_206864_, int p_206865_, Executor p_206866_, Executor p_206867_) -
updateRegistryTags
-
updateRegistryTags
private static <T> void updateRegistryTags(RegistryAccess p_206871_, TagManager.LoadResult<T> p_206872_) -
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.
-