Files
GabsPuNs-Project_Zenith_Main/Minecraft.World/LightGemTile.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
515 B
C++

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