aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/BonusChestFeature.h
blob: cd4aca3ed547311d9431bc0a52678c844bdda0a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
};