Package net.minecraft.server
Class ServerResources
java.lang.Object
net.minecraft.server.ServerResources
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate ServerAdvancementManager
private Commands
private static CompletableFuture<Unit>
private ServerFunctionLibrary
private ItemModifierManager
private LootTables
private PredicateManager
private RecipeManager
private ReloadableResourceManager
private TagManager
-
Constructor Summary
ConstructorDescriptionServerResources(RegistryAccess p_180002_, Commands.CommandSelection p_180003_, int p_180004_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getTags()
static CompletableFuture<ServerResources>
loadResources(List<PackResources> p_180006_, RegistryAccess p_180007_, Commands.CommandSelection p_180008_, int p_180009_, Executor p_180010_, Executor p_180011_)
void
-
Field Details
-
DATA_RELOAD_INITIAL_TASK
-
resources
-
commands
-
recipes
-
tagManager
-
predicateManager
-
lootTables
-
itemModifierManager
-
advancements
-
functionLibrary
-
-
Constructor Details
-
ServerResources
public ServerResources(RegistryAccess p_180002_, Commands.CommandSelection p_180003_, int p_180004_)
-
-
Method Details
-
getFunctionLibrary
-
getPredicateManager
-
getLootTables
-
getItemModifierManager
-
getTags
-
getRecipeManager
-
getCommands
-
getAdvancements
-
getResourceManager
-
loadResources
public static CompletableFuture<ServerResources> loadResources(List<PackResources> p_180006_, RegistryAccess p_180007_, Commands.CommandSelection p_180008_, int p_180009_, Executor p_180010_, Executor p_180011_) -
updateGlobals
public void updateGlobals() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-