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 columnBlock, net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider height2, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> diskBlocks)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ColumnWithDiskFeatureConfig>Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionColumnWithDiskFeatureConfig(net.minecraft.world.level.block.state.BlockState columnBlock, net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider height2, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> diskBlocks) Creates an instance of aColumnWithDiskFeatureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStateReturns the value of thecolumnBlockrecord component.net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>Returns the value of thediskBlocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.util.valueproviders.IntProviderheight()Returns the value of theheightrecord component.net.minecraft.util.valueproviders.IntProviderheight2()Returns the value of theheight2record component.net.minecraft.util.valueproviders.IntProviderradius()Returns the value of theradiusrecord component.net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block>Returns the value of thereplaceablerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
Field Details
-
CODEC
-
-
Constructor Details
-
ColumnWithDiskFeatureConfig
public ColumnWithDiskFeatureConfig(net.minecraft.world.level.block.state.BlockState columnBlock, net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider height, net.minecraft.util.valueproviders.IntProvider height2, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable, net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> diskBlocks) Creates an instance of aColumnWithDiskFeatureConfigrecord class.- Parameters:
columnBlock- the value for thecolumnBlockrecord componentradius- the value for theradiusrecord componentheight- the value for theheightrecord componentheight2- the value for theheight2record componentreplaceable- the value for thereplaceablerecord componentdiskBlocks- the value for thediskBlocksrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
columnBlock
public net.minecraft.world.level.block.state.BlockState columnBlock()Returns the value of thecolumnBlockrecord component.- Returns:
- the value of the
columnBlockrecord component
-
radius
public net.minecraft.util.valueproviders.IntProvider radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
height
public net.minecraft.util.valueproviders.IntProvider height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
height2
public net.minecraft.util.valueproviders.IntProvider height2()Returns the value of theheight2record component.- Returns:
- the value of the
height2record component
-
replaceable
public net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceable()Returns the value of thereplaceablerecord component.- Returns:
- the value of the
replaceablerecord component
-
diskBlocks
public net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> diskBlocks()Returns the value of thediskBlocksrecord component.- Returns:
- the value of the
diskBlocksrecord component
-