From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/StructureStart.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Minecraft.World/StructureStart.h (limited to 'Minecraft.World/StructureStart.h') diff --git a/Minecraft.World/StructureStart.h b/Minecraft.World/StructureStart.h new file mode 100644 index 00000000..e035f564 --- /dev/null +++ b/Minecraft.World/StructureStart.h @@ -0,0 +1,25 @@ +#pragma once +class StructurePiece; +class BoundingBox; + +class StructureStart +{ + +protected: + list pieces; + BoundingBox *boundingBox; + + StructureStart(); +public: + ~StructureStart(); + BoundingBox *getBoundingBox(); + list *getPieces(); + void postProcess(Level *level, Random *random, BoundingBox *chunkBB); +protected: + void calculateBoundingBox(); + void moveBelowSeaLevel(Level *level, Random *random, int offset); + void moveInsideHeights(Level *level, Random *random, int lowestAllowed, int highestAllowed); +public: + bool isValid(); + +}; -- cgit v1.2.3