public abstract class MapGenStructure extends MapGenBase
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.longs.Long2ObjectMap<StructureStart> |
structureMap |
rand, range, worldObj
Constructor and Description |
---|
MapGenStructure() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canSpawnStructureAtCoords(int chunkX,
int chunkZ) |
boolean |
generateStructure(World worldIn,
java.util.Random randomIn,
ChunkPos chunkCoord) |
BlockPos |
getClosestStrongholdPos(World worldIn,
BlockPos pos) |
protected java.util.List<BlockPos> |
getCoordList() |
protected StructureStart |
getStructureAt(BlockPos pos) |
abstract java.lang.String |
getStructureName() |
protected abstract StructureStart |
getStructureStart(int chunkX,
int chunkZ) |
protected void |
initializeStructureData(World worldIn) |
boolean |
isInsideStructure(BlockPos pos) |
boolean |
isPositionInStructure(World worldIn,
BlockPos pos) |
protected void |
recursiveGenerate(World worldIn,
int chunkX,
int chunkZ,
int p_180701_4_,
int p_180701_5_,
ChunkPrimer chunkPrimerIn) |
generate
protected it.unimi.dsi.fastutil.longs.Long2ObjectMap<StructureStart> structureMap
public abstract java.lang.String getStructureName()
protected final void recursiveGenerate(World worldIn, int chunkX, int chunkZ, int p_180701_4_, int p_180701_5_, ChunkPrimer chunkPrimerIn)
recursiveGenerate
in class MapGenBase
public boolean generateStructure(World worldIn, java.util.Random randomIn, ChunkPos chunkCoord)
public boolean isInsideStructure(BlockPos pos)
protected StructureStart getStructureAt(BlockPos pos)
protected java.util.List<BlockPos> getCoordList()
protected void initializeStructureData(World worldIn)
protected abstract boolean canSpawnStructureAtCoords(int chunkX, int chunkZ)
protected abstract StructureStart getStructureStart(int chunkX, int chunkZ)