public class PlantLayer extends CustomLayer
| Modifier and Type | Class and Description | 
|---|---|
| static class  | PlantLayer.PlantSettings | 
Layer.DataSizeKEY_DIMENSION| Constructor and Description | 
|---|
| PlantLayer(java.lang.String name,
          java.lang.String description,
          java.lang.Object paint) | 
| Modifier and Type | Method and Description | 
|---|---|
| PlantLayer | clone()Create a deep copy of the custom layer, with a different ID and
 independent settings. | 
| java.util.Map<Plant,PlantLayer.PlantSettings> | getConfiguredPlants() | 
| PlantLayerExporter | 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. | 
| Bo2ObjectProvider | getObjectProvider(Platform platform) | 
| PlantLayer.PlantSettings | getSettings(int plantIndex) | 
| java.lang.String | getType()Get a short, human-readable description of the layer type. | 
| boolean | isGenerateFarmland() | 
| boolean | isOnlyOnValidBlocks() | 
| void | setGenerateFarmland(boolean generateFarmland) | 
| void | setOnlyOnValidBlocks(boolean onlyOnValidBlocks) | 
| void | setSettings(int plantIndex,
           PlantLayer.PlantSettings settings) | 
getActions, getBiome, getExportIndex, getIcon, getOpacity, getPaint, getPalette, getPaletteIndex, getRenderer, isExport, isHide, setBiome, setExport, setExportIndex, setHide, setMinMaxHeight, setName, setOpacity, setPaint, setPalette, setPaletteIndexcompareTo, equals, getDataSize, getDefaultValue, getDescription, getId, getMnemonic, getName, getPriority, hashCode, isExportableToFile, setDescription, toStringpublic PlantLayer(java.lang.String name,
                  java.lang.String description,
                  java.lang.Object paint)
public PlantLayer.PlantSettings getSettings(int plantIndex)
public void setSettings(int plantIndex,
                        PlantLayer.PlantSettings settings)
public boolean isGenerateFarmland()
public void setGenerateFarmland(boolean generateFarmland)
public boolean isOnlyOnValidBlocks()
public void setOnlyOnValidBlocks(boolean onlyOnValidBlocks)
public java.util.Map<Plant,PlantLayer.PlantSettings> getConfiguredPlants()
public Bo2ObjectProvider getObjectProvider(Platform platform)
public java.lang.Class<? extends LayerExporter> getExporterType()
LayerLayer.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 Layerpublic PlantLayerExporter getExporter(Dimension dimension, Platform platform, ExporterSettings settings)
LayerIf this method is implemented, Layer.getExporterType() must also be implemented to indicate which type this
 method will return.
getExporter in class Layerdimension - 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 java.lang.String getType()
CustomLayergetType in class CustomLayerpublic PlantLayer clone()
CustomLayerclone in class CustomLayer