public class TreesExporter<T extends TreeLayer> extends AbstractLayerExporter<T> implements SecondPassLayerExporter, IncidentalLayerExporter
Modifier and Type | Class and Description |
---|---|
static class |
TreesExporter.DeciduousSettings
Deprecated.
|
static class |
TreesExporter.PineSettings
Deprecated.
|
static class |
TreesExporter.TreeLayerSettings<T extends TreeLayer> |
AbstractLayerExporter.ChunksInTilesVisitor
SecondPassLayerExporter.Stage
Constructor and Description |
---|
TreesExporter(Dimension dimension,
Platform platform,
ExporterSettings settings,
T layer) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Fixup> |
addFeatures(java.awt.Rectangle area,
java.awt.Rectangle exportedArea,
MinecraftWorld minecraftWorld)
Add features to an area of the map.
|
Fixup |
apply(javax.vecmath.Point3i location,
int intensity,
java.awt.Rectangle exportedArea,
MinecraftWorld minecraftWorld)
Apply the layer at a particular single set of coordinates in the world.
|
java.util.Set<SecondPassLayerExporter.Stage> |
getStages() |
getDimension, getLayer, visitChunksForLayerInAreaForEditing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
carve, render
getLayer
public TreesExporter(Dimension dimension, Platform platform, ExporterSettings settings, T layer)
public java.util.Set<SecondPassLayerExporter.Stage> getStages()
getStages
in interface SecondPassLayerExporter
public java.util.List<Fixup> addFeatures(java.awt.Rectangle area, java.awt.Rectangle exportedArea, MinecraftWorld minecraftWorld)
SecondPassLayerExporter
SecondPassLayerExporter.getStages()
contains SecondPassLayerExporter.Stage.ADD_FEATURES
,
after the SecondPassLayerExporter.Stage.CARVE
stage is finished for all layers.addFeatures
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.minecraftWorld
- The MinecraftWorld
to which to export the layer.public Fixup apply(javax.vecmath.Point3i location, int intensity, java.awt.Rectangle exportedArea, MinecraftWorld minecraftWorld)
IncidentalLayerExporter
apply
in interface IncidentalLayerExporter
location
- The 3D location at which to apply the layer. Points to
the block above the surface.intensity
- The intensity at which to apply the layer, as a
percentage.exportedArea
- The area which will actually be exported. May be used
to for instance avoid objects getting cut off at area boundaries.minecraftWorld
- The Minecraft world in which to apply the layer.