Record Class PointedStoneClusterConfiguration

java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.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 stone_provider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider base_stone_provider) 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<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 stone_provider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider base_stone_provider)
    Creates an instance of a PointedStoneClusterConfiguration record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the base_stone_provider record component.
    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.
    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 stone_provider 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 stone_provider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider base_stone_provider)
      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
      stone_provider - the value for the stone_provider record component
      base_stone_provider - the value for the base_stone_provider 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
    • stone_provider

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

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