Record Class PointedStoneClusterConfiguration
java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.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 stone_provider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider base_stone_provider)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
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 stone_provider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider base_stone_provider) Creates an instance of aPointedStoneClusterConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of thebase_stone_providerrecord component.floatReturns the value of thechanceOfDirectionalSpreadrecord component.floatReturns the value of thechanceOfSpreadRadius2record component.floatReturns the value of thechanceOfSpreadRadius3record component.floatReturns the value of thechanceOfTallerDripstonerecord 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 thestone_providerrecord 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 stone_provider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider base_stone_provider) 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 componentstone_provider- the value for thestone_providerrecord componentbase_stone_provider- the value for thebase_stone_providerrecord 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
-
stone_provider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider stone_provider()Returns the value of thestone_providerrecord component.- Returns:
- the value of the
stone_providerrecord component
-
base_stone_provider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider base_stone_provider()Returns the value of thebase_stone_providerrecord component.- Returns:
- the value of the
base_stone_providerrecord component
-