java.lang.Object
org.spongepowered.noise.module.NoiseModule
org.spongepowered.noise.module.combiner.Power
Noise module that raises the output value from a first source module to the
power of the output value from a second source module.
The first source module must have an index value of 0.
The second source module must have an index value of 1.
- Source Modules
- This module requires 2 source modules.
-
Field Summary
Fields inherited from class org.spongepowered.noise.module.NoiseModule
sourceModule -
Constructor Summary
ConstructorsConstructorDescriptionPower()Power(NoiseModule base, NoiseModule exponent) Create a new Power module with the source modules pre-configured. -
Method Summary
Modifier and TypeMethodDescriptiondoubleget(double x, double y, double z) Generates an output value given the coordinates of the specified input value.Methods inherited from class org.spongepowered.noise.module.NoiseModule
setSourceModule, sourceModule, sourceModuleCount
-
Constructor Details
-
Power
public Power() -
Power
Create a new Power module with the source modules pre-configured.- Parameters:
base- the baseexponent- the exponent to raise the base to
-
-
Method Details
-
get
public double get(double x, double y, double z) Description copied from class:NoiseModuleGenerates an output value given the coordinates of the specified input value.All source modules required by this module must have been connected with the
NoiseModule.setSourceModule(int, NoiseModule)method. If these source modules are not connected, this method will throw aNoModuleException.To determine the number of source modules required by this noise module, call the
NoiseModule.sourceModuleCount()method.- Specified by:
getin classNoiseModule- Parameters:
x- thexcoordinate of the input valuey- theycoordinate of the input valuez- thezcoordinate of the input value- Returns:
- the output value
-