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
FieldsModifier and TypeFieldDescriptionprivate final DensityFunctionThe field for thebarrierNoiserecord 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 thefluidLevelFloodednessNoiserecord component.private final DensityFunctionThe field for thefluidLevelSpreadNoiserecord component.private final DensityFunctionThe field for theinitialDensityWithoutJaggednessrecord component.private final DensityFunctionThe field for thelavaNoiserecord component.private final DensityFunctionThe field for theridgesrecord component.private final DensityFunctionThe field for thetemperaturerecord component.private final DensityFunctionThe field for thevegetationrecord component.private final DensityFunctionThe field for theveinGaprecord component.private final DensityFunctionThe field for theveinRidgedrecord component.private final DensityFunctionThe field for theveinTogglerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseRouter(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 aNoiseRouterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebarrierNoiserecord component.Returns the value of thecontinentsrecord component.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.private static com.mojang.serialization.codecs.RecordCodecBuilder<NoiseRouter, DensityFunction> field(String p_224415_, Function<NoiseRouter, DensityFunction> p_224416_) Returns the value of thefinalDensityrecord component.Returns the value of thefluidLevelFloodednessNoiserecord component.Returns the value of thefluidLevelSpreadNoiserecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialDensityWithoutJaggednessrecord component.Returns the value of thelavaNoiserecord component.mapAll(DensityFunction.Visitor p_224413_) 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.veinGap()Returns the value of theveinGaprecord component.Returns the value of theveinRidgedrecord component.Returns the value of theveinTogglerecord component.
-
Field Details
-
barrierNoise
The field for thebarrierNoiserecord component. -
fluidLevelFloodednessNoise
The field for thefluidLevelFloodednessNoiserecord component. -
fluidLevelSpreadNoise
The field for thefluidLevelSpreadNoiserecord component. -
lavaNoise
The field for thelavaNoiserecord component. -
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. -
initialDensityWithoutJaggedness
The field for theinitialDensityWithoutJaggednessrecord component. -
finalDensity
The field for thefinalDensityrecord component. -
veinToggle
The field for theveinTogglerecord component. -
veinRidged
The field for theveinRidgedrecord component. -
veinGap
The field for theveinGaprecord 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 aNoiseRouterrecord class.- Parameters:
barrierNoise- the value for thebarrierNoiserecord componentfluidLevelFloodednessNoise- the value for thefluidLevelFloodednessNoiserecord componentfluidLevelSpreadNoise- the value for thefluidLevelSpreadNoiserecord componentlavaNoise- the value for thelavaNoiserecord componenttemperature- 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 componentinitialDensityWithoutJaggedness- the value for theinitialDensityWithoutJaggednessrecord componentfinalDensity- the value for thefinalDensityrecord componentveinToggle- the value for theveinTogglerecord componentveinRidged- the value for theveinRidgedrecord componentveinGap- the value for theveinGaprecord 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 thebarrierNoiserecord component.- Returns:
- the value of the
barrierNoiserecord component
-
fluidLevelFloodednessNoise
Returns the value of thefluidLevelFloodednessNoiserecord component.- Returns:
- the value of the
fluidLevelFloodednessNoiserecord component
-
fluidLevelSpreadNoise
Returns the value of thefluidLevelSpreadNoiserecord component.- Returns:
- the value of the
fluidLevelSpreadNoiserecord component
-
lavaNoise
Returns the value of thelavaNoiserecord component.- Returns:
- the value of the
lavaNoiserecord component
-
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
-
initialDensityWithoutJaggedness
Returns the value of theinitialDensityWithoutJaggednessrecord component.- Returns:
- the value of the
initialDensityWithoutJaggednessrecord component
-
finalDensity
Returns the value of thefinalDensityrecord component.- Returns:
- the value of the
finalDensityrecord component
-
veinToggle
Returns the value of theveinTogglerecord component.- Returns:
- the value of the
veinTogglerecord component
-
veinRidged
Returns the value of theveinRidgedrecord component.- Returns:
- the value of the
veinRidgedrecord component
-
veinGap
Returns the value of theveinGaprecord component.- Returns:
- the value of the
veinGaprecord component
-