Class AnvilProviderFactory
java.lang.Object
org.cloudburstmc.server.level.provider.anvil.AnvilProviderFactory
- All Implemented Interfaces:
LevelProviderFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates new providerbooleanisCompatible(String levelId, Path levelsPath)Checks if level provider is compatible with directory given
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
AnvilProviderFactory
public AnvilProviderFactory()
-
-
Method Details
-
create
Description copied from interface:LevelProviderFactoryCreates new provider- Specified by:
createin interfaceLevelProviderFactory- Parameters:
levelId- level IDlevelsPath- path of the levels directory (NOT THE LEVEL DIRECTORY ITSELF)executor- executor to run tasks async- Returns:
- chunk provider
- Throws:
IOException- error created provider
-
isCompatible
Description copied from interface:LevelProviderFactoryChecks if level provider is compatible with directory given- Specified by:
isCompatiblein interfaceLevelProviderFactory- Parameters:
levelId- level IDlevelsPath- path of the levels directory (NOT THE LEVEL DIRECTORY ITSELF)- Returns:
- true if level is compatible.
-