aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/LightGemTile.cpp
blob: 3aa7d10154aa25ec1b9198933845352a6852d90a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "stdafx.h"
#include "LightGemTile.h"
#include "net.minecraft.world.item.h"

LightGemTile::LightGemTile(int id, Material *material) : Tile(id, material)
{
}

int LightGemTile::getResourceCountForLootBonus(int bonusLevel, Random *random)
{
	return Mth::clamp(getResourceCount(random) + random->nextInt(bonusLevel + 1), 1, 4);
}

int LightGemTile::getResourceCount(Random *random)
{
	return 2 + random->nextInt(3);
}

int LightGemTile::getResource(int data, Random *random, int playerBonusLevel)
{
	return Item::yellowDust->id;
}