Interface DensityFunction
- All Superinterfaces:
DataPackSerializable, DefaultedRegistryValue<DensityFunction>
@CatalogedBy(DensityFunctions.class)
public interface DensityFunction
extends DefaultedRegistryValue<DensityFunction>, DataPackSerializable
-
Method Summary
Modifier and TypeMethodDescriptiondoublecompute(ServerWorld world, int x, int y, int z) Computes the noise value at given positiondoublecompute(ServerWorld world, Vector3i pos) Computes the noise value at given position.doublemax()Returns the maximum value possible.doublemin()Returns the minimum value possible.Methods inherited from interface DataPackSerializable
toDataPackMethods inherited from interface 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:
world- The worldpos- The position- Returns:
- The noise value at given position
-
compute
Computes the noise value at given position- Parameters:
world- The worldx- The x coordinatey- The y coordinatez- The z coordinate- Returns:
- The noise value at given position
-