public class MapGenEndCity extends MapGenStructure
Modifier and Type | Class and Description |
---|---|
static class |
MapGenEndCity.Start |
Modifier and Type | Field and Description |
---|---|
private int |
citySpacing |
private ChunkGeneratorEnd |
endProvider |
private int |
minCitySeparation |
structureMap
rand, range, world
Constructor and Description |
---|
MapGenEndCity(ChunkGeneratorEnd p_i46665_1_) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canSpawnStructureAtCoords(int chunkX,
int chunkZ) |
BlockPos |
getNearestStructurePos(World worldIn,
BlockPos pos,
boolean findUnexplored) |
java.lang.String |
getStructureName() |
protected StructureStart |
getStructureStart(int chunkX,
int chunkZ) |
private static int |
getYPosForStructure(int p_191070_0_,
int p_191070_1_,
ChunkGeneratorEnd p_191070_2_) |
findNearestStructurePosBySpacing, generateStructure, getStructureAt, initializeStructureData, isInsideStructure, isPositionInStructure, recursiveGenerate
generate, setupChunkSeed
private final int citySpacing
private final int minCitySeparation
private final ChunkGeneratorEnd endProvider
public MapGenEndCity(ChunkGeneratorEnd p_i46665_1_)
public java.lang.String getStructureName()
getStructureName
in class MapGenStructure
protected boolean canSpawnStructureAtCoords(int chunkX, int chunkZ)
canSpawnStructureAtCoords
in class MapGenStructure
protected StructureStart getStructureStart(int chunkX, int chunkZ)
getStructureStart
in class MapGenStructure
public BlockPos getNearestStructurePos(World worldIn, BlockPos pos, boolean findUnexplored)
getNearestStructurePos
in class MapGenStructure
private static int getYPosForStructure(int p_191070_0_, int p_191070_1_, ChunkGeneratorEnd p_191070_2_)