public static class ResourcesExporter.ResourcesExporterSettings extends java.lang.Object implements ExporterSettings
Modifier and Type | Method and Description |
---|---|
ResourcesExporter.ResourcesExporterSettings |
clone() |
static ResourcesExporter.ResourcesExporterSettings |
defaultSettings(Platform platform,
Dimension.Anchor anchor,
int minHeight,
int maxHeight) |
int |
getChance(Material material) |
Resources |
getLayer() |
java.util.Set<Material> |
getMaterials() |
int |
getMaxLevel(Material material) |
int |
getMinimumLevel() |
int |
getMinLevel(Material material) |
long |
getSeedOffset(Material material) |
boolean |
isApplyEverywhere() |
void |
setChance(Material material,
int chance) |
void |
setMaxLevel(Material material,
int maxLevel) |
void |
setMinimumLevel(int minimumLevel) |
void |
setMinLevel(Material material,
int minLevel) |
void |
setMinMaxHeight(int oldMinHeight,
int newMinHeight,
int oldMaxHeight,
int newMaxHeight,
HeightTransform transform)
This is invoked by WorldPainter when the dimension height is transformed (minHeight and/or maxHeight changes,
and/or a shift and/or scaling operation applied), so that the layer settings may be adjusted accordingly, if
applicable.
|
public boolean isApplyEverywhere()
isApplyEverywhere
in interface ExporterSettings
public int getMinimumLevel()
public void setMinimumLevel(int minimumLevel)
public java.util.Set<Material> getMaterials()
public int getMinLevel(Material material)
public void setMinLevel(Material material, int minLevel)
public int getMaxLevel(Material material)
public void setMaxLevel(Material material, int maxLevel)
public int getChance(Material material)
public void setChance(Material material, int chance)
public long getSeedOffset(Material material)
public Resources getLayer()
getLayer
in interface ExporterSettings
public void setMinMaxHeight(int oldMinHeight, int newMinHeight, int oldMaxHeight, int newMaxHeight, HeightTransform transform)
ExporterSettings
The default implementation does nothing.
setMinMaxHeight
in interface ExporterSettings
public ResourcesExporter.ResourcesExporterSettings clone()
clone
in interface ExporterSettings
clone
in class java.lang.Object
public static ResourcesExporter.ResourcesExporterSettings defaultSettings(Platform platform, Dimension.Anchor anchor, int minHeight, int maxHeight)