blob: dba4ce9190b34faa50c08ed26cb316b52a9aee6b (
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 "Glowstonetile.h"
#include "net.minecraft.world.item.h"
Glowstonetile::Glowstonetile(int id, Material *material) : Tile(id, material)
{
}
int Glowstonetile::getResourceCountForLootBonus(int bonusLevel, Random *random)
{
return Mth::clamp(getResourceCount(random) + random->nextInt(bonusLevel + 1), 1, 4);
}
int Glowstonetile::getResourceCount(Random *random)
{
return 2 + random->nextInt(3);
}
int Glowstonetile::getResource(int data, Random *random, int playerBonusLevel)
{
return Item::yellowDust->id;
}
|