Class DripstoneClusterFeature

java.lang.Object
net.minecraft.world.level.levelgen.feature.Feature<DripstoneClusterConfiguration>
net.minecraft.world.level.levelgen.feature.DripstoneClusterFeature

public class DripstoneClusterFeature extends Feature<DripstoneClusterConfiguration>
  • Constructor Details

  • Method Details

    • place

      public boolean place(FeaturePlaceContext<DripstoneClusterConfiguration> context)
      Description copied from class: Feature
      Places the given feature at the given location. During world generation, features are provided with a 3x3 region of chunks, centered on the chunk being generated, that they can safely generate into.
      Specified by:
      place in class Feature<DripstoneClusterConfiguration>
      Parameters:
      context - A context object with a reference to the level and the position the feature is being placed at
    • placeColumn

      private void placeColumn(WorldGenLevel level, RandomSource random, BlockPos pos, int dx, int dz, float chanceOfWater, double chanceOfStalagmiteOrStalactite, int clusterHeight, float density, DripstoneClusterConfiguration config)
    • isLava

      private boolean isLava(LevelReader level, BlockPos pos)
    • getDripstoneHeight

      private int getDripstoneHeight(RandomSource random, int dx, int dz, float density, int maxHeight, DripstoneClusterConfiguration config)
    • canPlacePool

      private boolean canPlacePool(WorldGenLevel level, BlockPos pos)
    • canBeAdjacentToWater

      private boolean canBeAdjacentToWater(LevelAccessor level, BlockPos pos)
    • replaceBlocksWithDripstoneBlocks

      private void replaceBlocksWithDripstoneBlocks(WorldGenLevel level, BlockPos firstPos, int maxCount, Direction direction)
    • getChanceOfStalagmiteOrStalactite

      private double getChanceOfStalagmiteOrStalactite(int xRadius, int zRadius, int dx, int dz, DripstoneClusterConfiguration config)
    • randomBetweenBiased

      private static float randomBetweenBiased(RandomSource random, float min, float maxExclusive, float mean, float deviation)