Record Class PointedStoneClusterConfiguration
java.lang.Object
java.lang.Record
com.lightning.northstar.world.gen.feature.configuration.PointedStoneClusterConfiguration
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record PointedStoneClusterConfiguration(float chanceOfTallerDripstone, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
PointedDripstoneConfiguration-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PointedStoneClusterConfiguration> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionPointedStoneClusterConfiguration(float chanceOfTallerDripstone, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock) Creates an instance of aPointedStoneClusterConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thechanceOfDirectionalSpreadrecord component.floatReturns the value of thechanceOfSpreadRadius2record component.floatReturns the value of thechanceOfSpreadRadius3record component.floatReturns the value of thechanceOfTallerDripstonerecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thedripstoneBlockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thestoneProviderrecord 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
-
PointedStoneClusterConfiguration
public PointedStoneClusterConfiguration(float chanceOfTallerDripstone, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock) Creates an instance of aPointedStoneClusterConfigurationrecord class.- Parameters:
chanceOfTallerDripstone- the value for thechanceOfTallerDripstonerecord componentchanceOfDirectionalSpread- the value for thechanceOfDirectionalSpreadrecord componentchanceOfSpreadRadius2- the value for thechanceOfSpreadRadius2record componentchanceOfSpreadRadius3- the value for thechanceOfSpreadRadius3record componentstoneProvider- the value for thestoneProviderrecord componentdripstoneBlock- the value for thedripstoneBlockrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
chanceOfTallerDripstone
public float chanceOfTallerDripstone()Returns the value of thechanceOfTallerDripstonerecord component.- Returns:
- the value of the
chanceOfTallerDripstonerecord component
-
chanceOfDirectionalSpread
public float chanceOfDirectionalSpread()Returns the value of thechanceOfDirectionalSpreadrecord component.- Returns:
- the value of the
chanceOfDirectionalSpreadrecord component
-
chanceOfSpreadRadius2
public float chanceOfSpreadRadius2()Returns the value of thechanceOfSpreadRadius2record component.- Returns:
- the value of the
chanceOfSpreadRadius2record component
-
chanceOfSpreadRadius3
public float chanceOfSpreadRadius3()Returns the value of thechanceOfSpreadRadius3record component.- Returns:
- the value of the
chanceOfSpreadRadius3record component
-
stoneProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stoneProvider()Returns the value of thestoneProviderrecord component.- Returns:
- the value of the
stoneProviderrecord component
-
dripstoneBlock
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider dripstoneBlock()Returns the value of thedripstoneBlockrecord component.- Returns:
- the value of the
dripstoneBlockrecord component
-