public abstract class ChunkGenerator<C extends GenerationSettings>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected BiomeProvider |
biomeProvider |
protected long |
seed |
protected C |
settings |
protected IWorld |
world |
Constructor and Description |
---|
ChunkGenerator(IWorld worldIn,
BiomeProvider biomeProviderIn,
C generationSettingsIn) |
Modifier and Type | Method and Description |
---|---|
void |
carve(IChunk chunkIn,
GenerationStage.Carving carvingSettings) |
void |
decorate(WorldGenRegion region) |
BlockPos |
findNearestStructure(World worldIn,
java.lang.String name,
BlockPos pos,
int radius,
boolean p_211403_5_) |
abstract int |
func_222529_a(int p_222529_1_,
int p_222529_2_,
Heightmap.Type p_222529_3_) |
int |
func_222531_c(int p_222531_1_,
int p_222531_2_,
Heightmap.Type p_222531_3_) |
int |
func_222532_b(int p_222532_1_,
int p_222532_2_,
Heightmap.Type p_222532_3_) |
void |
generateBiomes(IChunk chunkIn) |
void |
generateStructureStarts(IWorld worldIn,
IChunk chunkIn) |
abstract void |
generateSurface(IChunk chunkIn) |
protected Biome |
getBiome(IChunk chunkIn) |
protected Biome |
getBiome(WorldGenRegion worldRegionIn,
BlockPos pos) |
BiomeProvider |
getBiomeProvider() |
abstract int |
getGroundHeight() |
int |
getMaxHeight() |
java.util.List<Biome.SpawnListEntry> |
getPossibleCreatures(EntityClassification creatureType,
BlockPos pos) |
int |
getSeaLevel() |
long |
getSeed() |
C |
getSettings() |
<C extends IFeatureConfig> |
getStructureConfig(Biome biomeIn,
Structure<C> structureIn) |
boolean |
hasStructure(Biome biomeIn,
Structure<? extends IFeatureConfig> structureIn) |
void |
initStructureStarts(IChunk chunkIn,
ChunkGenerator<?> generator,
TemplateManager templateManagerIn) |
abstract void |
makeBase(IWorld worldIn,
IChunk chunkIn) |
void |
spawnMobs(ServerWorld worldIn,
boolean spawnHostileMobs,
boolean spawnPeacefulMobs) |
void |
spawnMobs(WorldGenRegion region) |
protected final IWorld world
protected final long seed
protected final BiomeProvider biomeProvider
protected final C extends GenerationSettings settings
public ChunkGenerator(IWorld worldIn, BiomeProvider biomeProviderIn, C generationSettingsIn)
public void generateBiomes(IChunk chunkIn)
protected Biome getBiome(WorldGenRegion worldRegionIn, BlockPos pos)
public void carve(IChunk chunkIn, GenerationStage.Carving carvingSettings)
@Nullable public BlockPos findNearestStructure(World worldIn, java.lang.String name, BlockPos pos, int radius, boolean p_211403_5_)
public void decorate(WorldGenRegion region)
public abstract void generateSurface(IChunk chunkIn)
public void spawnMobs(WorldGenRegion region)
public C getSettings()
public abstract int getGroundHeight()
public void spawnMobs(ServerWorld worldIn, boolean spawnHostileMobs, boolean spawnPeacefulMobs)
public boolean hasStructure(Biome biomeIn, Structure<? extends IFeatureConfig> structureIn)
@Nullable public <C extends IFeatureConfig> C getStructureConfig(Biome biomeIn, Structure<C> structureIn)
public BiomeProvider getBiomeProvider()
public long getSeed()
public int getMaxHeight()
public java.util.List<Biome.SpawnListEntry> getPossibleCreatures(EntityClassification creatureType, BlockPos pos)
public void initStructureStarts(IChunk chunkIn, ChunkGenerator<?> generator, TemplateManager templateManagerIn)
public int getSeaLevel()
public abstract int func_222529_a(int p_222529_1_, int p_222529_2_, Heightmap.Type p_222529_3_)
public int func_222532_b(int p_222532_1_, int p_222532_2_, Heightmap.Type p_222532_3_)
public int func_222531_c(int p_222531_1_, int p_222531_2_, Heightmap.Type p_222531_3_)