the whole game

This commit is contained in:
Kolyah35
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

29
src/world/item/CoalItem.h Executable file
View File

@@ -0,0 +1,29 @@
#ifndef NET_MINECRAFT_WORLD_ITEM__CoalItem_H__
#define NET_MINECRAFT_WORLD_ITEM__CoalItem_H__
//package net.minecraft.world.item;
class CoalItem: public Item
{
typedef Item super;
public:
static const int STONE_COAL = 0;
static const int CHAR_COAL = 1;
CoalItem(int id)
: super(id)
{
setStackedByData(true);
setMaxDamage(0);
}
/*@Override*/
std::string getDescriptionId(ItemInstance* instance) {
if (instance->getAuxValue() == CHAR_COAL) {
return ICON_DESCRIPTION_PREFIX + "charcoal";
}
return ICON_DESCRIPTION_PREFIX + "coal";
}
};
#endif /*NET_MINECRAFT_WORLD_ITEM__CoalItem_H__*/