public abstract class MapGenStructure extends MapGenBase
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.longs.Long2ObjectMap<StructureStart> |
structureMap |
rand, range, world
Constructor and Description |
---|
MapGenStructure() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canSpawnStructureAtCoords(int chunkX,
int chunkZ) |
protected static BlockPos |
findNearestStructurePosBySpacing(World worldIn,
MapGenStructure p_191069_1_,
BlockPos p_191069_2_,
int p_191069_3_,
int p_191069_4_,
int p_191069_5_,
boolean p_191069_6_,
int p_191069_7_,
boolean findUnexplored) |
boolean |
generateStructure(World worldIn,
java.util.Random randomIn,
ChunkPos chunkCoord) |
abstract BlockPos |
getNearestStructurePos(World worldIn,
BlockPos pos,
boolean findUnexplored) |
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 originalX,
int originalZ,
ChunkPrimer chunkPrimerIn) |
generate, setupChunkSeed
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 originalX, int originalZ, ChunkPrimer chunkPrimerIn)
recursiveGenerate
in class MapGenBase
public boolean generateStructure(World worldIn, java.util.Random randomIn, ChunkPos chunkCoord)
public boolean isInsideStructure(BlockPos pos)
@Nullable protected StructureStart getStructureAt(BlockPos pos)
@Nullable public abstract BlockPos getNearestStructurePos(World worldIn, BlockPos pos, boolean findUnexplored)
protected void initializeStructureData(World worldIn)
protected abstract boolean canSpawnStructureAtCoords(int chunkX, int chunkZ)
protected abstract StructureStart getStructureStart(int chunkX, int chunkZ)
protected static BlockPos findNearestStructurePosBySpacing(World worldIn, MapGenStructure p_191069_1_, BlockPos p_191069_2_, int p_191069_3_, int p_191069_4_, int p_191069_5_, boolean p_191069_6_, int p_191069_7_, boolean findUnexplored)