Record Class FadingDiskFeatureConfig

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

public record FadingDiskFeatureConfig(boolean useHeightmapInsteadOfCircularPlacement, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider innerState, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider outerState, net.minecraft.util.valueproviders.IntProvider radius, float placementChance, float innerChance, float innerPercent, float fadeStartDistancePercent, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> innerReplaceableBlocks, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> outerReplaceableBlocks, net.minecraft.world.level.levelgen.Heightmap.Types heightmap) 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<FadingDiskFeatureConfig>
     

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

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    FadingDiskFeatureConfig(boolean useHeightmapInsteadOfCircularPlacement, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider innerState, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider outerState, net.minecraft.util.valueproviders.IntProvider radius, float placementChance, float innerChance, float innerPercent, float fadeStartDistancePercent, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> innerReplaceableBlocks, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> outerReplaceableBlocks, net.minecraft.world.level.levelgen.Heightmap.Types heightmap)
    Creates an instance of a FadingDiskFeatureConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the fadeStartDistancePercent record component.
    final int
    Returns a hash code value for this object.
    net.minecraft.world.level.levelgen.Heightmap.Types
    Returns the value of the heightmap record component.
    float
    Returns the value of the innerChance record component.
    float
    Returns the value of the innerPercent record component.
    net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>
    Returns the value of the innerReplaceableBlocks record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the innerState record component.
    net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>
    Returns the value of the outerReplaceableBlocks record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the outerState record component.
    float
    Returns the value of the placementChance record component.
    net.minecraft.util.valueproviders.IntProvider
    Returns the value of the radius record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the useHeightmapInsteadOfCircularPlacement 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

    • FadingDiskFeatureConfig

      public FadingDiskFeatureConfig(boolean useHeightmapInsteadOfCircularPlacement, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider innerState, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider outerState, net.minecraft.util.valueproviders.IntProvider radius, float placementChance, float innerChance, float innerPercent, float fadeStartDistancePercent, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> innerReplaceableBlocks, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> outerReplaceableBlocks, net.minecraft.world.level.levelgen.Heightmap.Types heightmap)
      Creates an instance of a FadingDiskFeatureConfig record class.
      Parameters:
      useHeightmapInsteadOfCircularPlacement - the value for the useHeightmapInsteadOfCircularPlacement record component
      innerState - the value for the innerState record component
      outerState - the value for the outerState record component
      radius - the value for the radius record component
      placementChance - the value for the placementChance record component
      innerChance - the value for the innerChance record component
      innerPercent - the value for the innerPercent record component
      fadeStartDistancePercent - the value for the fadeStartDistancePercent record component
      innerReplaceableBlocks - the value for the innerReplaceableBlocks record component
      outerReplaceableBlocks - the value for the outerReplaceableBlocks record component
      heightmap - the value for the heightmap 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.
    • useHeightmapInsteadOfCircularPlacement

      public boolean useHeightmapInsteadOfCircularPlacement()
      Returns the value of the useHeightmapInsteadOfCircularPlacement record component.
      Returns:
      the value of the useHeightmapInsteadOfCircularPlacement record component
    • innerState

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

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

      public net.minecraft.util.valueproviders.IntProvider radius()
      Returns the value of the radius record component.
      Returns:
      the value of the radius record component
    • placementChance

      public float placementChance()
      Returns the value of the placementChance record component.
      Returns:
      the value of the placementChance record component
    • innerChance

      public float innerChance()
      Returns the value of the innerChance record component.
      Returns:
      the value of the innerChance record component
    • innerPercent

      public float innerPercent()
      Returns the value of the innerPercent record component.
      Returns:
      the value of the innerPercent record component
    • fadeStartDistancePercent

      public float fadeStartDistancePercent()
      Returns the value of the fadeStartDistancePercent record component.
      Returns:
      the value of the fadeStartDistancePercent record component
    • innerReplaceableBlocks

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

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

      public net.minecraft.world.level.levelgen.Heightmap.Types heightmap()
      Returns the value of the heightmap record component.
      Returns:
      the value of the heightmap record component