public abstract class StructureStart extends Object
Modifier and Type | Field and Description |
---|---|
protected BlockBox |
boundingBox |
protected List<StructurePiece> |
children |
private int |
chunkX |
private int |
chunkZ |
static StructureStart |
DEFAULT |
private StructureFeature<?> |
feature |
protected ChunkRandom |
random |
private int |
references |
Constructor and Description |
---|
StructureStart(StructureFeature<?> feature,
int chunkX,
int chunkZ,
BlockBox box,
int references,
long seed) |
Modifier and Type | Method and Description |
---|---|
void |
generateStructure(IWorld world,
StructureAccessor structureAccessor,
ChunkGenerator<?> chunkGenerator,
Random random,
BlockBox blockBox,
ChunkPos chunkPos) |
BlockBox |
getBoundingBox() |
List<StructurePiece> |
getChildren() |
int |
getChunkX() |
int |
getChunkZ() |
StructureFeature<?> |
getFeature() |
BlockPos |
getPos() |
protected int |
getReferenceCountToBeInExistingChunk() |
int |
getReferences() |
boolean |
hasChildren() |
void |
incrementReferences() |
abstract void |
init(ChunkGenerator<?> chunkGenerator,
StructureManager structureManager,
int x,
int z,
Biome biome) |
boolean |
isInExistingChunk() |
protected void |
method_14976(Random random,
int int2,
int int3) |
protected void |
method_14978(int int2,
Random random,
int int3) |
protected void |
setBoundingBoxFromChildren() |
CompoundTag |
toTag(int chunkX,
int chunkZ) |
public static final StructureStart DEFAULT
private final StructureFeature<?> feature
protected final List<StructurePiece> children
protected BlockBox boundingBox
private final int chunkX
private final int chunkZ
private int references
protected final ChunkRandom random
public StructureStart(StructureFeature<?> feature, int chunkX, int chunkZ, BlockBox box, int references, long seed)
public abstract void init(ChunkGenerator<?> chunkGenerator, StructureManager structureManager, int x, int z, Biome biome)
public BlockBox getBoundingBox()
public List<StructurePiece> getChildren()
public void generateStructure(IWorld world, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, Random random, BlockBox blockBox, ChunkPos chunkPos)
protected void setBoundingBoxFromChildren()
public CompoundTag toTag(int chunkX, int chunkZ)
protected void method_14978(int int2, Random random, int int3)
protected void method_14976(Random random, int int2, int int3)
public boolean hasChildren()
public int getChunkX()
public int getChunkZ()
public BlockPos getPos()
public boolean isInExistingChunk()
public void incrementReferences()
public int getReferences()
protected int getReferenceCountToBeInExistingChunk()
public StructureFeature<?> getFeature()