Class AbstractNetherSurfaceBuilder
java.lang.Object
net.minecraft.world.gen.surfacebuilder.SurfaceBuilder<TernarySurfaceConfig>
net.minecraft.world.gen.surfacebuilder.AbstractNetherSurfaceBuilder
- Direct Known Subclasses:
BasaltDeltasSurfaceBuilder
,SoulSandValleySurfaceBuilder
public abstract class AbstractNetherSurfaceBuilder extends SurfaceBuilder<TernarySurfaceConfig>
-
Field Summary
Fields Modifier and Type Field Description private long
seed
private OctavePerlinNoiseSampler
shoreNoise
private ImmutableMap<BlockState,OctavePerlinNoiseSampler>
surfaceNoises
private ImmutableMap<BlockState,OctavePerlinNoiseSampler>
underLavaNoises
Fields inherited from class net.minecraft.world.gen.surfacebuilder.SurfaceBuilder
BADLANDS, BADLANDS_CONFIG, BASALT_DELTA_CONFIG, BASALT_DELTAS, COARSE_DIRT_CONFIG, CRIMSON_NYLIUM_CONFIG, DEFAULT, END_CONFIG, ERODED_BADLANDS, FROZEN_OCEAN, GIANT_TREE_TAIGA, GRASS_CONFIG, GRASS_SAND_UNDERWATER_CONFIG, GRAVEL_CONFIG, GRAVELLY_MOUNTAIN, MOUNTAIN, MYCELIUM_CONFIG, NETHER, NETHER_CONFIG, NETHER_FOREST, NOPE, PODZOL_CONFIG, SAND_CONFIG, SAND_SAND_UNDERWATER_CONFIG, SHATTERED_SAVANNA, SOUL_SAND_CONFIG, SOUL_SAND_VALLEY, STONE_CONFIG, SWAMP, WARPED_NYLIUM_CONFIG, WOODED_BADLANDS
-
Constructor Summary
Constructors Constructor Description AbstractNetherSurfaceBuilder(com.mojang.serialization.Codec<TernarySurfaceConfig> codec)
-
Method Summary
Modifier and Type Method Description private static ImmutableMap<BlockState,OctavePerlinNoiseSampler>
createNoisesForStates(ImmutableList<BlockState> states, long seed)
void
generate(Random random, Chunk chunk, Biome biome, int int2, int int3, int int4, double double2, BlockState blockState, BlockState blockState2, int int5, long long2, TernarySurfaceConfig ternarySurfaceConfig)
protected abstract BlockState
getLavaShoreState()
Returns the state that will make up the boundary between the land and the lava ocean.protected abstract ImmutableList<BlockState>
getSurfaceStates()
protected abstract ImmutableList<BlockState>
getUnderLavaStates()
void
initSeed(long seed)
Methods inherited from class net.minecraft.world.gen.surfacebuilder.SurfaceBuilder
getCodec, withConfig
-
Field Details
-
seed
private long seed -
surfaceNoises
-
underLavaNoises
-
shoreNoise
-
-
Constructor Details
-
AbstractNetherSurfaceBuilder
-
-
Method Details
-
generate
public void generate(Random random, Chunk chunk, Biome biome, int int2, int int3, int int4, double double2, BlockState blockState, BlockState blockState2, int int5, long long2, TernarySurfaceConfig ternarySurfaceConfig)- Specified by:
generate
in classSurfaceBuilder<TernarySurfaceConfig>
-
initSeed
public void initSeed(long seed)- Overrides:
initSeed
in classSurfaceBuilder<TernarySurfaceConfig>
-
createNoisesForStates
private static ImmutableMap<BlockState,OctavePerlinNoiseSampler> createNoisesForStates(ImmutableList<BlockState> states, long seed) -
getSurfaceStates
-
getUnderLavaStates
-
getLavaShoreState
Returns the state that will make up the boundary between the land and the lava ocean.
-