Class StructureStart
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructureStart
-
Field Summary
Modifier and TypeFieldDescriptionprivate BoundingBox
private final ChunkPos
static final StructureStart
static final String
private static final org.slf4j.Logger
private final PiecesContainer
private int
private final Structure
-
Constructor Summary
ConstructorDescriptionStructureStart
(Structure p_226846_, ChunkPos p_226847_, int p_226848_, PiecesContainer p_226849_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
createTag
(StructurePieceSerializationContext p_192661_, ChunkPos p_192662_) protected int
int
boolean
isValid()
static StructureStart
loadStaticStart
(StructurePieceSerializationContext p_226858_, CompoundTag p_226859_, long p_226860_) void
placeInChunk
(WorldGenLevel p_226851_, StructureManager p_226852_, ChunkGenerator p_226853_, RandomSource p_226854_, BoundingBox p_226855_, ChunkPos p_226856_)
-
Field Details
-
INVALID_START_ID
- See Also:
-
INVALID_START
-
LOGGER
private static final org.slf4j.Logger LOGGER -
structure
-
pieceContainer
-
chunkPos
-
references
private int references -
cachedBoundingBox
-
-
Constructor Details
-
StructureStart
public StructureStart(Structure p_226846_, ChunkPos p_226847_, int p_226848_, PiecesContainer p_226849_)
-
-
Method Details
-
loadStaticStart
@Nullable public static StructureStart loadStaticStart(StructurePieceSerializationContext p_226858_, CompoundTag p_226859_, long p_226860_) -
getBoundingBox
-
placeInChunk
public void placeInChunk(WorldGenLevel p_226851_, StructureManager p_226852_, ChunkGenerator p_226853_, RandomSource p_226854_, BoundingBox p_226855_, ChunkPos p_226856_) -
createTag
-
isValid
public boolean isValid() -
getChunkPos
-
canBeReferenced
public boolean canBeReferenced() -
addReference
public void addReference() -
getReferences
public int getReferences() -
getMaxReferences
protected int getMaxReferences() -
getStructure
-
getPieces
-