4jcraft/targets/minecraft/world/level/tile/GlowstoneTile.cpp
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

24 lines
707 B
C++

#include "GlowstoneTile.h"
#include "java/Random.h"
#include "minecraft/util/Mth.h"
#include "minecraft/world/item/Item.h"
#include "minecraft/world/level/tile/Tile.h"
class Material;
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;
}