public abstract class BiomeElevation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BiomeElevation.Absolute
Implementation of
BiomeElevation which takes height and variation values given in blocks. |
static class |
BiomeElevation.Vanilla
Implementation of
BiomeElevation which takes height and variation values in the format used by vanilla Minecraft. |
| Modifier and Type | Field and Description |
|---|---|
static BiomeElevation |
DEFAULT |
protected double |
height |
protected double |
normalizedHeight |
protected double |
normalizedVariation |
protected double |
variation |
| Constructor and Description |
|---|
BiomeElevation(double height,
double variation) |
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight() |
double |
getNormalizedHeight() |
double |
getNormalizedVariation() |
double |
getVariation() |
protected abstract double |
normalizeHeight(double height) |
protected abstract double |
normalizeVariation(double variation) |
public static final BiomeElevation DEFAULT
protected final double height
protected final double variation
protected final double normalizedHeight
protected final double normalizedVariation
public double getHeight()
public double getVariation()
public double getNormalizedHeight()
public double getNormalizedVariation()
protected abstract double normalizeHeight(double height)
protected abstract double normalizeVariation(double variation)
Copyright © 2020. All rights reserved.