Record Class GeodeConfiguration

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.GeodeConfiguration
All Implemented Interfaces:
FeatureConfiguration

public record GeodeConfiguration(GeodeBlockSettings geodeBlockSettings, GeodeLayerSettings geodeLayerSettings, GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, IntProvider outerWallDistance, IntProvider distributionPoints, IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold) extends Record implements FeatureConfiguration
  • Field Details

    • geodeBlockSettings

      private final GeodeBlockSettings geodeBlockSettings
      The field for the geodeBlockSettings record component.
    • geodeLayerSettings

      private final GeodeLayerSettings geodeLayerSettings
      The field for the geodeLayerSettings record component.
    • geodeCrackSettings

      private final GeodeCrackSettings geodeCrackSettings
      The field for the geodeCrackSettings record component.
    • usePotentialPlacementsChance

      private final double usePotentialPlacementsChance
      The field for the usePotentialPlacementsChance record component.
    • useAlternateLayer0Chance

      private final double useAlternateLayer0Chance
      The field for the useAlternateLayer0Chance record component.
    • placementsRequireLayer0Alternate

      private final boolean placementsRequireLayer0Alternate
      The field for the placementsRequireLayer0Alternate record component.
    • outerWallDistance

      private final IntProvider outerWallDistance
      The field for the outerWallDistance record component.
    • distributionPoints

      private final IntProvider distributionPoints
      The field for the distributionPoints record component.
    • pointOffset

      private final IntProvider pointOffset
      The field for the pointOffset record component.
    • minGenOffset

      private final int minGenOffset
      The field for the minGenOffset record component.
    • maxGenOffset

      private final int maxGenOffset
      The field for the maxGenOffset record component.
    • noiseMultiplier

      private final double noiseMultiplier
      The field for the noiseMultiplier record component.
    • invalidBlocksThreshold

      private final int invalidBlocksThreshold
      The field for the invalidBlocksThreshold record component.
    • CHANCE_RANGE

      public static final com.mojang.serialization.Codec<Double> CHANCE_RANGE
    • CODEC

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

    • GeodeConfiguration

      public GeodeConfiguration(GeodeBlockSettings geodeBlockSettings, GeodeLayerSettings geodeLayerSettings, GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, IntProvider outerWallDistance, IntProvider distributionPoints, IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold)
      Creates an instance of a GeodeConfiguration record class.
      Parameters:
      geodeBlockSettings - the value for the geodeBlockSettings record component
      geodeLayerSettings - the value for the geodeLayerSettings record component
      geodeCrackSettings - the value for the geodeCrackSettings record component
      usePotentialPlacementsChance - the value for the usePotentialPlacementsChance record component
      useAlternateLayer0Chance - the value for the useAlternateLayer0Chance record component
      placementsRequireLayer0Alternate - the value for the placementsRequireLayer0Alternate record component
      outerWallDistance - the value for the outerWallDistance record component
      distributionPoints - the value for the distributionPoints record component
      pointOffset - the value for the pointOffset record component
      minGenOffset - the value for the minGenOffset record component
      maxGenOffset - the value for the maxGenOffset record component
      noiseMultiplier - the value for the noiseMultiplier record component
      invalidBlocksThreshold - the value for the invalidBlocksThreshold record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • geodeBlockSettings

      public GeodeBlockSettings geodeBlockSettings()
      Returns the value of the geodeBlockSettings record component.
      Returns:
      the value of the geodeBlockSettings record component
    • geodeLayerSettings

      public GeodeLayerSettings geodeLayerSettings()
      Returns the value of the geodeLayerSettings record component.
      Returns:
      the value of the geodeLayerSettings record component
    • geodeCrackSettings

      public GeodeCrackSettings geodeCrackSettings()
      Returns the value of the geodeCrackSettings record component.
      Returns:
      the value of the geodeCrackSettings record component
    • usePotentialPlacementsChance

      public double usePotentialPlacementsChance()
      Returns the value of the usePotentialPlacementsChance record component.
      Returns:
      the value of the usePotentialPlacementsChance record component
    • useAlternateLayer0Chance

      public double useAlternateLayer0Chance()
      Returns the value of the useAlternateLayer0Chance record component.
      Returns:
      the value of the useAlternateLayer0Chance record component
    • placementsRequireLayer0Alternate

      public boolean placementsRequireLayer0Alternate()
      Returns the value of the placementsRequireLayer0Alternate record component.
      Returns:
      the value of the placementsRequireLayer0Alternate record component
    • outerWallDistance

      public IntProvider outerWallDistance()
      Returns the value of the outerWallDistance record component.
      Returns:
      the value of the outerWallDistance record component
    • distributionPoints

      public IntProvider distributionPoints()
      Returns the value of the distributionPoints record component.
      Returns:
      the value of the distributionPoints record component
    • pointOffset

      public IntProvider pointOffset()
      Returns the value of the pointOffset record component.
      Returns:
      the value of the pointOffset record component
    • minGenOffset

      public int minGenOffset()
      Returns the value of the minGenOffset record component.
      Returns:
      the value of the minGenOffset record component
    • maxGenOffset

      public int maxGenOffset()
      Returns the value of the maxGenOffset record component.
      Returns:
      the value of the maxGenOffset record component
    • noiseMultiplier

      public double noiseMultiplier()
      Returns the value of the noiseMultiplier record component.
      Returns:
      the value of the noiseMultiplier record component
    • invalidBlocksThreshold

      public int invalidBlocksThreshold()
      Returns the value of the invalidBlocksThreshold record component.
      Returns:
      the value of the invalidBlocksThreshold record component