Class StructureStart
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructureStart
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionStructureStart
(Structure pStructure, ChunkPos pChunkPos, int pReferences, PiecesContainer pPieceContainer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
createTag
(StructurePieceSerializationContext pContext, ChunkPos pChunkPos) protected int
int
boolean
isValid()
static StructureStart
loadStaticStart
(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) void
placeInChunk
(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, ChunkPos pChunkPos)
-
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 pStructure, ChunkPos pChunkPos, int pReferences, PiecesContainer pPieceContainer)
-
-
Method Details
-
loadStaticStart
@Nullable public static StructureStart loadStaticStart(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) -
getBoundingBox
-
placeInChunk
public void placeInChunk(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, ChunkPos pChunkPos) -
createTag
-
isValid
public boolean isValid() -
getChunkPos
-
canBeReferenced
public boolean canBeReferenced() -
addReference
public void addReference() -
getReferences
public int getReferences() -
getMaxReferences
protected int getMaxReferences() -
getStructure
-
getPieces
-