Record Class LargeDripstoneFeature
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.LargeDripstoneFeature
- All Implemented Interfaces:
Feature
public record LargeDripstoneFeature(HolderSet<Block> replaceableBlocks, int floorToCeilingSearchRange, IntProvider columnRadius, FloatProvider heightScale, float maxColumnRadiusToCaveHeightRatio, FloatProvider stalactiteBluntness, FloatProvider stalagmiteBluntness, FloatProvider windSpeed, int minRadiusForWind, float minBluntnessForWind)
extends Record
implements Feature
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<LargeDripstoneFeature> private final IntProviderThe field for thecolumnRadiusrecord component.private final intThe field for thefloorToCeilingSearchRangerecord component.private final FloatProviderThe field for theheightScalerecord component.private final floatThe field for themaxColumnRadiusToCaveHeightRatiorecord component.private final floatThe field for theminBluntnessForWindrecord component.private final intThe field for theminRadiusForWindrecord component.The field for thereplaceableBlocksrecord component.private final FloatProviderThe field for thestalactiteBluntnessrecord component.private final FloatProviderThe field for thestalagmiteBluntnessrecord component.private final FloatProviderThe field for thewindSpeedrecord component.Fields inherited from interface Feature
DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionLargeDripstoneFeature(HolderSet<Block> replaceableBlocks, int floorToCeilingSearchRange, IntProvider columnRadius, FloatProvider heightScale, float maxColumnRadiusToCaveHeightRatio, FloatProvider stalactiteBluntness, FloatProvider stalagmiteBluntness, FloatProvider windSpeed, int minRadiusForWind, float minBluntnessForWind) Creates an instance of aLargeDripstoneFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<LargeDripstoneFeature> codec()Returns the value of thecolumnRadiusrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefloorToCeilingSearchRangerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheightScalerecord component.private static LargeDripstoneFeature.LargeDripstonemakeDripstone(BlockPos root, boolean pointingUp, RandomSource random, int radius, FloatProvider bluntness, FloatProvider heightScale) floatReturns the value of themaxColumnRadiusToCaveHeightRatiorecord component.floatReturns the value of theminBluntnessForWindrecord component.intReturns the value of theminRadiusForWindrecord component.booleanplace(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) private voidplaceDebugMarkers(WorldGenLevel level, BlockPos origin, Column.Range range, LargeDripstoneFeature.WindOffsetter wind) Returns the value of thereplaceableBlocksrecord component.Returns the value of thestalactiteBluntnessrecord component.Returns the value of thestalagmiteBluntnessrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewindSpeedrecord component.Methods inherited from interface Feature
getSubFeatures, markAboveForPostProcessing, safeSetBlock, setBlock
-
Field Details
-
replaceableBlocks
-
floorToCeilingSearchRange
private final int floorToCeilingSearchRangeThe field for thefloorToCeilingSearchRangerecord component. -
columnRadius
The field for thecolumnRadiusrecord component. -
heightScale
The field for theheightScalerecord component. -
maxColumnRadiusToCaveHeightRatio
private final float maxColumnRadiusToCaveHeightRatioThe field for themaxColumnRadiusToCaveHeightRatiorecord component. -
stalactiteBluntness
The field for thestalactiteBluntnessrecord component. -
stalagmiteBluntness
The field for thestalagmiteBluntnessrecord component. -
windSpeed
The field for thewindSpeedrecord component. -
minRadiusForWind
private final int minRadiusForWindThe field for theminRadiusForWindrecord component. -
minBluntnessForWind
private final float minBluntnessForWindThe field for theminBluntnessForWindrecord component. -
CODEC
-
-
Constructor Details
-
LargeDripstoneFeature
public LargeDripstoneFeature(HolderSet<Block> replaceableBlocks, int floorToCeilingSearchRange, IntProvider columnRadius, FloatProvider heightScale, float maxColumnRadiusToCaveHeightRatio, FloatProvider stalactiteBluntness, FloatProvider stalagmiteBluntness, FloatProvider windSpeed, int minRadiusForWind, float minBluntnessForWind) Creates an instance of aLargeDripstoneFeaturerecord class.- Parameters:
replaceableBlocks- the value for thereplaceableBlocksrecord componentfloorToCeilingSearchRange- the value for thefloorToCeilingSearchRangerecord componentcolumnRadius- the value for thecolumnRadiusrecord componentheightScale- the value for theheightScalerecord componentmaxColumnRadiusToCaveHeightRatio- the value for themaxColumnRadiusToCaveHeightRatiorecord componentstalactiteBluntness- the value for thestalactiteBluntnessrecord componentstalagmiteBluntness- the value for thestalagmiteBluntnessrecord componentwindSpeed- the value for thewindSpeedrecord componentminRadiusForWind- the value for theminRadiusForWindrecord componentminBluntnessForWind- the value for theminBluntnessForWindrecord component
-
-
Method Details
-
codec
-
place
public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin) -
makeDripstone
private static LargeDripstoneFeature.LargeDripstone makeDripstone(BlockPos root, boolean pointingUp, RandomSource random, int radius, FloatProvider bluntness, FloatProvider heightScale) -
placeDebugMarkers
private void placeDebugMarkers(WorldGenLevel level, BlockPos origin, Column.Range range, LargeDripstoneFeature.WindOffsetter wind) -
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. -
replaceableBlocks
-
floorToCeilingSearchRange
public int floorToCeilingSearchRange()Returns the value of thefloorToCeilingSearchRangerecord component.- Returns:
- the value of the
floorToCeilingSearchRangerecord component
-
columnRadius
Returns the value of thecolumnRadiusrecord component.- Returns:
- the value of the
columnRadiusrecord component
-
heightScale
Returns the value of theheightScalerecord component.- Returns:
- the value of the
heightScalerecord component
-
maxColumnRadiusToCaveHeightRatio
public float maxColumnRadiusToCaveHeightRatio()Returns the value of themaxColumnRadiusToCaveHeightRatiorecord component.- Returns:
- the value of the
maxColumnRadiusToCaveHeightRatiorecord component
-
stalactiteBluntness
Returns the value of thestalactiteBluntnessrecord component.- Returns:
- the value of the
stalactiteBluntnessrecord component
-
stalagmiteBluntness
Returns the value of thestalagmiteBluntnessrecord component.- Returns:
- the value of the
stalagmiteBluntnessrecord component
-
windSpeed
Returns the value of thewindSpeedrecord component.- Returns:
- the value of the
windSpeedrecord component
-
minRadiusForWind
public int minRadiusForWind()Returns the value of theminRadiusForWindrecord component.- Returns:
- the value of the
minRadiusForWindrecord component
-
minBluntnessForWind
public float minBluntnessForWind()Returns the value of theminBluntnessForWindrecord component.- Returns:
- the value of the
minBluntnessForWindrecord component
-