Package net.minecraft.resource
Class ServerResourceManager
java.lang.Object
net.minecraft.resource.ServerResourceManager
- All Implemented Interfaces:
AutoCloseable
public class ServerResourceManager extends Object implements AutoCloseable
-
Field Summary
Fields Modifier and Type Field Description private CommandManager
commandManager
private static CompletableFuture<Unit>
field_25334
private FunctionLoader
functionLoader
private LootConditionManager
lootConditionManager
private LootManager
lootManager
private RecipeManager
recipeManager
private TagManagerLoader
registryTagManager
private ReloadableResourceManager
resourceManager
private ServerAdvancementLoader
serverAdvancementLoader
-
Constructor Summary
Constructors Constructor Description ServerResourceManager(CommandManager.RegistrationEnvironment registrationEnvironment, int int2)
-
Method Summary
Modifier and Type Method Description void
close()
CommandManager
getCommandManager()
FunctionLoader
getFunctionLoader()
LootConditionManager
getLootConditionManager()
LootManager
getLootManager()
RecipeManager
getRecipeManager()
TagManager
getRegistryTagManager()
ResourceManager
getResourceManager()
ServerAdvancementLoader
getServerAdvancementLoader()
void
loadRegistryTags()
static CompletableFuture<ServerResourceManager>
reload(List<ResourcePack> list, CommandManager.RegistrationEnvironment registrationEnvironment, int int2, Executor executor, Executor executor2)
-
Field Details
-
field_25334
-
resourceManager
-
commandManager
-
recipeManager
-
registryTagManager
-
lootConditionManager
-
lootManager
-
serverAdvancementLoader
-
functionLoader
-
-
Constructor Details
-
ServerResourceManager
public ServerResourceManager(CommandManager.RegistrationEnvironment registrationEnvironment, int int2)
-
-
Method Details
-
getFunctionLoader
-
getLootConditionManager
-
getLootManager
-
getRegistryTagManager
-
getRecipeManager
-
getCommandManager
-
getServerAdvancementLoader
-
getResourceManager
-
reload
public static CompletableFuture<ServerResourceManager> reload(List<ResourcePack> list, CommandManager.RegistrationEnvironment registrationEnvironment, int int2, Executor executor, Executor executor2) -
loadRegistryTags
public void loadRegistryTags() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-