public class GroundCoverLayer extends CustomLayer
Modifier and Type | Class and Description |
---|---|
static class |
GroundCoverLayer.EdgeShape |
static class |
GroundCoverLayer.LayerAnchor
The anchor relative to which the layers of a layered material should be
placed.
|
Layer.DataSize
KEY_DIMENSION
Constructor and Description |
---|
GroundCoverLayer(java.lang.String name,
MixedMaterial material,
java.lang.Object paint) |
Modifier and Type | Method and Description |
---|---|
GroundCoverLayer |
clone()
Create a deep copy of the custom layer, with a different ID and
independent settings.
|
GroundCoverLayer.EdgeShape |
getEdgeShape() |
int |
getEdgeWidth() |
GroundCoverLayerExporter |
getExporter(Dimension dimension,
Platform platform,
ExporterSettings settings)
Create a new exporter for this layer.
|
java.lang.Class<? extends LayerExporter> |
getExporterType()
Return the type of the exporter that
Layer.getExporter(Dimension, Platform, ExporterSettings) will return. |
GroundCoverLayer.LayerAnchor |
getLayerAnchor() |
MixedMaterial |
getMaterial() |
NoiseSettings |
getNoiseSettings() |
int |
getThickness() |
java.lang.String |
getType()
Get a short, human-readable description of the layer type.
|
boolean |
isSmooth() |
void |
setEdgeShape(GroundCoverLayer.EdgeShape edgeShape) |
void |
setEdgeWidth(int edgeWidth) |
void |
setLayerAnchor(GroundCoverLayer.LayerAnchor layerAnchor) |
void |
setMaterial(MixedMaterial material) |
void |
setName(java.lang.String name)
Custom layers have names independent of their ID, so changing the name
after creation is not a problem.
|
void |
setNoiseSettings(NoiseSettings noiseSettings) |
void |
setSmooth(boolean smooth) |
void |
setThickness(int thickness) |
getActions, getBiome, getExportIndex, getIcon, getOpacity, getPaint, getPalette, getPaletteIndex, getRenderer, isExport, isHide, setBiome, setExport, setExportIndex, setHide, setMinMaxHeight, setOpacity, setPaint, setPalette, setPaletteIndex
compareTo, equals, getDataSize, getDefaultValue, getDescription, getId, getMnemonic, getName, getPriority, hashCode, isExportableToFile, setDescription, toString
public GroundCoverLayer(java.lang.String name, MixedMaterial material, java.lang.Object paint)
public void setName(java.lang.String name)
CustomLayer
setName
in class CustomLayer
name
- The new name of the layer.public java.lang.String getType()
CustomLayer
getType
in class CustomLayer
public MixedMaterial getMaterial()
public void setMaterial(MixedMaterial material)
public int getThickness()
public void setThickness(int thickness)
public int getEdgeWidth()
public void setEdgeWidth(int edgeWidth)
public GroundCoverLayer.EdgeShape getEdgeShape()
public void setEdgeShape(GroundCoverLayer.EdgeShape edgeShape)
public NoiseSettings getNoiseSettings()
public void setNoiseSettings(NoiseSettings noiseSettings)
public boolean isSmooth()
public void setSmooth(boolean smooth)
public GroundCoverLayer.LayerAnchor getLayerAnchor()
public void setLayerAnchor(GroundCoverLayer.LayerAnchor layerAnchor)
public java.lang.Class<? extends LayerExporter> getExporterType()
Layer
Layer.getExporter(Dimension, Platform, ExporterSettings)
will return.
If that method is implemented, this method must also be implemented. May be used to examine which phases the
exporter requires. May return null
for layers that cannot be exported.getExporterType
in class Layer
public GroundCoverLayerExporter getExporter(Dimension dimension, Platform platform, ExporterSettings settings)
Layer
If this method is implemented, Layer.getExporterType()
must also be implemented to indicate which type this
method will return.
getExporter
in class Layer
dimension
- The dimension that is being exported.platform
- The platform for which the dimension is being exported.settings
- The configured settings for the layer, if any. May be null
.public GroundCoverLayer clone()
CustomLayer
clone
in class CustomLayer