mirror of
https://github.com/Patoke/LCERenewed.git
synced 2026-10-11 08:05:11 +00:00
feat: init
This commit is contained in:
commit
25809b8455
18807 files changed
+3944357
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#include "stdafx.h"
|
||||
#include "net.minecraft.world.item.h"
|
||||
#include "net.minecraft.world.entity.item.h"
|
||||
#include "net.minecraft.world.entity.player.h"
|
||||
#include "net.minecraft.world.h"
|
||||
#include "CoalItem.h"
|
||||
|
||||
CoalItem::CoalItem(int id) : Item( id )
|
||||
{
|
||||
setStackedByData(true);
|
||||
setMaxDamage(0);
|
||||
}
|
||||
|
||||
unsigned int CoalItem::getDescriptionId(shared_ptr<ItemInstance> instance)
|
||||
{
|
||||
if (instance->getAuxValue() == CHAR_COAL)
|
||||
{
|
||||
return IDS_ITEM_CHARCOAL;
|
||||
}
|
||||
return IDS_ITEM_COAL;
|
||||
}
|
||||
|
||||
Icon *CoalItem::getIcon(int auxValue)
|
||||
{
|
||||
if (auxValue == CHAR_COAL)
|
||||
{
|
||||
return charcoalIcon;
|
||||
}
|
||||
return Item::getIcon(auxValue);
|
||||
}
|
||||
|
||||
void CoalItem::registerIcons(IconRegister *iconRegister)
|
||||
{
|
||||
Item::registerIcons(iconRegister);
|
||||
|
||||
charcoalIcon = iconRegister->registerIcon(L"charcoal");
|
||||
}
|
||||
Reference in new issue
Block a user