Files
GabsPuNs-Project_Zenith_Main/Minecraft.World/GlowstoneTile.cpp
GabsPuNs bc6c09146a New File System and Cleanup some code Part 3
* Remove stdafx.h and some <unordered_set> includes
* Update Minecraft Server Defines and remove more unused folders/files
* Unbloat stdafx.h from Minecraft.World
2026-05-24 22:21:41 -04:00

21 lines
521 B
C++

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