Record Class NoiseSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseSettings
public record NoiseSettings(int minY, int height, int noiseSizeHorizontal, int noiseSizeVertical)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final NoiseSettingsstatic final com.mojang.serialization.Codec<NoiseSettings>protected static final NoiseSettingsprotected static final NoiseSettingsprivate final intThe field for theheightrecord component.private final intThe field for theminYrecord component.protected static final NoiseSettingsprivate final intThe field for thenoiseSizeHorizontalrecord component.private final intThe field for thenoiseSizeVerticalrecord component.protected static final NoiseSettings
- 
Constructor SummaryConstructorsConstructorDescriptionNoiseSettings(int minY, int height, int noiseSizeHorizontal, int noiseSizeVertical) Creates an instance of aNoiseSettingsrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionclampToHeightAccessor(LevelHeightAccessor p_224531_) static NoiseSettingscreate(int p_224526_, int p_224527_, int p_224528_, int p_224529_) final booleanIndicates whether some other object is "equal to" this one.intintprivate 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.intReturns the value of thenoiseSizeHorizontalrecord component.intReturns the value of thenoiseSizeVerticalrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
minYprivate final int minYThe field for theminYrecord component.
- 
heightprivate final int heightThe field for theheightrecord component.
- 
noiseSizeHorizontalprivate final int noiseSizeHorizontalThe field for thenoiseSizeHorizontalrecord component.
- 
noiseSizeVerticalprivate final int noiseSizeVerticalThe field for thenoiseSizeVerticalrecord component.
- 
CODEC
- 
OVERWORLD_NOISE_SETTINGS
- 
NETHER_NOISE_SETTINGS
- 
END_NOISE_SETTINGS
- 
CAVES_NOISE_SETTINGS
- 
FLOATING_ISLANDS_NOISE_SETTINGS
 
- 
- 
Constructor Details- 
NoiseSettingspublic NoiseSettings(int minY, int height, int noiseSizeHorizontal, int noiseSizeVertical) Creates an instance of aNoiseSettingsrecord class.- Parameters:
- minY- the value for the- minYrecord component
- height- the value for the- heightrecord component
- noiseSizeHorizontal- the value for the- noiseSizeHorizontalrecord component
- noiseSizeVertical- the value for the- noiseSizeVerticalrecord component
 
 
- 
- 
Method Details- 
guardY
- 
create
- 
getCellHeightpublic int getCellHeight()
- 
getCellWidthpublic int getCellWidth()
- 
clampToHeightAccessor
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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. All components in this record class are compared with '=='.
- 
minYpublic int minY()Returns the value of theminYrecord component.- Returns:
- the value of the minYrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
- 
noiseSizeHorizontalpublic int noiseSizeHorizontal()Returns the value of thenoiseSizeHorizontalrecord component.- Returns:
- the value of the noiseSizeHorizontalrecord component
 
- 
noiseSizeVerticalpublic int noiseSizeVertical()Returns the value of thenoiseSizeVerticalrecord component.- Returns:
- the value of the noiseSizeVerticalrecord component
 
 
-