Record Class SphereConfig

java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.configuration.SphereConfig
All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

public record SphereConfig(net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings, net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings, net.minecraft.world.level.levelgen.GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, net.minecraft.util.valueproviders.IntProvider outerWallDistance, net.minecraft.util.valueproviders.IntProvider distributionPoints, net.minecraft.util.valueproviders.IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold) extends Record implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<Double>
     
    static final com.mojang.serialization.Codec<SphereConfig>
     

    Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    SphereConfig(net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings, net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings, net.minecraft.world.level.levelgen.GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, net.minecraft.util.valueproviders.IntProvider outerWallDistance, net.minecraft.util.valueproviders.IntProvider distributionPoints, net.minecraft.util.valueproviders.IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold)
    Creates an instance of a SphereConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.util.valueproviders.IntProvider
    Returns the value of the distributionPoints record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.world.level.levelgen.GeodeBlockSettings
    Returns the value of the geodeBlockSettings record component.
    net.minecraft.world.level.levelgen.GeodeCrackSettings
    Returns the value of the geodeCrackSettings record component.
    net.minecraft.world.level.levelgen.GeodeLayerSettings
    Returns the value of the geodeLayerSettings record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the invalidBlocksThreshold record component.
    int
    Returns the value of the maxGenOffset record component.
    int
    Returns the value of the minGenOffset record component.
    double
    Returns the value of the noiseMultiplier record component.
    net.minecraft.util.valueproviders.IntProvider
    Returns the value of the outerWallDistance record component.
    boolean
    Returns the value of the placementsRequireLayer0Alternate record component.
    net.minecraft.util.valueproviders.IntProvider
    Returns the value of the pointOffset record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the useAlternateLayer0Chance record component.
    double
    Returns the value of the usePotentialPlacementsChance record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

    getFeatures
  • Field Details

    • CHANCE_RANGE

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

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

    • SphereConfig

      public SphereConfig(net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings, net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings, net.minecraft.world.level.levelgen.GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, net.minecraft.util.valueproviders.IntProvider outerWallDistance, net.minecraft.util.valueproviders.IntProvider distributionPoints, net.minecraft.util.valueproviders.IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold)
      Creates an instance of a SphereConfig 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 '=='.
      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 net.minecraft.world.level.levelgen.GeodeBlockSettings geodeBlockSettings()
      Returns the value of the geodeBlockSettings record component.
      Returns:
      the value of the geodeBlockSettings record component
    • geodeLayerSettings

      public net.minecraft.world.level.levelgen.GeodeLayerSettings geodeLayerSettings()
      Returns the value of the geodeLayerSettings record component.
      Returns:
      the value of the geodeLayerSettings record component
    • geodeCrackSettings

      public net.minecraft.world.level.levelgen.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 net.minecraft.util.valueproviders.IntProvider outerWallDistance()
      Returns the value of the outerWallDistance record component.
      Returns:
      the value of the outerWallDistance record component
    • distributionPoints

      public net.minecraft.util.valueproviders.IntProvider distributionPoints()
      Returns the value of the distributionPoints record component.
      Returns:
      the value of the distributionPoints record component
    • pointOffset

      public net.minecraft.util.valueproviders.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