Record Class Aquifer.Config

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.Aquifer.Config
Enclosing interface:
Aquifer

public static record Aquifer.Config(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction exclusion, DensityFunction surfaceLevel) 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.
    • exclusion

      private final DensityFunction exclusion
      The field for the exclusion record component.
    • surfaceLevel

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

      public static final com.mojang.serialization.Codec<Aquifer.Config> CODEC
  • Constructor Details

    • Config

      public Config(DensityFunction barrierNoise, DensityFunction fluidLevelFloodednessNoise, DensityFunction fluidLevelSpreadNoise, DensityFunction lavaNoise, DensityFunction exclusion, DensityFunction surfaceLevel)
      Creates an instance of a Config 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
      exclusion - the value for the exclusion record component
      surfaceLevel - the value for the surfaceLevel record component
  • Method Details

    • create

      public Aquifer create(DensitySamplerSet cachingSamplers, PositionalRandomFactory positionalRandomFactory, DensityVolume volume, Aquifer.FluidPicker fluidRule)
    • 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
    • exclusion

      public DensityFunction exclusion()
      Returns the value of the exclusion record component.
      Returns:
      the value of the exclusion record component
    • surfaceLevel

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