public abstract class AbstractChunkGenerator<C extends IChunkGenSettings> extends java.lang.Object implements IChunkGenerator<C>
Modifier and Type | Field and Description |
---|---|
protected BiomeProvider |
biomeProvider |
protected long |
seed |
protected java.util.Map<Structure<? extends IFeatureConfig>,it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.longs.LongSet>> |
structureReferenceCache |
protected java.util.Map<Structure<? extends IFeatureConfig>,it.unimi.dsi.fastutil.longs.Long2ObjectMap<StructureStart>> |
structureStartCache |
protected IWorld |
world |
Constructor and Description |
---|
AbstractChunkGenerator(IWorld worldIn,
BiomeProvider biomeProviderIn) |
Modifier and Type | Method and Description |
---|---|
void |
buildSurface(IChunk chunkIn,
Biome[] biomesIn,
SharedSeedRandom random,
int seaLevel) |
void |
carve(WorldGenRegion region,
GenerationStage.Carving carvingStage) |
void |
decorate(WorldGenRegion region) |
BlockPos |
findNearestStructure(World worldIn,
java.lang.String name,
BlockPos pos,
int radius,
boolean p_211403_5_) |
abstract double[] |
generateNoiseRegion(int x,
int z) |
BiomeProvider |
getBiomeProvider() |
int |
getMaxHeight() |
long |
getSeed() |
abstract C |
getSettings() |
IFeatureConfig |
getStructureConfig(Biome biomeIn,
Structure<? extends IFeatureConfig> structureIn) |
it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.longs.LongSet> |
getStructurePositionToReferenceMap(Structure<? extends IFeatureConfig> structureIn) |
it.unimi.dsi.fastutil.longs.Long2ObjectMap<StructureStart> |
getStructureReferenceToStartMap(Structure<? extends IFeatureConfig> structureIn) |
boolean |
hasStructure(Biome biomeIn,
Structure<? extends IFeatureConfig> structureIn) |
protected void |
makeBedrock(IChunk chunkIn,
java.util.Random random) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGroundHeight, getPossibleCreatures, makeBase, spawnMobs, spawnMobs
protected final IWorld world
protected final long seed
protected final BiomeProvider biomeProvider
protected final java.util.Map<Structure<? extends IFeatureConfig>,it.unimi.dsi.fastutil.longs.Long2ObjectMap<StructureStart>> structureStartCache
protected final java.util.Map<Structure<? extends IFeatureConfig>,it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.longs.LongSet>> structureReferenceCache
public AbstractChunkGenerator(IWorld worldIn, BiomeProvider biomeProviderIn)
public void carve(WorldGenRegion region, GenerationStage.Carving carvingStage)
carve
in interface IChunkGenerator<C extends IChunkGenSettings>
@Nullable public BlockPos findNearestStructure(World worldIn, java.lang.String name, BlockPos pos, int radius, boolean p_211403_5_)
findNearestStructure
in interface IChunkGenerator<C extends IChunkGenSettings>
protected void makeBedrock(IChunk chunkIn, java.util.Random random)
public void decorate(WorldGenRegion region)
decorate
in interface IChunkGenerator<C extends IChunkGenSettings>
public void buildSurface(IChunk chunkIn, Biome[] biomesIn, SharedSeedRandom random, int seaLevel)
public abstract C getSettings()
getSettings
in interface IChunkGenerator<C extends IChunkGenSettings>
public abstract double[] generateNoiseRegion(int x, int z)
public boolean hasStructure(Biome biomeIn, Structure<? extends IFeatureConfig> structureIn)
hasStructure
in interface IChunkGenerator<C extends IChunkGenSettings>
@Nullable public IFeatureConfig getStructureConfig(Biome biomeIn, Structure<? extends IFeatureConfig> structureIn)
getStructureConfig
in interface IChunkGenerator<C extends IChunkGenSettings>
public BiomeProvider getBiomeProvider()
getBiomeProvider
in interface IChunkGenerator<C extends IChunkGenSettings>
public long getSeed()
getSeed
in interface IChunkGenerator<C extends IChunkGenSettings>
public it.unimi.dsi.fastutil.longs.Long2ObjectMap<StructureStart> getStructureReferenceToStartMap(Structure<? extends IFeatureConfig> structureIn)
getStructureReferenceToStartMap
in interface IChunkGenerator<C extends IChunkGenSettings>
public it.unimi.dsi.fastutil.longs.Long2ObjectMap<it.unimi.dsi.fastutil.longs.LongSet> getStructurePositionToReferenceMap(Structure<? extends IFeatureConfig> structureIn)
getStructurePositionToReferenceMap
in interface IChunkGenerator<C extends IChunkGenSettings>
public int getMaxHeight()
getMaxHeight
in interface IChunkGenerator<C extends IChunkGenSettings>