#include "content_sao.h"
#include "player.h"
#include "log.h"
+#include "mapnode_contentfeatures.h"
+#include "tool.h"
/*
InventoryItem
MaterialItem
*/
+#ifndef SERVER
+video::ITexture * MaterialItem::getImage() const
+{
+ return content_features(m_content).inventory_texture;
+}
+#endif
+
bool MaterialItem::isCookable() const
{
return item_material_is_cookable(m_content);
return item_material_create_cook_result(m_content);
}
+/*
+ ToolItem
+*/
+
+std::string ToolItem::getImageBasename() const
+{
+ return tool_get_imagename(m_toolname);
+}
+
/*
CraftItem
*/