Package net.minecraft.world.gen.feature
Class DripstoneClusterFeature
java.lang.Object
net.minecraft.world.gen.feature.Feature<DripstoneClusterFeatureConfig>
net.minecraft.world.gen.feature.DripstoneClusterFeature
public class DripstoneClusterFeature extends Feature<DripstoneClusterFeatureConfig>
-
Field Summary
Fields inherited from class net.minecraft.world.gen.feature.Feature
BAMBOO, BASALT_COLUMNS, BASALT_PILLAR, BLOCK_PILE, BLUE_ICE, BONUS_CHEST, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DECORATED, DELTA_FEATURE, DESERT_WELL, DISK, DRIPSTONE_CLUSTER, EMERALD_ORE, END_GATEWAY, END_ISLAND, END_SPIKE, FILL_LAYER, FLOWER, FOREST_ROCK, FOSSIL, FREEZE_TOP_LAYER, GEODE, GLOWSTONE_BLOB, HUGE_BROWN_MUSHROOM, HUGE_FUNGUS, HUGE_RED_MUSHROOM, ICE_PATCH, ICE_SPIKE, ICEBERG, KELP, LAKE, LARGE_DRIPSTONE, MONSTER_ROOM, NETHER_FOREST_VEGETATION, NETHERRACK_REPLACE_BLOBS, NO_BONEMEAL_FLOWER, NO_OP, NO_SURFACE_ORE, ORE, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_SELECTOR, SEA_PICKLE, SEAGRASS, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SMALL_DRIPSTONE, SPRING_FEATURE, TREE, TWISTING_VINES, VINES, VOID_START_PLATFORM, WEEPING_VINES
-
Constructor Summary
Constructors Constructor Description DripstoneClusterFeature(com.mojang.serialization.Codec<DripstoneClusterFeatureConfig> configCodec)
-
Method Summary
Modifier and Type Method Description private boolean
canWaterSpawn(StructureWorldAccess world, BlockPos pos)
private static float
clampedGaussian(Random random, float min, float max, float mean, float deviation)
private double
dripstoneChance(int radiusX, int radiusZ, int localX, int localZ, DripstoneClusterFeatureConfig config)
private void
generate(StructureWorldAccess world, Random random, BlockPos pos, int localX, int localZ, float wetness, double dripstoneChance, int height, float density, DripstoneClusterFeatureConfig config)
boolean
generate(StructureWorldAccess structureWorldAccess, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos, DripstoneClusterFeatureConfig dripstoneClusterFeatureConfig)
private int
getHeight(Random random, int localX, int localZ, float density, int height, DripstoneClusterFeatureConfig config)
private boolean
isStoneOrWater(WorldAccess world, BlockPos pos)
private void
placeDripstoneBlocks(StructureWorldAccess world, BlockPos pos, int height, Direction direction)
-
Constructor Details
-
DripstoneClusterFeature
public DripstoneClusterFeature(com.mojang.serialization.Codec<DripstoneClusterFeatureConfig> configCodec)
-
-
Method Details
-
generate
public boolean generate(StructureWorldAccess structureWorldAccess, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos, DripstoneClusterFeatureConfig dripstoneClusterFeatureConfig)- Specified by:
generate
in classFeature<DripstoneClusterFeatureConfig>
-
generate
private void generate(StructureWorldAccess world, Random random, BlockPos pos, int localX, int localZ, float wetness, double dripstoneChance, int height, float density, DripstoneClusterFeatureConfig config) -
getHeight
private int getHeight(Random random, int localX, int localZ, float density, int height, DripstoneClusterFeatureConfig config) -
canWaterSpawn
-
isStoneOrWater
-
placeDripstoneBlocks
private void placeDripstoneBlocks(StructureWorldAccess world, BlockPos pos, int height, Direction direction) -
dripstoneChance
private double dripstoneChance(int radiusX, int radiusZ, int localX, int localZ, DripstoneClusterFeatureConfig config) -
clampedGaussian
private static float clampedGaussian(Random random, float min, float max, float mean, float deviation)
-