aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/RandomScatteredLargeFeature.h
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
committerLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
commit42aec6dac53dffa6afe072560a7e1d4986112538 (patch)
tree0836426857391df1b6a83f6368a183f83ec9b104 /Minecraft.World/RandomScatteredLargeFeature.h
parentc9d58eeac7c72f0b3038e084667b4d89a6249fce (diff)
parentef9b6fd500dfabd9463267b0dd9e29577eea8a2b (diff)
Merge branch 'main' into pr/win64-world-saves
# Conflicts: # Minecraft.Client/MinecraftServer.cpp # README.md
Diffstat (limited to 'Minecraft.World/RandomScatteredLargeFeature.h')
-rw-r--r--Minecraft.World/RandomScatteredLargeFeature.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Minecraft.World/RandomScatteredLargeFeature.h b/Minecraft.World/RandomScatteredLargeFeature.h
index b7d9fc06..b5d46ce8 100644
--- a/Minecraft.World/RandomScatteredLargeFeature.h
+++ b/Minecraft.World/RandomScatteredLargeFeature.h
@@ -6,17 +6,41 @@
class RandomScatteredLargeFeature : public StructureFeature
{
public:
+ static const wstring OPTION_SPACING;
+
static void staticCtor();
static vector<Biome *> allowedBiomes;
+
+private:
+ vector<Biome::MobSpawnerData *> swamphutEnemies;
+ int spacing;
+ int minSeparation;
+
+ void _init();
+
+public:
RandomScatteredLargeFeature();
+ RandomScatteredLargeFeature(unordered_map<wstring, wstring> options);
+
+ wstring getFeatureName();
protected:
virtual bool isFeatureChunk(int x, int z, bool bIsSuperflat=false);
StructureStart *createStructureStart(int x, int z);
+public:
class ScatteredFeatureStart : public StructureStart
{
public:
+ static StructureStart *Create() { return new ScatteredFeatureStart(); }
+ virtual EStructureStart GetType() { return eStructureStart_ScatteredFeatureStart; }
+
+ public:
+ ScatteredFeatureStart();
ScatteredFeatureStart(Level *level, Random *random, int chunkX, int chunkZ);
};
+
+public:
+ bool isSwamphut(int cellX, int cellY, int cellZ);
+ vector<Biome::MobSpawnerData *> *getSwamphutEnemies();
}; \ No newline at end of file