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 Summary
Modifier and TypeFieldDescriptionprotected static final NoiseSettings
static final com.mojang.serialization.Codec
<NoiseSettings> protected static final NoiseSettings
protected static final NoiseSettings
private final int
The field for theheight
record component.private final int
The field for theminY
record component.protected static final NoiseSettings
private final int
The field for thenoiseSizeHorizontal
record component.private final int
The field for thenoiseSizeVertical
record component.protected static final NoiseSettings
-
Constructor Summary
ConstructorDescriptionNoiseSettings
(int minY, int height, int noiseSizeHorizontal, int noiseSizeVertical) Creates an instance of aNoiseSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionclampToHeightAccessor
(LevelHeightAccessor p_224531_) static NoiseSettings
create
(int p_224526_, int p_224527_, int p_224528_, int p_224529_) final boolean
Indicates whether some other object is "equal to" this one.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.int
Returns the value of thenoiseSizeHorizontal
record component.int
Returns the value of thenoiseSizeVertical
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. -
noiseSizeHorizontal
private final int noiseSizeHorizontalThe field for thenoiseSizeHorizontal
record component. -
noiseSizeVertical
private final int noiseSizeVerticalThe field for thenoiseSizeVertical
record 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, int noiseSizeHorizontal, int noiseSizeVertical) Creates an instance of aNoiseSettings
record class.- Parameters:
minY
- the value for theminY
record componentheight
- the value for theheight
record componentnoiseSizeHorizontal
- the value for thenoiseSizeHorizontal
record componentnoiseSizeVertical
- the value for thenoiseSizeVertical
record component
-
-
Method Details
-
guardY
-
create
-
getCellHeight
public int getCellHeight() -
getCellWidth
public int getCellWidth() -
clampToHeightAccessor
-
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. All components in this record class 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
-
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
-