public interface SecondPassLayerExporter extends LayerExporter
There are multiple stages in which this exporter may be invoked. Each stage is finished for all layers before the
next stage is started. The exporter should indicate with getStages()
} for which stages it would like to be
invoked.
Implementations should implement carve(Rectangle, Rectangle, MinecraftWorld)
and/or
addFeatures(Rectangle, Rectangle, MinecraftWorld)
and implement getStages()
accordingly.
Modifier and Type | Interface and Description |
---|---|
static class |
SecondPassLayerExporter.Stage |
Modifier and Type | Method and Description |
---|---|
default java.util.List<Fixup> |
addFeatures(java.awt.Rectangle area,
java.awt.Rectangle exportedArea,
MinecraftWorld minecraftWorld)
Add features to an area of the map.
|
default java.util.List<Fixup> |
carve(java.awt.Rectangle area,
java.awt.Rectangle exportedArea,
MinecraftWorld minecraftWorld)
Carve an area of the map.
|
default java.util.Set<SecondPassLayerExporter.Stage> |
getStages() |
default java.util.List<Fixup> |
render(Dimension dimension,
java.awt.Rectangle area,
java.awt.Rectangle exportedArea,
MinecraftWorld minecraftWorld,
Platform platform)
Deprecated.
Use
carve(Rectangle, Rectangle, MinecraftWorld) instead. |
getLayer
default java.util.Set<SecondPassLayerExporter.Stage> getStages()
default java.util.List<Fixup> carve(java.awt.Rectangle area, java.awt.Rectangle exportedArea, MinecraftWorld minecraftWorld)
getStages()
contains SecondPassLayerExporter.Stage.CARVE
.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.minecraftWorld
- The MinecraftWorld
to which to export the layer.default java.util.List<Fixup> addFeatures(java.awt.Rectangle area, java.awt.Rectangle exportedArea, MinecraftWorld minecraftWorld)
getStages()
contains SecondPassLayerExporter.Stage.ADD_FEATURES
,
after the SecondPassLayerExporter.Stage.CARVE
stage is finished for all layers.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.minecraftWorld
- The MinecraftWorld
to which to export the layer.@Deprecated default java.util.List<Fixup> render(Dimension dimension, java.awt.Rectangle area, java.awt.Rectangle exportedArea, MinecraftWorld minecraftWorld, Platform platform)
carve(Rectangle, Rectangle, MinecraftWorld)
instead.