public interface BlockBasedPlatformProvider extends PlatformProvider
PlatformProvider for Minecraft-like
block based platforms based on 16x16 chunks.PlatformProvider.MapInfoPROPERTY_MINIMUM_WORLDPAINTER_VERSION, PROPERTY_NAME, PROPERTY_UUIDS, PROPERTY_VERSION| Modifier and Type | Method and Description |
|---|---|
default Chunk |
createChunk(Platform platform,
int x,
int z,
int minHeight,
int maxHeight)
Create a new, empty chunk for a platform supported by this provider.
|
ChunkStore |
getChunkStore(Platform platform,
java.io.File worldDir,
int dimension)
Obtain a
ChunkStore which will save chunks in the format of the
platform, for a platform supported by this provider and for a specific
map base directory and dimension number. |
int[] |
getDimensions(Platform platform,
java.io.File worldDir)
Determine which dimensions are present in the map specified by a
particular
Platform and directory. |
PostProcessor |
getPostProcessor(Platform platform)
Obtain a
PostProcessor for a platform supported by this provider. |
getDefaultExportDir, getDefaultExportSettings, getExporter, getExportSettingsEditor, getMapRecognizer, identifyMap, isCompatible, selectBackupDirgetMinimumWorldPainterVersion, getName, getProperties, getUUIDs, getVersion, initint[] getDimensions(Platform platform, java.io.File worldDir)
Platform and directory.platform - The platform for which to determine the dimensions.worldDir - The map base directory for which to determine the
dimensions.Constants.DIM_NORMAL, Constants.DIM_NETHER and
Constants.DIM_END for dimensions which correspond to vanilla
Minecraft dimensions.default Chunk createChunk(Platform platform, int x, int z, int minHeight, int maxHeight)
The default implementation delegates to #createChunk(Platform, int, int, int) if minHeight is
zero, or throws an IllegalArgumentException otherwise.
Implementations MUST implement at least on of createChunk(Platform, int, int, int, int) or
#createChunk(Platform, int, int, int).
platform - The platform for which to create a chunk.x - The X coordinate (in chunks) of the chunk to create.z - The Z coordinate (in chunks) of the chunk to create.minHeight - The depth (in blocks) ot the chunk to create.maxHeight - The height (in blocks) of the chunk to create.ChunkStore getChunkStore(Platform platform, java.io.File worldDir, int dimension)
ChunkStore which will save chunks in the format of the
platform, for a platform supported by this provider and for a specific
map base directory and dimension number.platform - The platform for which to provide a chunk store.worldDir - The map base directory for which to provide a chunk
store.dimension - The dimension number for which to provide a chunk store.PostProcessor getPostProcessor(Platform platform)
PostProcessor for a platform supported by this provider.platform - The platform for which to provide a post processor.