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
FieldsModifier and TypeFieldDescriptionprivate final NoiseSliderThe field for thebottomSlideSettingsrecord component.(package private) static final NoiseSettingsstatic final com.mojang.serialization.Codec<NoiseSettings>(package private) static final NoiseSettings(package private) static final NoiseSettingsprivate final intThe field for theheightrecord component.private final intThe field for theminYrecord component.(package private) static final NoiseSettingsprivate final NoiseSamplingSettingsThe field for thenoiseSamplingSettingsrecord component.private final intThe field for thenoiseSizeHorizontalrecord component.private final intThe field for thenoiseSizeVerticalrecord component.private final TerrainShaperThe field for theterrainShaperrecord component.private final NoiseSliderThe field for thetopSlideSettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseSettings(int minY, int height, NoiseSamplingSettings noiseSamplingSettings, NoiseSlider topSlideSettings, NoiseSlider bottomSlideSettings, int noiseSizeHorizontal, int noiseSizeVertical, TerrainShaper terrainShaper) Creates an instance of aNoiseSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottomSlideSettingsrecord component.static NoiseSettingscreate(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 booleanIndicates whether some other object is "equal to" this one.intintintintprivate static com.mojang.serialization.DataResult<NoiseSettings>guardY(NoiseSettings p_158721_) final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intminY()Returns the value of theminYrecord component.Returns the value of thenoiseSamplingSettingsrecord component.intReturns the value of thenoiseSizeHorizontalrecord component.intReturns the value of thenoiseSizeVerticalrecord component.(package private) static NoiseSettingsoverworldNoiseSettings(boolean p_212308_) Returns the value of theterrainShaperrecord component.Returns the value of thetopSlideSettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
minY
private final int minYThe field for theminYrecord component. -
height
private final int heightThe field for theheightrecord component. -
noiseSamplingSettings
The field for thenoiseSamplingSettingsrecord component. -
topSlideSettings
The field for thetopSlideSettingsrecord component. -
bottomSlideSettings
The field for thebottomSlideSettingsrecord component. -
noiseSizeHorizontal
private final int noiseSizeHorizontalThe field for thenoiseSizeHorizontalrecord component. -
noiseSizeVertical
private final int noiseSizeVerticalThe field for thenoiseSizeVerticalrecord component. -
terrainShaper
The field for theterrainShaperrecord 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 aNoiseSettingsrecord class.- Parameters:
minY- the value for theminYrecord componentheight- the value for theheightrecord componentnoiseSamplingSettings- the value for thenoiseSamplingSettingsrecord componenttopSlideSettings- the value for thetopSlideSettingsrecord componentbottomSlideSettings- the value for thebottomSlideSettingsrecord componentnoiseSizeHorizontal- the value for thenoiseSizeHorizontalrecord componentnoiseSizeVertical- the value for thenoiseSizeVerticalrecord componentterrainShaper- the value for theterrainShaperrecord 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 theminYrecord component.- Returns:
- the value of the
minYrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
noiseSamplingSettings
Returns the value of thenoiseSamplingSettingsrecord component.- Returns:
- the value of the
noiseSamplingSettingsrecord component
-
topSlideSettings
Returns the value of thetopSlideSettingsrecord component.- Returns:
- the value of the
topSlideSettingsrecord component
-
bottomSlideSettings
Returns the value of thebottomSlideSettingsrecord component.- Returns:
- the value of the
bottomSlideSettingsrecord component
-
noiseSizeHorizontal
public int noiseSizeHorizontal()Returns the value of thenoiseSizeHorizontalrecord component.- Returns:
- the value of the
noiseSizeHorizontalrecord component
-
noiseSizeVertical
public int noiseSizeVertical()Returns the value of thenoiseSizeVerticalrecord component.- Returns:
- the value of the
noiseSizeVerticalrecord component
-
terrainShaper
Returns the value of theterrainShaperrecord component.- Returns:
- the value of the
terrainShaperrecord component
-