public class GroundCoverLayerExporter extends AbstractLayerExporter<GroundCoverLayer> implements FirstPassLayerExporter, IncidentalLayerExporter
AbstractLayerExporter.ChunksInTilesVisitor| Constructor and Description |
|---|
GroundCoverLayerExporter(Dimension dimension,
Platform platform,
GroundCoverLayer layer) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
render(Tile tile,
Chunk chunk)
Render the chunk.
|
getDimension, getLayer, visitChunksForLayerInAreaForEditingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLayerpublic GroundCoverLayerExporter(Dimension dimension, Platform platform, GroundCoverLayer layer)
public void render(Tile tile, Chunk chunk)
FirstPassLayerExporterrender in interface FirstPassLayerExportertile - The tile that is currently being rendered.chunk - The chunk that is currently being rendered.public Fixup apply(javax.vecmath.Point3i location, int intensity, java.awt.Rectangle exportedArea, MinecraftWorld minecraftWorld)
IncidentalLayerExporterapply in interface IncidentalLayerExporterlocation - 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.