Class StructureStart
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructureStart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BoundingBoxprivate final ChunkPosstatic final StructureStartstatic final Stringprivate static final org.slf4j.Loggerprivate final PiecesContainerprivate intprivate final Structure -
Constructor Summary
ConstructorsConstructorDescriptionStructureStart(Structure pStructure, ChunkPos pChunkPos, int pReferences, PiecesContainer pPieceContainer) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancreateTag(StructurePieceSerializationContext pContext, ChunkPos pChunkPos) protected intintbooleanisValid()static StructureStartloadStaticStart(StructurePieceSerializationContext pContext, CompoundTag pTag, long pSeed) voidplaceInChunk(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
-