public class TunnelLayerExporter extends AbstractTunnelLayerExporter implements SecondPassLayerExporter
AbstractCavesExporter.CaveDecorationSettings
AbstractLayerExporter.ChunksInTilesVisitor
SecondPassLayerExporter.Stage
HEIGHT_MARKER_FONT, helper
decorationEnabled
Constructor and Description |
---|
TunnelLayerExporter(Dimension dimension,
Platform platform,
TunnelLayer layer,
TunnelLayerHelper helper) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Fixup> |
carve(java.awt.Rectangle area,
java.awt.Rectangle exportedArea,
MinecraftWorld world)
Carve an area of the map.
|
static java.awt.image.BufferedImage |
generatePreview(TunnelLayer layer,
int width,
int height,
int waterLevel,
int minHeight,
int baseHeight,
int heightDifference) |
java.util.Set<SecondPassLayerExporter.Stage> |
getStages() |
addFeatures, setIfSolid, whereTunnelIsRealisedDo
decorateBlock, emptyBlockEncountered, processBlock, resetColumn, setupForColumn
getDimension, getLayer, visitChunksForLayerInAreaForEditing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFeatures, render
getLayer
public TunnelLayerExporter(Dimension dimension, Platform platform, TunnelLayer layer, TunnelLayerHelper helper)
public java.util.Set<SecondPassLayerExporter.Stage> getStages()
getStages
in interface SecondPassLayerExporter
public java.util.List<Fixup> carve(java.awt.Rectangle area, java.awt.Rectangle exportedArea, MinecraftWorld world)
SecondPassLayerExporter
SecondPassLayerExporter.getStages()
contains SecondPassLayerExporter.Stage.CARVE
.carve
in interface SecondPassLayerExporter
area
- The area to process.exportedArea
- The area which will actually be exported. May be smaller than area
. May be used to
for instance avoid objects getting cut off at area boundaries.world
- The MinecraftWorld
to which to export the layer.public static java.awt.image.BufferedImage generatePreview(TunnelLayer layer, int width, int height, int waterLevel, int minHeight, int baseHeight, int heightDifference)