Class IcebergFeature

All Implemented Interfaces:
IForgeRegistryEntry<Feature<?>>

public class IcebergFeature extends Feature<BlockStateConfiguration>
  • Constructor Details

  • Method Details

    • place

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

      private void generateCutOut(Random p_66100_, LevelAccessor p_66101_, int p_66102_, int p_66103_, BlockPos p_66104_, boolean p_66105_, int p_66106_, double p_66107_, int p_66108_)
    • carve

      private void carve(int p_66036_, int p_66037_, BlockPos p_66038_, LevelAccessor p_66039_, boolean p_66040_, double p_66041_, BlockPos p_66042_, int p_66043_, int p_66044_)
    • removeFloatingSnowLayer

      private void removeFloatingSnowLayer(LevelAccessor p_66049_, BlockPos p_66050_)
    • generateIcebergBlock

      private void generateIcebergBlock(LevelAccessor p_66059_, Random p_66060_, BlockPos p_66061_, int p_66062_, int p_66063_, int p_66064_, int p_66065_, int p_66066_, int p_66067_, boolean p_66068_, int p_66069_, double p_66070_, boolean p_66071_, BlockState p_66072_)
    • setIcebergBlock

      private void setIcebergBlock(BlockPos p_66086_, LevelAccessor p_66087_, Random p_66088_, int p_66089_, int p_66090_, boolean p_66091_, boolean p_66092_, BlockState p_66093_)
    • getEllipseC

      private int getEllipseC(int p_66019_, int p_66020_, int p_66021_)
    • signedDistanceCircle

      private double signedDistanceCircle(int p_66030_, int p_66031_, BlockPos p_66032_, int p_66033_, Random p_66034_)
    • signedDistanceEllipse

      private double signedDistanceEllipse(int p_66023_, int p_66024_, BlockPos p_66025_, int p_66026_, int p_66027_, double p_66028_)
    • heightDependentRadiusRound

      private int heightDependentRadiusRound(Random p_66095_, int p_66096_, int p_66097_, int p_66098_)
    • heightDependentRadiusEllipse

      private int heightDependentRadiusEllipse(int p_66110_, int p_66111_, int p_66112_)
    • heightDependentRadiusSteep

      private int heightDependentRadiusSteep(Random p_66114_, int p_66115_, int p_66116_, int p_66117_)
    • isIcebergState

      private static boolean isIcebergState(BlockState p_159886_)
    • belowIsAir

      private boolean belowIsAir(BlockGetter p_66046_, BlockPos p_66047_)
    • smooth

      private void smooth(LevelAccessor p_66052_, BlockPos p_66053_, int p_66054_, int p_66055_, boolean p_66056_, int p_66057_)