Class DefaultSurfaceBuilder

java.lang.Object
net.minecraft.world.gen.surfacebuilder.SurfaceBuilder<TernarySurfaceConfig>
net.minecraft.world.gen.surfacebuilder.DefaultSurfaceBuilder
Direct Known Subclasses:
AbstractMountainSurfaceBuilder

public class DefaultSurfaceBuilder extends SurfaceBuilder<TernarySurfaceConfig>
Mappings:
Namespace Name
official dfm
intermediary net/minecraft/class_3510
named net/minecraft/world/gen/surfacebuilder/DefaultSurfaceBuilder
  • Constructor Details

    • DefaultSurfaceBuilder

      public DefaultSurfaceBuilder(com.mojang.serialization.Codec<TernarySurfaceConfig> codec)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgf;<init>(Lcom/mojang/serialization/Codec;)V
      intermediary <init> Lnet/minecraft/class_3523;<init>(Lcom/mojang/serialization/Codec;)V
      named <init> Lnet/minecraft/world/gen/surfacebuilder/SurfaceBuilder;<init>(Lcom/mojang/serialization/Codec;)V
  • Method Details

    • generate

      public void generate(Random random, class_6557 class_6557, Biome biome, int int2, int int3, int int4, double double2, BlockState blockState, BlockState blockState2, int int5, int int6, long long2, TernarySurfaceConfig ternarySurfaceConfig)
      Description copied from class: SurfaceBuilder
      Places the surface blocks for the given column.
      Specified by:
      generate in class SurfaceBuilder<TernarySurfaceConfig>
      Parameters:
      random - the Random instance, seeded with a hash of the x and z coordinates
      class_6557 - the current chunk being surface built
      biome - the biome in the column that is being surface built
      int2 - X coordinate of the column
      int3 - Z coordinate of the column
      int4 - height of the column retrieved using Heightmap.Type.WORLD_SURFACE_WG, and will never be lower than the sea level
      double2 - noise value at this column. Has a range of (-8, 8) but follows a normal distribution so most values will be around (-2, 2)
      blockState - default block of the chunk generator, used to know which block to replace with the surface blocks
      blockState2 - default fluid of the chunk generator
      int5 - the sea level of the chunk generator
      Mappings:
      Namespace Name Mixin selector
      official a Ldfm;a(Ljava/util/Random;Lcog;Lbzm;IIIDLcmo;Lcmo;IIJLdgg;)V
      intermediary method_15219 Lnet/minecraft/class_3510;method_15219(Ljava/util/Random;Lnet/minecraft/class_6557;Lnet/minecraft/class_1959;IIIDLnet/minecraft/class_2680;Lnet/minecraft/class_2680;IIJLnet/minecraft/class_3527;)V
      named generate Lnet/minecraft/world/gen/surfacebuilder/DefaultSurfaceBuilder;generate(Ljava/util/Random;Lnet/minecraft/class_6557;Lnet/minecraft/world/biome/Biome;IIIDLnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;IIJLnet/minecraft/world/gen/surfacebuilder/TernarySurfaceConfig;)V
    • generate

      protected void generate(Random random, class_6557 class_6557, Biome biome, int z, int int2, int height, double noise, BlockState defaultFluid, BlockState fluidBlock, BlockState topBlock, BlockState underBlock, BlockState underwaterBlock, int seaLevel, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfm;a(Ljava/util/Random;Lcog;Lbzm;IIIDLcmo;Lcmo;Lcmo;Lcmo;Lcmo;II)V
      intermediary method_15218 Lnet/minecraft/class_3510;method_15218(Ljava/util/Random;Lnet/minecraft/class_6557;Lnet/minecraft/class_1959;IIIDLnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;II)V
      named generate Lnet/minecraft/world/gen/surfacebuilder/DefaultSurfaceBuilder;generate(Ljava/util/Random;Lnet/minecraft/class_6557;Lnet/minecraft/world/biome/Biome;IIIDLnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;II)V
    • method_38463

      private static BlockState method_38463(BlockState state, class_6557 chunk, int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfm;a(Lcmo;Lcog;II)Lcmo;
      intermediary method_38463 Lnet/minecraft/class_3510;method_38463(Lnet/minecraft/class_2680;Lnet/minecraft/class_6557;II)Lnet/minecraft/class_2680;
      named method_38463 Lnet/minecraft/world/gen/surfacebuilder/DefaultSurfaceBuilder;method_38463(Lnet/minecraft/block/BlockState;Lnet/minecraft/class_6557;II)Lnet/minecraft/block/BlockState;
    • isAboveAirOrFluid

      private static boolean isAboveAirOrFluid(class_6557 chunk, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldfm;a(Lcog;I)Z
      intermediary method_38464 Lnet/minecraft/class_3510;method_38464(Lnet/minecraft/class_6557;I)Z
      named isAboveAirOrFluid Lnet/minecraft/world/gen/surfacebuilder/DefaultSurfaceBuilder;isAboveAirOrFluid(Lnet/minecraft/class_6557;I)Z