Record Class PathSwapUnderWaterFeatureConfig

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

public record PathSwapUnderWaterFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider underWaterState, int radius, int noise, double noiseScale, double minThreshold, double maxThreshold, boolean useY, boolean scaleY, boolean is3D, boolean onlyPlaceWhenExposed, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceableBlocks, float placement_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<PathSwapUnderWaterFeatureConfig>
     

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

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathSwapUnderWaterFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider underWaterState, int radius, int noise, double noiseScale, double minThreshold, double maxThreshold, boolean useY, boolean scaleY, boolean is3D, boolean onlyPlaceWhenExposed, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceableBlocks, float placement_chance)
    Creates an instance of a PathSwapUnderWaterFeatureConfig 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.
    boolean
    Returns the value of the is3D record component.
    double
    Returns the value of the maxThreshold record component.
    double
    Returns the value of the minThreshold record component.
    int
    Returns the value of the noise record component.
    double
    Returns the value of the noiseScale record component.
    boolean
    Returns the value of the onlyPlaceWhenExposed record component.
    float
    Returns the value of the placement_chance 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 replaceableBlocks record component.
    boolean
    Returns the value of the scaleY 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.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the underWaterState record component.
    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

  • Constructor Details

    • PathSwapUnderWaterFeatureConfig

      public PathSwapUnderWaterFeatureConfig(net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider state, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider underWaterState, int radius, int noise, double noiseScale, double minThreshold, double maxThreshold, boolean useY, boolean scaleY, boolean is3D, boolean onlyPlaceWhenExposed, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceableBlocks, float placement_chance)
      Creates an instance of a PathSwapUnderWaterFeatureConfig record class.
      Parameters:
      state - the value for the state record component
      underWaterState - the value for the underWaterState record component
      radius - the value for the radius record component
      noise - the value for the noise record component
      noiseScale - the value for the noiseScale record component
      minThreshold - the value for the minThreshold record component
      maxThreshold - the value for the maxThreshold record component
      useY - the value for the useY record component
      scaleY - the value for the scaleY record component
      is3D - the value for the is3D record component
      onlyPlaceWhenExposed - the value for the onlyPlaceWhenExposed record component
      replaceableBlocks - the value for the replaceableBlocks record component
      placement_chance - the value for the placement_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.
    • 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
    • underWaterState

      public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider underWaterState()
      Returns the value of the underWaterState record component.
      Returns:
      the value of the underWaterState 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
    • noiseScale

      public double noiseScale()
      Returns the value of the noiseScale record component.
      Returns:
      the value of the noiseScale record component
    • minThreshold

      public double minThreshold()
      Returns the value of the minThreshold record component.
      Returns:
      the value of the minThreshold record component
    • maxThreshold

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

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

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

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

      public boolean onlyPlaceWhenExposed()
      Returns the value of the onlyPlaceWhenExposed record component.
      Returns:
      the value of the onlyPlaceWhenExposed record component
    • replaceableBlocks

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

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