4#if PROTOCOL_VERSION < 347
12#if PROTOCOL_VERSION < 347
13 using ItemId = std::pair<int, unsigned char>;
32 const std::string&
GetName()
const;
54#if PROTOCOL_VERSION < 347
58 struct hash<
std::pair<int, unsigned char>>
60 size_t operator()(
const std::pair<int, unsigned char>& p)
const
62 const size_t hash1 = std::hash<int>{}(p.first);
63 const size_t hash2 = std::hash<unsigned char>{}(p.second);
65 return hash1 ^ (hash2 + 0x9e3779b9 + (hash1 << 6) + (hash1 >> 2));
void LoadTypeAndMaterialFromName()
unsigned char GetStackSize() const
ToolMaterial GetToolMaterial() const
ToolType GetToolType() const
int GetMaxDurability() const
Get the max durability of this item.
ToolMaterial tool_material
const std::string & GetName() const