Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Compares two items for the same type or category. More...
#include <Item.h>
Public Member Functions | |
bool | operator() (const cItem &a_Lhs, const cItem &a_Rhs) const |
Compares two items for the same type or category.
Type of item is defined via m_ItemType
and m_ItemDamage
. Some items (e.g. planks) have the same m_ItemType
and the wood kind is defined via m_ItemDamage
. -1
is used as placeholder for all kinds (e.g. all kind of planks).
Items are different when the ItemType
is different or the ItemDamage
is different and unequal -1.