public class SwampLand extends TreeLayer
Layer.DataSize
Modifier and Type | Method and Description |
---|---|
int |
getDefaultMaxWaterDepth() |
float |
getDefaultMushroomChance() |
int |
getDefaultMushroomIncidence() |
int |
getDefaultTreeChance() |
SwampLandExporter |
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. |
TreeType |
pickTree(java.util.Random random) |
getDefaultLayerStrengthCap
compareTo, equals, getDataSize, getDefaultValue, getDescription, getIcon, getId, getMnemonic, getName, getPriority, getRenderer, hashCode, isExportableToFile, setDescription, setName, toString
public static final SwampLand INSTANCE
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 TreeLayer
public SwampLandExporter 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 TreeLayer
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 TreeType pickTree(java.util.Random random)
public int getDefaultMaxWaterDepth()
getDefaultMaxWaterDepth
in class TreeLayer
public int getDefaultTreeChance()
getDefaultTreeChance
in class TreeLayer
public int getDefaultMushroomIncidence()
getDefaultMushroomIncidence
in class TreeLayer
public float getDefaultMushroomChance()
getDefaultMushroomChance
in class TreeLayer