Class IcebergFeature

java.lang.Object
net.minecraft.world.level.levelgen.feature.Feature<BlockStateConfiguration>
net.minecraft.world.level.levelgen.feature.IcebergFeature

public class IcebergFeature extends Feature<BlockStateConfiguration>
  • Constructor Details

  • Method Details

    • place

      public boolean place(FeaturePlaceContext<BlockStateConfiguration> context)
      Specified by:
      place in class Feature<BlockStateConfiguration>
    • generateCutOut

      private void generateCutOut(RandomSource random, LevelAccessor level, int width, int height, BlockPos globalOrigin, boolean isEllipse, int shapeEllipseA, double shapeAngle, int shapeEllipseC)
    • carve

      private void carve(int radius, int yOff, BlockPos globalOrigin, LevelAccessor level, boolean underWater, double angle, BlockPos localOrigin, int shapeEllipseA, int shapeEllipseC)
    • removeFloatingSnowLayer

      private void removeFloatingSnowLayer(LevelAccessor level, BlockPos pos)
    • generateIcebergBlock

      private void generateIcebergBlock(LevelAccessor level, RandomSource random, BlockPos origin, int height, int xo, int yOff, int zo, int radius, int a, boolean isEllipse, int shapeEllipseC, double shapeAngle, boolean snowOnTop, BlockState mainBlockState)
    • setIcebergBlock

      private void setIcebergBlock(BlockPos pos, LevelAccessor level, RandomSource random, int hDiff, int height, boolean isEllipse, boolean snowOnTop, BlockState mainBlockState)
    • getEllipseC

      private int getEllipseC(int yOff, int height, int shapeEllipseC)
    • signedDistanceCircle

      private double signedDistanceCircle(int xo, int zo, BlockPos origin, int radius, RandomSource random)
    • signedDistanceEllipse

      private double signedDistanceEllipse(int xo, int zo, BlockPos origin, int a, int c, double angle)
    • heightDependentRadiusRound

      private int heightDependentRadiusRound(RandomSource random, int yOff, int height, int width)
    • heightDependentRadiusEllipse

      private int heightDependentRadiusEllipse(int yOff, int height, int width)
    • heightDependentRadiusSteep

      private int heightDependentRadiusSteep(RandomSource random, int yOff, int height, int width)
    • isIcebergState

      private static boolean isIcebergState(BlockState state)
    • belowIsAir

      private boolean belowIsAir(BlockGetter level, BlockPos pos)
    • smooth

      private void smooth(LevelAccessor level, BlockPos origin, int width, int height, boolean isEllipse, int shapeEllipseA)