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/BonusChestFeature.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Minecraft.World/BonusChestFeature.h (limited to 'Minecraft.World/BonusChestFeature.h') diff --git a/Minecraft.World/BonusChestFeature.h b/Minecraft.World/BonusChestFeature.h new file mode 100644 index 00000000..cd4aca3e --- /dev/null +++ b/Minecraft.World/BonusChestFeature.h @@ -0,0 +1,19 @@ +#pragma once +#include "Feature.h" + +class Random; +class Level; + +class BonusChestFeature : public Feature +{ + +private: + const WeighedTreasureArray treasureList; + const int numRolls; + +public: + BonusChestFeature(WeighedTreasureArray treasureList, int numRolls); + + virtual bool place(Level *level, Random *random, int x, int y, int z); + bool place(Level *level, Random *random, int x, int y, int z, bool force); // 4J added this method with extra force parameter +}; -- cgit v1.2.3