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 Details

    • barrierNoise

      private final DensityFunction barrierNoise
      The field for the barrierNoise record component.
    • fluidLevelFloodednessNoise

      private final DensityFunction fluidLevelFloodednessNoise
      The field for the fluidLevelFloodednessNoise record component.
    • fluidLevelSpreadNoise

      private final DensityFunction fluidLevelSpreadNoise
      The field for the fluidLevelSpreadNoise record component.
    • lavaNoise

      private final DensityFunction lavaNoise
      The field for the lavaNoise record component.
    • temperature

      private final DensityFunction temperature
      The field for the temperature record component.
    • vegetation

      private final DensityFunction vegetation
      The field for the vegetation record component.
    • continents

      private final DensityFunction continents
      The field for the continents record component.
    • erosion

      private final DensityFunction erosion
      The field for the erosion record component.
    • depth

      private final DensityFunction depth
      The field for the depth record component.
    • ridges

      private final DensityFunction ridges
      The field for the ridges record component.
    • initialDensityWithoutJaggedness

      private final DensityFunction initialDensityWithoutJaggedness
      The field for the initialDensityWithoutJaggedness record component.
    • finalDensity

      private final DensityFunction finalDensity
      The field for the finalDensity record component.
    • veinToggle

      private final DensityFunction veinToggle
      The field for the veinToggle record component.
    • veinRidged

      private final DensityFunction veinRidged
      The field for the veinRidged record component.
    • veinGap

      private final DensityFunction veinGap
      The field for the veinGap record component.
    • CODEC

      public static final com.mojang.serialization.Codec<NoiseRouter> 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 a NoiseRouter record class.
      Parameters:
      barrierNoise - the value for the barrierNoise record component
      fluidLevelFloodednessNoise - the value for the fluidLevelFloodednessNoise record component
      fluidLevelSpreadNoise - the value for the fluidLevelSpreadNoise record component
      lavaNoise - the value for the lavaNoise record component
      temperature - the value for the temperature record component
      vegetation - the value for the vegetation record component
      continents - the value for the continents record component
      erosion - the value for the erosion record component
      depth - the value for the depth record component
      ridges - the value for the ridges record component
      initialDensityWithoutJaggedness - the value for the initialDensityWithoutJaggedness record component
      finalDensity - the value for the finalDensity record component
      veinToggle - the value for the veinToggle record component
      veinRidged - the value for the veinRidged record component
      veinGap - the value for the veinGap record component
  • Method Details

    • field

      private static com.mojang.serialization.codecs.RecordCodecBuilder<NoiseRouter,DensityFunction> field(String p_224415_, Function<NoiseRouter,DensityFunction> p_224416_)
    • mapAll

      public NoiseRouter mapAll(DensityFunction.Visitor p_224413_)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • barrierNoise

      public DensityFunction barrierNoise()
      Returns the value of the barrierNoise record component.
      Returns:
      the value of the barrierNoise record component
    • fluidLevelFloodednessNoise

      public DensityFunction fluidLevelFloodednessNoise()
      Returns the value of the fluidLevelFloodednessNoise record component.
      Returns:
      the value of the fluidLevelFloodednessNoise record component
    • fluidLevelSpreadNoise

      public DensityFunction fluidLevelSpreadNoise()
      Returns the value of the fluidLevelSpreadNoise record component.
      Returns:
      the value of the fluidLevelSpreadNoise record component
    • lavaNoise

      public DensityFunction lavaNoise()
      Returns the value of the lavaNoise record component.
      Returns:
      the value of the lavaNoise record component
    • temperature

      public DensityFunction temperature()
      Returns the value of the temperature record component.
      Returns:
      the value of the temperature record component
    • vegetation

      public DensityFunction vegetation()
      Returns the value of the vegetation record component.
      Returns:
      the value of the vegetation record component
    • continents

      public DensityFunction continents()
      Returns the value of the continents record component.
      Returns:
      the value of the continents record component
    • erosion

      public DensityFunction erosion()
      Returns the value of the erosion record component.
      Returns:
      the value of the erosion record component
    • depth

      public DensityFunction depth()
      Returns the value of the depth record component.
      Returns:
      the value of the depth record component
    • ridges

      public DensityFunction ridges()
      Returns the value of the ridges record component.
      Returns:
      the value of the ridges record component
    • initialDensityWithoutJaggedness

      public DensityFunction initialDensityWithoutJaggedness()
      Returns the value of the initialDensityWithoutJaggedness record component.
      Returns:
      the value of the initialDensityWithoutJaggedness record component
    • finalDensity

      public DensityFunction finalDensity()
      Returns the value of the finalDensity record component.
      Returns:
      the value of the finalDensity record component
    • veinToggle

      public DensityFunction veinToggle()
      Returns the value of the veinToggle record component.
      Returns:
      the value of the veinToggle record component
    • veinRidged

      public DensityFunction veinRidged()
      Returns the value of the veinRidged record component.
      Returns:
      the value of the veinRidged record component
    • veinGap

      public DensityFunction veinGap()
      Returns the value of the veinGap record component.
      Returns:
      the value of the veinGap record component