Record Class NoiseRouter
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseRouter
public record NoiseRouter(DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction chunkSurfaceLevel, DensityFunction finalDensity)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DensityFunctionThe field for thechunkSurfaceLevelrecord component.static final com.mojang.serialization.Codec<NoiseRouter> private final DensityFunctionThe field for thecontinentsrecord component.private final DensityFunctionThe field for thedepthrecord component.private final DensityFunctionThe field for theerosionrecord component.private final DensityFunctionThe field for thefinalDensityrecord component.private final DensityFunctionThe field for theridgesrecord component.private final DensityFunctionThe field for thetemperaturerecord component.private final DensityFunctionThe field for thevegetationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseRouter(DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction chunkSurfaceLevel, DensityFunction finalDensity) Creates an instance of aNoiseRouterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkSurfaceLevelrecord component.Returns the value of thecontinentsrecord component.createClimateSampler(DensitySamplerSet densitySamplers) depth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.erosion()Returns the value of theerosionrecord component.Returns the value of thefinalDensityrecord component.final inthashCode()Returns a hash code value for this object.ridges()Returns the value of theridgesrecord component.Returns the value of thetemperaturerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevegetationrecord component.
-
Field Details
-
temperature
The field for thetemperaturerecord component. -
vegetation
The field for thevegetationrecord component. -
continents
The field for thecontinentsrecord component. -
erosion
The field for theerosionrecord component. -
depth
The field for thedepthrecord component. -
ridges
The field for theridgesrecord component. -
chunkSurfaceLevel
The field for thechunkSurfaceLevelrecord component. -
finalDensity
The field for thefinalDensityrecord component. -
CODEC
-
-
Constructor Details
-
NoiseRouter
public NoiseRouter(DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction chunkSurfaceLevel, DensityFunction finalDensity) Creates an instance of aNoiseRouterrecord class.- Parameters:
temperature- the value for thetemperaturerecord componentvegetation- the value for thevegetationrecord componentcontinents- the value for thecontinentsrecord componenterosion- the value for theerosionrecord componentdepth- the value for thedepthrecord componentridges- the value for theridgesrecord componentchunkSurfaceLevel- the value for thechunkSurfaceLevelrecord componentfinalDensity- the value for thefinalDensityrecord component
-
-
Method Details
-
createClimateSampler
-
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 withObjects::equals(Object,Object). -
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
vegetation
Returns the value of thevegetationrecord component.- Returns:
- the value of the
vegetationrecord component
-
continents
Returns the value of thecontinentsrecord component.- Returns:
- the value of the
continentsrecord component
-
erosion
Returns the value of theerosionrecord component.- Returns:
- the value of the
erosionrecord component
-
depth
Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
ridges
Returns the value of theridgesrecord component.- Returns:
- the value of the
ridgesrecord component
-
chunkSurfaceLevel
Returns the value of thechunkSurfaceLevelrecord component.- Returns:
- the value of the
chunkSurfaceLevelrecord component
-
finalDensity
Returns the value of thefinalDensityrecord component.- Returns:
- the value of the
finalDensityrecord component
-