Record Class GeodeFeature.Config

java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.gen.feature.impl.GeodeFeature.Config
Record Components:
outerWallProvider - The block provider for the outermost protective shell.
middleWallProvider - The block provider for the intermediate transition layer.
innerWallProvider - The block provider for the inner geode crust.
fillingProvider - The block provider used to fill the hollow center.
innerPlacementsProvider - The block provider used for random crystal attachments on the inner wall.
invalidBlocks - A list of block info structures that will abort generation if encountered at the origin.
minRadius - The baseline radius of the inner geode cavity.
maxRadius - The absolute maximum radius of the geode's outermost shell.
All Implemented Interfaces:
FeatureConfig
Enclosing class:
GeodeFeature

public static record GeodeFeature.Config(BlockStateProvider outerWallProvider, BlockStateProvider middleWallProvider, BlockStateProvider innerWallProvider, BlockStateProvider fillingProvider, BlockStateProvider innerPlacementsProvider, List<BlockInfo> invalidBlocks, int minRadius, int maxRadius) extends Record implements FeatureConfig
Configuration record for the geode feature.
  • Field Details

    • CODEC

      public static final Codec<GeodeFeature.Config> CODEC
      The codec for serializing and deserializing the configuration.
  • Constructor Details

  • 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.
    • outerWallProvider

      public BlockStateProvider outerWallProvider()
      Returns the value of the outerWallProvider record component.
      Returns:
      the value of the outerWallProvider record component
    • middleWallProvider

      public BlockStateProvider middleWallProvider()
      Returns the value of the middleWallProvider record component.
      Returns:
      the value of the middleWallProvider record component
    • innerWallProvider

      public BlockStateProvider innerWallProvider()
      Returns the value of the innerWallProvider record component.
      Returns:
      the value of the innerWallProvider record component
    • fillingProvider

      public BlockStateProvider fillingProvider()
      Returns the value of the fillingProvider record component.
      Returns:
      the value of the fillingProvider record component
    • innerPlacementsProvider

      public BlockStateProvider innerPlacementsProvider()
      Returns the value of the innerPlacementsProvider record component.
      Returns:
      the value of the innerPlacementsProvider record component
    • invalidBlocks

      public List<BlockInfo> invalidBlocks()
      Returns the value of the invalidBlocks record component.
      Returns:
      the value of the invalidBlocks record component
    • minRadius

      public int minRadius()
      Returns the value of the minRadius record component.
      Returns:
      the value of the minRadius record component
    • maxRadius

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