public class OnlyOnTerrainOrLayerFilter extends TerrainOrLayerFilter
TerrainOrLayerFilter.ObjectType
AUTO_BIOMES, LAND, LAVA, WATER
Modifier and Type | Method and Description |
---|---|
static Filter |
create(Dimension dimension,
java.lang.Object item) |
float |
modifyStrength(int x,
int y,
float strength)
Filter the input strength.
|
getDimension, getLayer, getObjectType, getTerrain, getValue, toString
public float modifyStrength(int x, int y, float strength)
Filter
x
- The X coordinate in WorldPainter dimension coordinates for which to determine the filter
strength.y
- The Y coordinate in WorldPainter dimension coordinates for which to determine the filter
strength.strength
- The input filter strength as a number between 0.0 and 1.0.