Record Class NoiseSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseSettings
public record NoiseSettings(int minY, int height, NoiseSamplingSettings noiseSamplingSettings, NoiseSlider topSlideSettings, NoiseSlider bottomSlideSettings, int noiseSizeHorizontal, int noiseSizeVertical, TerrainShaper terrainShaper)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NoiseSlider
The field for thebottomSlideSettings
record component.(package private) static final NoiseSettings
static final com.mojang.serialization.Codec<NoiseSettings>
(package private) static final NoiseSettings
(package private) static final NoiseSettings
private final int
The field for theheight
record component.private final int
The field for theminY
record component.(package private) static final NoiseSettings
private final NoiseSamplingSettings
The field for thenoiseSamplingSettings
record component.private final int
The field for thenoiseSizeHorizontal
record component.private final int
The field for thenoiseSizeVertical
record component.private final TerrainShaper
The field for theterrainShaper
record component.private final NoiseSlider
The field for thetopSlideSettings
record component. -
Constructor Summary
ConstructorDescriptionNoiseSettings
(int minY, int height, NoiseSamplingSettings noiseSamplingSettings, NoiseSlider topSlideSettings, NoiseSlider bottomSlideSettings, int noiseSizeHorizontal, int noiseSizeVertical, TerrainShaper terrainShaper) Creates an instance of aNoiseSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottomSlideSettings
record component.static NoiseSettings
create
(int p_212299_, int p_212300_, NoiseSamplingSettings p_212301_, NoiseSlider p_212302_, NoiseSlider p_212303_, int p_212304_, int p_212305_, TerrainShaper p_212306_) final boolean
Indicates whether some other object is "equal to" this one.int
int
int
int
private static com.mojang.serialization.DataResult<NoiseSettings>
guardY
(NoiseSettings p_158721_) final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.int
minY()
Returns the value of theminY
record component.Returns the value of thenoiseSamplingSettings
record component.int
Returns the value of thenoiseSizeHorizontal
record component.int
Returns the value of thenoiseSizeVertical
record component.(package private) static NoiseSettings
overworldNoiseSettings
(boolean p_212308_) Returns the value of theterrainShaper
record component.Returns the value of thetopSlideSettings
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
minY
private final int minYThe field for theminY
record component. -
height
private final int heightThe field for theheight
record component. -
noiseSamplingSettings
The field for thenoiseSamplingSettings
record component. -
topSlideSettings
The field for thetopSlideSettings
record component. -
bottomSlideSettings
The field for thebottomSlideSettings
record component. -
noiseSizeHorizontal
private final int noiseSizeHorizontalThe field for thenoiseSizeHorizontal
record component. -
noiseSizeVertical
private final int noiseSizeVerticalThe field for thenoiseSizeVertical
record component. -
terrainShaper
The field for theterrainShaper
record component. -
CODEC
-
NETHER_NOISE_SETTINGS
-
END_NOISE_SETTINGS
-
CAVES_NOISE_SETTINGS
-
FLOATING_ISLANDS_NOISE_SETTINGS
-
-
Constructor Details
-
NoiseSettings
public NoiseSettings(int minY, int height, NoiseSamplingSettings noiseSamplingSettings, NoiseSlider topSlideSettings, NoiseSlider bottomSlideSettings, int noiseSizeHorizontal, int noiseSizeVertical, TerrainShaper terrainShaper) Creates an instance of aNoiseSettings
record class.- Parameters:
minY
- the value for theminY
record componentheight
- the value for theheight
record componentnoiseSamplingSettings
- the value for thenoiseSamplingSettings
record componenttopSlideSettings
- the value for thetopSlideSettings
record componentbottomSlideSettings
- the value for thebottomSlideSettings
record componentnoiseSizeHorizontal
- the value for thenoiseSizeHorizontal
record componentnoiseSizeVertical
- the value for thenoiseSizeVertical
record componentterrainShaper
- the value for theterrainShaper
record component
-
-
Method Details
-
guardY
-
create
public static NoiseSettings create(int p_212299_, int p_212300_, NoiseSamplingSettings p_212301_, NoiseSlider p_212302_, NoiseSlider p_212303_, int p_212304_, int p_212305_, TerrainShaper p_212306_) -
overworldNoiseSettings
-
getCellHeight
public int getCellHeight() -
getCellWidth
public int getCellWidth() -
getCellCountY
public int getCellCountY() -
getMinCellY
public int getMinCellY() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
minY
public int minY()Returns the value of theminY
record component.- Returns:
- the value of the
minY
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
noiseSamplingSettings
Returns the value of thenoiseSamplingSettings
record component.- Returns:
- the value of the
noiseSamplingSettings
record component
-
topSlideSettings
Returns the value of thetopSlideSettings
record component.- Returns:
- the value of the
topSlideSettings
record component
-
bottomSlideSettings
Returns the value of thebottomSlideSettings
record component.- Returns:
- the value of the
bottomSlideSettings
record component
-
noiseSizeHorizontal
public int noiseSizeHorizontal()Returns the value of thenoiseSizeHorizontal
record component.- Returns:
- the value of the
noiseSizeHorizontal
record component
-
noiseSizeVertical
public int noiseSizeVertical()Returns the value of thenoiseSizeVertical
record component.- Returns:
- the value of the
noiseSizeVertical
record component
-
terrainShaper
Returns the value of theterrainShaper
record component.- Returns:
- the value of the
terrainShaper
record component
-