Class SinglePieceStructure
java.lang.Object
net.minecraft.world.level.levelgen.structure.Structure
net.minecraft.world.level.levelgen.structure.SinglePieceStructure
- Direct Known Subclasses:
DesertPyramidStructure
,JungleTempleStructure
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.Structure
Structure.GenerationContext, Structure.GenerationStub, Structure.StructureSettings
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SinglePieceStructure.PieceConstructor
private final int
private final int
Fields inherited from class net.minecraft.world.level.levelgen.structure.Structure
CODEC, DIRECT_CODEC
-
Constructor Summary
ModifierConstructorDescriptionprotected
SinglePieceStructure
(SinglePieceStructure.PieceConstructor p_226537_, int p_226538_, int p_226539_, Structure.StructureSettings p_226540_) -
Method Summary
Modifier and TypeMethodDescriptionfindGenerationPoint
(Structure.GenerationContext p_226542_) private void
generatePieces
(StructurePiecesBuilder p_226547_, Structure.GenerationContext p_226548_) Methods inherited from class net.minecraft.world.level.levelgen.structure.Structure
adjustBoundingBox, afterPlace, biomes, findValidGenerationPoint, generate, getLowestY, getLowestY, getLowestYIn5by5BoxOffset7Blocks, getMeanFirstOccupiedHeight, getModifiedStructureSettings, modifiableStructureInfo, onTopOfChunkCenter, settingsCodec, simpleCodec, spawnOverrides, step, terrainAdaptation, type
-
Field Details
-
constructor
-
width
private final int width -
depth
private final int depth
-
-
Constructor Details
-
SinglePieceStructure
protected SinglePieceStructure(SinglePieceStructure.PieceConstructor p_226537_, int p_226538_, int p_226539_, Structure.StructureSettings p_226540_)
-
-
Method Details
-
findGenerationPoint
public Optional<Structure.GenerationStub> findGenerationPoint(Structure.GenerationContext p_226542_) - Specified by:
findGenerationPoint
in classStructure
-
generatePieces
private void generatePieces(StructurePiecesBuilder p_226547_, Structure.GenerationContext p_226548_)
-