public abstract class StructureStart
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MutableBoundingBox |
bounds |
private int |
chunkPosX |
private int |
chunkPosZ |
protected java.util.List<StructurePiece> |
components |
static StructureStart |
DUMMY |
protected SharedSeedRandom |
rand |
private int |
references |
private Structure<?> |
structure |
Constructor and Description |
---|
StructureStart(Structure<?> p_i225876_1_,
int p_i225876_2_,
int p_i225876_3_,
MutableBoundingBox p_i225876_4_,
int p_i225876_5_,
long p_i225876_6_) |
Modifier and Type | Method and Description |
---|---|
protected void |
func_214626_a(java.util.Random p_214626_1_,
int p_214626_2_,
int p_214626_3_) |
protected void |
func_214628_a(int p_214628_1_,
java.util.Random p_214628_2_,
int p_214628_3_) |
void |
generateStructure(IWorld p_225565_1_,
ChunkGenerator<?> p_225565_2_,
java.util.Random p_225565_3_,
MutableBoundingBox p_225565_4_,
ChunkPos p_225565_5_) |
MutableBoundingBox |
getBoundingBox() |
int |
getChunkPosX() |
int |
getChunkPosZ() |
java.util.List<StructurePiece> |
getComponents() |
protected int |
getMaxRefCount() |
BlockPos |
getPos() |
int |
getRefCount() |
Structure<?> |
getStructure() |
void |
incrementRefCount() |
abstract void |
init(ChunkGenerator<?> generator,
TemplateManager templateManagerIn,
int chunkX,
int chunkZ,
Biome biomeIn) |
boolean |
isRefCountBelowMax() |
boolean |
isValid() |
protected void |
recalculateStructureSize() |
CompoundNBT |
write(int chunkX,
int chunkZ) |
public static final StructureStart DUMMY
private final Structure<?> structure
protected final java.util.List<StructurePiece> components
protected MutableBoundingBox bounds
private final int chunkPosX
private final int chunkPosZ
private int references
protected final SharedSeedRandom rand
public StructureStart(Structure<?> p_i225876_1_, int p_i225876_2_, int p_i225876_3_, MutableBoundingBox p_i225876_4_, int p_i225876_5_, long p_i225876_6_)
public abstract void init(ChunkGenerator<?> generator, TemplateManager templateManagerIn, int chunkX, int chunkZ, Biome biomeIn)
public MutableBoundingBox getBoundingBox()
public java.util.List<StructurePiece> getComponents()
public void generateStructure(IWorld p_225565_1_, ChunkGenerator<?> p_225565_2_, java.util.Random p_225565_3_, MutableBoundingBox p_225565_4_, ChunkPos p_225565_5_)
protected void recalculateStructureSize()
public CompoundNBT write(int chunkX, int chunkZ)
protected void func_214628_a(int p_214628_1_, java.util.Random p_214628_2_, int p_214628_3_)
protected void func_214626_a(java.util.Random p_214626_1_, int p_214626_2_, int p_214626_3_)
public boolean isValid()
public int getChunkPosX()
public int getChunkPosZ()
public BlockPos getPos()
public boolean isRefCountBelowMax()
public void incrementRefCount()
public int getRefCount()
protected int getMaxRefCount()
public Structure<?> getStructure()