4jcraft/targets/minecraft/world/level/levelgen/feature/BonusChestFeature.h
Tropical dd93cfe91e
Some checks are pending
Build (Linux, x86-64) / build-linux (push) Waiting to run
Format Check / clang-format (push) Waiting to run
format everything
2026-04-01 13:48:29 -05:00

24 lines
591 B
C++

#pragma once
#include <format>
#include <vector>
#include "Feature.h"
class Random;
class Level;
class WeighedTreasure;
class BonusChestFeature : public Feature {
private:
const std::vector<WeighedTreasure*> treasureList;
const int numRolls;
public:
BonusChestFeature(std::vector<WeighedTreasure*>& 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
};