public class AnvilProviderFactory extends Object implements LevelProviderFactory
| Modifier and Type | Field and Description |
|---|---|
static AnvilProviderFactory |
INSTANCE |
| Constructor and Description |
|---|
AnvilProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
LevelProvider |
create(String levelId,
Path levelsPath,
Executor executor)
Creates new provider
|
boolean |
isCompatible(String levelId,
Path levelsPath)
Checks if level provider is compatible with directory given
|
public static final AnvilProviderFactory INSTANCE
public LevelProvider create(String levelId, Path levelsPath, Executor executor) throws IOException
LevelProviderFactorycreate in interface LevelProviderFactorylevelId - level IDlevelsPath - path of the levels directory (NOT THE LEVEL DIRECTORY ITSELF)executor - executor to run tasks asyncIOException - error created providerpublic boolean isCompatible(String levelId, Path levelsPath)
LevelProviderFactoryisCompatible in interface LevelProviderFactorylevelId - level IDlevelsPath - path of the levels directory (NOT THE LEVEL DIRECTORY ITSELF)Copyright © 2020. All rights reserved.