Record Class ColumnWithDiskFeatureConfig

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

public record ColumnWithDiskFeatureConfig(net.minecraft.world.level.block.state.BlockState state, net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider additionalHeight, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceableBlocks, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> diskBlocks) 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<ColumnWithDiskFeatureConfig>
     

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

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColumnWithDiskFeatureConfig(net.minecraft.world.level.block.state.BlockState state, net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider additionalHeight, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceableBlocks, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> diskBlocks)
    Creates an instance of a ColumnWithDiskFeatureConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.util.valueproviders.IntProvider
    Returns the value of the additionalHeight record component.
    net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>
    Returns the value of the diskBlocks record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.util.valueproviders.IntProvider
    Returns the value of the height record component.
    net.minecraft.util.valueproviders.IntProvider
    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.
    net.minecraft.world.level.block.state.BlockState
    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

    • ColumnWithDiskFeatureConfig

      public ColumnWithDiskFeatureConfig(net.minecraft.world.level.block.state.BlockState state, net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider additionalHeight, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceableBlocks, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> diskBlocks)
      Creates an instance of a ColumnWithDiskFeatureConfig record class.
      Parameters:
      state - the value for the state record component
      radius - the value for the radius record component
      height - the value for the height record component
      additionalHeight - the value for the additionalHeight record component
      replaceableBlocks - the value for the replaceableBlocks record component
      diskBlocks - the value for the diskBlocks 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.block.state.BlockState state()
      Returns the value of the state record component.
      Returns:
      the value of the state 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
    • height

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

      public net.minecraft.util.valueproviders.IntProvider additionalHeight()
      Returns the value of the additionalHeight record component.
      Returns:
      the value of the additionalHeight 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
    • diskBlocks

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