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 |
decorate(WorldGenRegion region) |
BlockPos |
findNearestStructure(World worldIn,
java.lang.String name,
BlockPos pos,
int radius,
boolean skipExistingChunks) |
abstract int |
func_222529_a(int p_222529_1_,
int p_222529_2_,
Heightmap.Type heightmapType) |
int |
func_222531_c(int p_222531_1_,
int p_222531_2_,
Heightmap.Type heightmapType) |
int |
func_222532_b(int p_222532_1_,
int p_222532_2_,
Heightmap.Type heightmapType) |
void |
func_225550_a_(BiomeManager p_225550_1_,
IChunk p_225550_2_,
GenerationStage.Carving p_225550_3_) |
void |
generateBiomes(IChunk chunkIn) |
void |
generateStructures(BiomeManager p_227058_1_,
IChunk p_227058_2_,
ChunkGenerator<?> p_227058_3_,
TemplateManager p_227058_4_) |
void |
generateStructureStarts(IWorld worldIn,
IChunk chunkIn) |
abstract void |
generateSurface(WorldGenRegion p_225551_1_,
IChunk p_225551_2_) |
protected Biome |
getBiome(BiomeManager biomeManagerIn,
BlockPos posIn) |
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) |
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(BiomeManager biomeManagerIn, BlockPos posIn)
public void func_225550_a_(BiomeManager p_225550_1_, IChunk p_225550_2_, GenerationStage.Carving p_225550_3_)
@Nullable public BlockPos findNearestStructure(World worldIn, java.lang.String name, BlockPos pos, int radius, boolean skipExistingChunks)
public void decorate(WorldGenRegion region)
public abstract void generateSurface(WorldGenRegion p_225551_1_, IChunk p_225551_2_)
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 generateStructures(BiomeManager p_227058_1_, IChunk p_227058_2_, ChunkGenerator<?> p_227058_3_, TemplateManager p_227058_4_)
public int getSeaLevel()
public abstract int func_222529_a(int p_222529_1_, int p_222529_2_, Heightmap.Type heightmapType)
public int func_222532_b(int p_222532_1_, int p_222532_2_, Heightmap.Type heightmapType)
public int func_222531_c(int p_222531_1_, int p_222531_2_, Heightmap.Type heightmapType)