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
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 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 aColumnWithDiskFeatureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.valueproviders.IntProviderReturns the value of theadditionalHeightrecord 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.IntProviderradius()Returns the value of theradiusrecord component.net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> Returns the value of thereplaceableBlocksrecord component.net.minecraft.world.level.block.state.BlockStatestate()Returns the value of thestaterecord 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 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 aColumnWithDiskFeatureConfigrecord class.- Parameters:
state- the value for thestaterecord componentradius- the value for theradiusrecord componentheight- the value for theheightrecord componentadditionalHeight- the value for theadditionalHeightrecord componentreplaceableBlocks- the value for thereplaceableBlocksrecord 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). -
state
public net.minecraft.world.level.block.state.BlockState state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord 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
-
additionalHeight
public net.minecraft.util.valueproviders.IntProvider additionalHeight()Returns the value of theadditionalHeightrecord component.- Returns:
- the value of the
additionalHeightrecord component
-
replaceableBlocks
public net.minecraft.core.HolderSet<net.minecraft.world.level.block.Block> replaceableBlocks()Returns the value of thereplaceableBlocksrecord component.- Returns:
- the value of the
replaceableBlocksrecord 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
-