Record Class PointedStoneClusterConfiguration

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

public record PointedStoneClusterConfiguration(float chanceOfTallerDripstone, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock) extends Record implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
PointedDripstoneConfiguration
  • Field Summary

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

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

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    PointedStoneClusterConfiguration(float chanceOfTallerDripstone, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock)
    Creates an instance of a PointedStoneClusterConfiguration record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the chanceOfDirectionalSpread record component.
    float
    Returns the value of the chanceOfSpreadRadius2 record component.
    float
    Returns the value of the chanceOfSpreadRadius3 record component.
    float
    Returns the value of the chanceOfTallerDripstone record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the dripstoneBlock record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the stoneProvider record component.
    final String
    Returns a string representation of this record class.

    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

  • Constructor Details

    • PointedStoneClusterConfiguration

      public PointedStoneClusterConfiguration(float chanceOfTallerDripstone, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock)
      Creates an instance of a PointedStoneClusterConfiguration record class.
      Parameters:
      chanceOfTallerDripstone - the value for the chanceOfTallerDripstone record component
      chanceOfDirectionalSpread - the value for the chanceOfDirectionalSpread record component
      chanceOfSpreadRadius2 - the value for the chanceOfSpreadRadius2 record component
      chanceOfSpreadRadius3 - the value for the chanceOfSpreadRadius3 record component
      stoneProvider - the value for the stoneProvider record component
      dripstoneBlock - the value for the dripstoneBlock 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.
    • chanceOfTallerDripstone

      public float chanceOfTallerDripstone()
      Returns the value of the chanceOfTallerDripstone record component.
      Returns:
      the value of the chanceOfTallerDripstone record component
    • chanceOfDirectionalSpread

      public float chanceOfDirectionalSpread()
      Returns the value of the chanceOfDirectionalSpread record component.
      Returns:
      the value of the chanceOfDirectionalSpread record component
    • chanceOfSpreadRadius2

      public float chanceOfSpreadRadius2()
      Returns the value of the chanceOfSpreadRadius2 record component.
      Returns:
      the value of the chanceOfSpreadRadius2 record component
    • chanceOfSpreadRadius3

      public float chanceOfSpreadRadius3()
      Returns the value of the chanceOfSpreadRadius3 record component.
      Returns:
      the value of the chanceOfSpreadRadius3 record component
    • stoneProvider

      public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider()
      Returns the value of the stoneProvider record component.
      Returns:
      the value of the stoneProvider record component
    • dripstoneBlock

      public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock()
      Returns the value of the dripstoneBlock record component.
      Returns:
      the value of the dripstoneBlock record component