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 structure, ChunkPos chunkPos, int references, PiecesContainer pieceContainer) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancreateTag(StructurePieceSerializationContext context, ChunkPos chunkPos) protected intintbooleanisValid()static StructureStartloadStaticStart(StructurePieceSerializationContext context, CompoundTag tag, long seed) voidplaceInChunk(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos)
-
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 structure, ChunkPos chunkPos, int references, PiecesContainer pieceContainer)
-
-
Method Details
-
loadStaticStart
@Nullable public static StructureStart loadStaticStart(StructurePieceSerializationContext context, CompoundTag tag, long seed) -
getBoundingBox
-
placeInChunk
public void placeInChunk(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos) -
createTag
-
isValid
public boolean isValid() -
getChunkPos
-
canBeReferenced
public boolean canBeReferenced() -
addReference
public void addReference() -
getReferences
public int getReferences() -
getMaxReferences
protected int getMaxReferences() -
getStructure
-
getPieces
-