Interface LevelProviderFactory
- All Known Implementing Classes:
AnvilProviderFactory,LevelDBProviderFactory
public interface LevelProviderFactory
-
Method Summary
Modifier and TypeMethodDescriptionCreates new providerbooleanisCompatible(String levelId, Path levelsPath)Checks if level provider is compatible with directory given
-
Method Details
-
create
Creates new provider- 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
Checks if level provider is compatible with directory given- Parameters:
levelsPath- path of the levels directory (NOT THE LEVEL DIRECTORY ITSELF)levelId- level ID- Returns:
- true if level is compatible.
-