4jcraft/Minecraft.World/Blocks/GlowstoneTile.cpp
2026-03-21 15:52:50 -05:00

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;
}