Record Class NoiseRouter
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseRouter
public record NoiseRouter(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction initialDensityWithoutJaggedness, DensityFunction finalDensity, DensityFunction veinToggle, DensityFunction veinRidged, DensityFunction veinGap)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DensityFunction
The field for thebarrierNoise
record component.static final com.mojang.serialization.Codec
<NoiseRouter> private final DensityFunction
The field for thecontinents
record component.private final DensityFunction
The field for thedepth
record component.private final DensityFunction
The field for theerosion
record component.private final DensityFunction
The field for thefinalDensity
record component.private final DensityFunction
The field for thefluidLevelFloodednessNoise
record component.private final DensityFunction
The field for thefluidLevelSpreadNoise
record component.private final DensityFunction
The field for theinitialDensityWithoutJaggedness
record component.private final DensityFunction
The field for thelavaNoise
record component.private final DensityFunction
The field for theridges
record component.private final DensityFunction
The field for thetemperature
record component.private final DensityFunction
The field for thevegetation
record component.private final DensityFunction
The field for theveinGap
record component.private final DensityFunction
The field for theveinRidged
record component.private final DensityFunction
The field for theveinToggle
record component. -
Constructor Summary
ConstructorDescriptionNoiseRouter
(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction initialDensityWithoutJaggedness, DensityFunction finalDensity, DensityFunction veinToggle, DensityFunction veinRidged, DensityFunction veinGap) Creates an instance of aNoiseRouter
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebarrierNoise
record component.Returns the value of thecontinents
record component.depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.erosion()
Returns the value of theerosion
record component.private static com.mojang.serialization.codecs.RecordCodecBuilder
<NoiseRouter, DensityFunction> field
(String p_224415_, Function<NoiseRouter, DensityFunction> p_224416_) Returns the value of thefinalDensity
record component.Returns the value of thefluidLevelFloodednessNoise
record component.Returns the value of thefluidLevelSpreadNoise
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinitialDensityWithoutJaggedness
record component.Returns the value of thelavaNoise
record component.mapAll
(DensityFunction.Visitor p_224413_) ridges()
Returns the value of theridges
record component.Returns the value of thetemperature
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevegetation
record component.veinGap()
Returns the value of theveinGap
record component.Returns the value of theveinRidged
record component.Returns the value of theveinToggle
record component.
-
Field Details
-
barrierNoise
The field for thebarrierNoise
record component. -
fluidLevelFloodednessNoise
The field for thefluidLevelFloodednessNoise
record component. -
fluidLevelSpreadNoise
The field for thefluidLevelSpreadNoise
record component. -
lavaNoise
The field for thelavaNoise
record component. -
temperature
The field for thetemperature
record component. -
vegetation
The field for thevegetation
record component. -
continents
The field for thecontinents
record component. -
erosion
The field for theerosion
record component. -
depth
The field for thedepth
record component. -
ridges
The field for theridges
record component. -
initialDensityWithoutJaggedness
The field for theinitialDensityWithoutJaggedness
record component. -
finalDensity
The field for thefinalDensity
record component. -
veinToggle
The field for theveinToggle
record component. -
veinRidged
The field for theveinRidged
record component. -
veinGap
The field for theveinGap
record component. -
CODEC
-
-
Constructor Details
-
NoiseRouter
public NoiseRouter(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction initialDensityWithoutJaggedness, DensityFunction finalDensity, DensityFunction veinToggle, DensityFunction veinRidged, DensityFunction veinGap) Creates an instance of aNoiseRouter
record class.- Parameters:
barrierNoise
- the value for thebarrierNoise
record componentfluidLevelFloodednessNoise
- the value for thefluidLevelFloodednessNoise
record componentfluidLevelSpreadNoise
- the value for thefluidLevelSpreadNoise
record componentlavaNoise
- the value for thelavaNoise
record componenttemperature
- the value for thetemperature
record componentvegetation
- the value for thevegetation
record componentcontinents
- the value for thecontinents
record componenterosion
- the value for theerosion
record componentdepth
- the value for thedepth
record componentridges
- the value for theridges
record componentinitialDensityWithoutJaggedness
- the value for theinitialDensityWithoutJaggedness
record componentfinalDensity
- the value for thefinalDensity
record componentveinToggle
- the value for theveinToggle
record componentveinRidged
- the value for theveinRidged
record componentveinGap
- the value for theveinGap
record component
-
-
Method Details
-
field
private static com.mojang.serialization.codecs.RecordCodecBuilder<NoiseRouter,DensityFunction> field(String p_224415_, Function<NoiseRouter, DensityFunction> p_224416_) -
mapAll
-
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 withObjects::equals(Object,Object)
. -
barrierNoise
Returns the value of thebarrierNoise
record component.- Returns:
- the value of the
barrierNoise
record component
-
fluidLevelFloodednessNoise
Returns the value of thefluidLevelFloodednessNoise
record component.- Returns:
- the value of the
fluidLevelFloodednessNoise
record component
-
fluidLevelSpreadNoise
Returns the value of thefluidLevelSpreadNoise
record component.- Returns:
- the value of the
fluidLevelSpreadNoise
record component
-
lavaNoise
Returns the value of thelavaNoise
record component.- Returns:
- the value of the
lavaNoise
record component
-
temperature
Returns the value of thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
vegetation
Returns the value of thevegetation
record component.- Returns:
- the value of the
vegetation
record component
-
continents
Returns the value of thecontinents
record component.- Returns:
- the value of the
continents
record component
-
erosion
Returns the value of theerosion
record component.- Returns:
- the value of the
erosion
record component
-
depth
Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-
ridges
Returns the value of theridges
record component.- Returns:
- the value of the
ridges
record component
-
initialDensityWithoutJaggedness
Returns the value of theinitialDensityWithoutJaggedness
record component.- Returns:
- the value of the
initialDensityWithoutJaggedness
record component
-
finalDensity
Returns the value of thefinalDensity
record component.- Returns:
- the value of the
finalDensity
record component
-
veinToggle
Returns the value of theveinToggle
record component.- Returns:
- the value of the
veinToggle
record component
-
veinRidged
Returns the value of theveinRidged
record component.- Returns:
- the value of the
veinRidged
record component
-
veinGap
Returns the value of theveinGap
record component.- Returns:
- the value of the
veinGap
record component
-