Record Class SpeleothemConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.SpeleothemConfiguration
- All Implemented Interfaces:
FeatureConfiguration
public record SpeleothemConfiguration(BlockState baseBlock, BlockState pointedBlock, HolderSet<Block> replaceableBlocks, float chanceOfTallerGeneration, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3)
extends Record
implements FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateThe field for thebaseBlockrecord component.private final floatThe field for thechanceOfDirectionalSpreadrecord component.private final floatThe field for thechanceOfSpreadRadius2record component.private final floatThe field for thechanceOfSpreadRadius3record component.private final floatThe field for thechanceOfTallerGenerationrecord component.static final com.mojang.serialization.Codec<SpeleothemConfiguration> private final BlockStateThe field for thepointedBlockrecord component.The field for thereplaceableBlocksrecord component.Fields inherited from interface FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionSpeleothemConfiguration(BlockState baseBlock, BlockState pointedBlock, HolderSet<Block> replaceableBlocks, float chanceOfTallerGeneration, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3) Creates an instance of aSpeleothemConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseBlockrecord component.floatReturns the value of thechanceOfDirectionalSpreadrecord component.floatReturns the value of thechanceOfSpreadRadius2record component.floatReturns the value of thechanceOfSpreadRadius3record component.floatReturns the value of thechanceOfTallerGenerationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepointedBlockrecord component.Returns the value of thereplaceableBlocksrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface FeatureConfiguration
getSubFeatures
-
Field Details
-
baseBlock
The field for thebaseBlockrecord component. -
pointedBlock
The field for thepointedBlockrecord component. -
replaceableBlocks
-
chanceOfTallerGeneration
private final float chanceOfTallerGenerationThe field for thechanceOfTallerGenerationrecord component. -
chanceOfDirectionalSpread
private final float chanceOfDirectionalSpreadThe field for thechanceOfDirectionalSpreadrecord component. -
chanceOfSpreadRadius2
private final float chanceOfSpreadRadius2The field for thechanceOfSpreadRadius2record component. -
chanceOfSpreadRadius3
private final float chanceOfSpreadRadius3The field for thechanceOfSpreadRadius3record component. -
CODEC
-
-
Constructor Details
-
SpeleothemConfiguration
public SpeleothemConfiguration(BlockState baseBlock, BlockState pointedBlock, HolderSet<Block> replaceableBlocks, float chanceOfTallerGeneration, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3) Creates an instance of aSpeleothemConfigurationrecord class.- Parameters:
baseBlock- the value for thebaseBlockrecord componentpointedBlock- the value for thepointedBlockrecord componentreplaceableBlocks- the value for thereplaceableBlocksrecord componentchanceOfTallerGeneration- the value for thechanceOfTallerGenerationrecord componentchanceOfDirectionalSpread- the value for thechanceOfDirectionalSpreadrecord componentchanceOfSpreadRadius2- the value for thechanceOfSpreadRadius2record componentchanceOfSpreadRadius3- the value for thechanceOfSpreadRadius3record component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
baseBlock
Returns the value of thebaseBlockrecord component.- Returns:
- the value of the
baseBlockrecord component
-
pointedBlock
Returns the value of thepointedBlockrecord component.- Returns:
- the value of the
pointedBlockrecord component
-
replaceableBlocks
-
chanceOfTallerGeneration
public float chanceOfTallerGeneration()Returns the value of thechanceOfTallerGenerationrecord component.- Returns:
- the value of the
chanceOfTallerGenerationrecord 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
-