mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 03:33:36 +00:00
19 lines
629 B
C++
19 lines
629 B
C++
#include "../Platform/stdafx.h"
|
|
#include "GlowstoneTile.h"
|
|
#include "../Headers/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;
|
|
} |