Record Class PathFeatureConfig

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

public record PathFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider pathBlock, int radius, int noise, double multiplier, double minThresh, double maxThresh, boolean useY, boolean multiplyY, boolean is3D, boolean onlyExposed, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable, float chance) 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<PathFeatureConfig>
     

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

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider pathBlock, int radius, int noise, double multiplier, double minThresh, double maxThresh, boolean useY, boolean multiplyY, boolean is3D, boolean onlyExposed, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable, float chance)
    Creates an instance of a PathFeatureConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the chance record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the is3D record component.
    double
    Returns the value of the maxThresh record component.
    double
    Returns the value of the minThresh record component.
    double
    Returns the value of the multiplier record component.
    boolean
    Returns the value of the multiplyY record component.
    int
    Returns the value of the noise record component.
    boolean
    Returns the value of the onlyExposed record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the pathBlock record component.
    int
    Returns the value of the radius record component.
    net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>
    Returns the value of the replaceable record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the useY 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

    • CODEC

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

    • PathFeatureConfig

      public PathFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider pathBlock, int radius, int noise, double multiplier, double minThresh, double maxThresh, boolean useY, boolean multiplyY, boolean is3D, boolean onlyExposed, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable, float chance)
      Creates an instance of a PathFeatureConfig record class.
      Parameters:
      pathBlock - the value for the pathBlock record component
      radius - the value for the radius record component
      noise - the value for the noise record component
      multiplier - the value for the multiplier record component
      minThresh - the value for the minThresh record component
      maxThresh - the value for the maxThresh record component
      useY - the value for the useY record component
      multiplyY - the value for the multiplyY record component
      is3D - the value for the is3D record component
      onlyExposed - the value for the onlyExposed record component
      replaceable - the value for the replaceable record component
      chance - the value for the chance 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.
    • pathBlock

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

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

      public int noise()
      Returns the value of the noise record component.
      Returns:
      the value of the noise record component
    • multiplier

      public double multiplier()
      Returns the value of the multiplier record component.
      Returns:
      the value of the multiplier record component
    • minThresh

      public double minThresh()
      Returns the value of the minThresh record component.
      Returns:
      the value of the minThresh record component
    • maxThresh

      public double maxThresh()
      Returns the value of the maxThresh record component.
      Returns:
      the value of the maxThresh record component
    • useY

      public boolean useY()
      Returns the value of the useY record component.
      Returns:
      the value of the useY record component
    • multiplyY

      public boolean multiplyY()
      Returns the value of the multiplyY record component.
      Returns:
      the value of the multiplyY record component
    • is3D

      public boolean is3D()
      Returns the value of the is3D record component.
      Returns:
      the value of the is3D record component
    • onlyExposed

      public boolean onlyExposed()
      Returns the value of the onlyExposed record component.
      Returns:
      the value of the onlyExposed record component
    • replaceable

      public net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable()
      Returns the value of the replaceable record component.
      Returns:
      the value of the replaceable record component
    • chance

      public float chance()
      Returns the value of the chance record component.
      Returns:
      the value of the chance record component