public enum NukkitLevelStorage extends Enum<NukkitLevelStorage>
| Modifier and Type | Method and Description |
|---|---|
abstract ChunkProvider |
createChunkProvider(Path levelPath) |
abstract LevelDataProvider |
createLevelDataProvider(Path levelDatPath) |
static NukkitLevelStorage |
fromApi(LevelCreator.LevelStorage storage) |
static NukkitLevelStorage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NukkitLevelStorage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NukkitLevelStorage ANVIL
public static final NukkitLevelStorage LEVELDB
public static final NukkitLevelStorage NULL
public static NukkitLevelStorage[] values()
for (NukkitLevelStorage c : NukkitLevelStorage.values()) System.out.println(c);
public static NukkitLevelStorage valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract ChunkProvider createChunkProvider(Path levelPath)
public abstract LevelDataProvider createLevelDataProvider(Path levelDatPath) throws IOException
IOExceptionpublic static NukkitLevelStorage fromApi(LevelCreator.LevelStorage storage)
Copyright © 2017–2018 NukkitX. All rights reserved.