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 useHeightMapAndNotCircular, 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 placeChance, float innerChance, float innerPercent, float startFadePercent, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> innerReplaceable, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> outerReplaceable, 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 useHeightMapAndNotCircular, 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 placeChance, float innerChance, float innerPercent, float startFadePercent, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> innerReplaceable, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> outerReplaceable, 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.
    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 innerReplaceable 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 outerReplaceable record component.
    net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
    Returns the value of the outerState record component.
    float
    Returns the value of the placeChance record component.
    net.minecraft.util.valueproviders.IntProvider
    Returns the value of the radius record component.
    float
    Returns the value of the startFadePercent record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the useHeightMapAndNotCircular 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 useHeightMapAndNotCircular, 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 placeChance, float innerChance, float innerPercent, float startFadePercent, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> innerReplaceable, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> outerReplaceable, net.minecraft.world.level.levelgen.Heightmap.Types heightmap)
      Creates an instance of a FadingDiskFeatureConfig record class.
      Parameters:
      useHeightMapAndNotCircular - the value for the useHeightMapAndNotCircular 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
      placeChance - the value for the placeChance record component
      innerChance - the value for the innerChance record component
      innerPercent - the value for the innerPercent record component
      startFadePercent - the value for the startFadePercent record component
      innerReplaceable - the value for the innerReplaceable record component
      outerReplaceable - the value for the outerReplaceable 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.
    • useHeightMapAndNotCircular

      public boolean useHeightMapAndNotCircular()
      Returns the value of the useHeightMapAndNotCircular record component.
      Returns:
      the value of the useHeightMapAndNotCircular 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
    • placeChance

      public float placeChance()
      Returns the value of the placeChance record component.
      Returns:
      the value of the placeChance 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
    • startFadePercent

      public float startFadePercent()
      Returns the value of the startFadePercent record component.
      Returns:
      the value of the startFadePercent record component
    • innerReplaceable

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

      public net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> outerReplaceable()
      Returns the value of the outerReplaceable record component.
      Returns:
      the value of the outerReplaceable 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