Interface DensityFunction
- All Superinterfaces:
DataPackSerializable
,DefaultedRegistryValue
@CatalogedBy(DensityFunctions.class)
public interface DensityFunction
extends DefaultedRegistryValue, DataPackSerializable
-
Method Summary
Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
toDataPack
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
min
double min()Returns the minimum value possible.- Returns:
- The minimum value
-
max
double max()Returns the maximum value possible.- Returns:
- The maximum value
-
compute
Computes the noise value at given position.- Parameters:
pos
- The position- Returns:
- The noise value at given position
-
compute
double compute(int x, int y, int z) Computes the noise value at given position- Parameters:
x
- The x coordinatey
- The y coordinatez
- The z coordinate- Returns:
- The noise value at given position
-