Record Class CurvingTunnelFeatureConfig

java.lang.Object
java.lang.Record
net.frozenblock.lib.worldgen.feature.api.features.config.CurvingTunnelFeatureConfig
All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

public record CurvingTunnelFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, double minCurvature, double maxCurvature, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks) 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<CurvingTunnelFeatureConfig>
     

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

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CurvingTunnelFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, double minCurvature, double maxCurvature, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks)
    Creates an instance of a CurvingTunnelFeatureConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the maxCurvature record component.
    double
    Returns the value of the minCurvature record component.
    int
    Returns the value of the radius record component.
    net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
    Returns the value of the replaceableBlocks record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the state 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

    • CurvingTunnelFeatureConfig

      public CurvingTunnelFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, int radius, double minCurvature, double maxCurvature, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks)
      Creates an instance of a CurvingTunnelFeatureConfig record class.
      Parameters:
      state - the value for the state record component
      radius - the value for the radius record component
      minCurvature - the value for the minCurvature record component
      maxCurvature - the value for the maxCurvature record component
      replaceableBlocks - the value for the replaceableBlocks 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.
    • state

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

      public int radius()
      Returns the value of the radius record component.
      Returns:
      the value of the radius record component
    • minCurvature

      public double minCurvature()
      Returns the value of the minCurvature record component.
      Returns:
      the value of the minCurvature record component
    • maxCurvature

      public double maxCurvature()
      Returns the value of the maxCurvature record component.
      Returns:
      the value of the maxCurvature record component
    • replaceableBlocks

      public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> replaceableBlocks()
      Returns the value of the replaceableBlocks record component.
      Returns:
      the value of the replaceableBlocks record component