Interface NoiseParameters
- All Known Subinterfaces:
ComposedNoiseParameters, ReferencedNoiseParameters
Wrapper for noise parameters.
- Since:
- 2.3.0
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new composed noise parameters builder.composed()Creates a new composed noise parameters builder.static NoiseParametersReads Minecraft noise parameters, or a holder of them, into a wrapper.static ComposedNoiseParametersof(int firstOctave, double... amplitudes) Creates a new composed noise parameters.static ComposedNoiseParametersCreates a new composed noise parameters.static ComposedNoiseParametersof(@Nullable ResourceKey resourceKey, int firstOctave, List<Double> amplitudes) Creates a new composed noise parameters.static ReferencedNoiseParametersof(ResourceKey key) Creates a reference to a noise parameters.static ReferencedNoiseParametersreference(ResourceKey key) Creates a reference to a noise parameters.The resource key of the noise parameters.default NoiseParameterswrap()Resolves this object's key in Minecraft's noise registry and decodes the registered value.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
resourceKey
The resource key of the noise parameters.- Returns:
- the resource key of the noise parameters
- Since:
- 3.0.0
-
reference
Creates a reference to a noise parameters.- Parameters:
key- the resource key of the noise parameters- Returns:
- a reference to the noise parameters
- Since:
- 3.0.0
-
wrap
Resolves this object's key in Minecraft's noise registry and decodes the registered value.- Returns:
- the decoded noise parameters
- Throws:
IllegalStateException- if this object has no resource key- Since:
- 3.3.0
-
composed
Creates a new composed noise parameters builder.- Returns:
- a new composed noise parameters builder
- Since:
- 3.0.0
-
of
Creates a reference to a noise parameters.- Parameters:
key- the resource key of the noise parameters- Returns:
- a reference to the noise parameters
- Since:
- 3.0.0
-
builder
Creates a new composed noise parameters builder.- Returns:
- a new composed noise parameters builder
- Since:
- 2.3.0
-
of
@AsOf("3.0.0") static ComposedNoiseParameters of(@Nullable ResourceKey resourceKey, int firstOctave, List<Double> amplitudes) Creates a new composed noise parameters.- Parameters:
resourceKey- the resource key of the noise parametersfirstOctave- the first octave of the noise parametersamplitudes- the amplitudes of the noise parameters- Returns:
- a new composed noise parameters
- Since:
- 3.0.0
-
of
Creates a new composed noise parameters.- Parameters:
firstOctave- the first octave of the noise parametersamplitudes- the amplitudes of the noise parameters- Returns:
- a new composed noise parameters
- Since:
- 3.0.0
-
of
Creates a new composed noise parameters.- Parameters:
firstOctave- the first octave of the noise parametersamplitudes- the amplitudes of the noise parameters- Returns:
- a new composed noise parameters
- Since:
- 3.0.0
-
decode
Reads Minecraft noise parameters, or a holder of them, into a wrapper.- Parameters:
minecraftNoiseParameters- the noise parameters to read- Returns:
- the wrapper for them
- Since:
- 3.3.0
-