Record Class NoiseSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseSettings
-
Field Summary
FieldsModifier and TypeFieldDescription(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 NoiseSettings(package private) static final NoiseSettings -
Constructor Summary
ConstructorsConstructorDescriptionNoiseSettings(int minY, int height) Creates an instance of aNoiseSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclampToHeightAccessor(LevelHeightAccessor heightAccessor) static NoiseSettingscreate(int minY, int height) final booleanIndicates whether some other object is "equal to" this one.private static com.mojang.serialization.DataResult<NoiseSettings> guardY(NoiseSettings dimensionType) final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intminY()Returns the value of theminYrecord 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. -
CODEC
-
OVERWORLD_NOISE_SETTINGS
-
NETHER_NOISE_SETTINGS
-
END_NOISE_SETTINGS
-
CAVES_NOISE_SETTINGS
-
FLOATING_ISLANDS_NOISE_SETTINGS
-
-
Constructor Details
-
NoiseSettings
public NoiseSettings(int minY, int height) Creates an instance of aNoiseSettingsrecord class.- Parameters:
minY- the value for theminYrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
guardY
private static com.mojang.serialization.DataResult<NoiseSettings> guardY(NoiseSettings dimensionType) -
create
-
clampToHeightAccessor
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
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
-