|
| ItemStackRow & | operator= (const ItemStack &other) |
| |
| | ItemStack ()=default |
| |
| | ItemStack (const std::string &name_, u16 count_, u16 wear, IItemDefManager *itemdef) |
| |
| | ~ItemStack ()=default |
| |
| void | serialize (std::ostream &os, bool serialize_meta=true) const |
| |
| void | deSerialize (std::istream &is, IItemDefManager *itemdef=NULL) |
| |
| void | deSerialize (const std::string &s, IItemDefManager *itemdef=NULL) |
| |
| std::string | getItemString (bool include_meta=true) const |
| |
| std::string | getDescription (const IItemDefManager *itemdef) const |
| |
| std::string | getShortDescription (const IItemDefManager *itemdef) const |
| |
| std::string | getInventoryImage (const IItemDefManager *itemdef) const |
| |
| std::string | getInventoryOverlay (const IItemDefManager *itemdef) const |
| |
| std::string | getWieldImage (const IItemDefManager *itemdef) const |
| |
| std::string | getWieldOverlay (const IItemDefManager *itemdef) const |
| |
| v3f | getWieldScale (const IItemDefManager *itemdef) const |
| |
| bool | empty () const |
| |
| void | clear () |
| |
| void | add (u16 n) |
| |
| void | remove (u16 n) |
| |
| u16 | getStackMax (const IItemDefManager *itemdef) const |
| |
| u16 | freeSpace (const IItemDefManager *itemdef) const |
| |
| bool | isKnown (const IItemDefManager *itemdef) const |
| |
| const ItemDefinition & | getDefinition (const IItemDefManager *itemdef) const |
| |
| const ToolCapabilities & | getToolCapabilities (const IItemDefManager *itemdef) const |
| |
| const std::optional< WearBarParams > & | getWearBarParams (const IItemDefManager *itemdef) const |
| |
| bool | addWear (s32 amount, const IItemDefManager *itemdef) |
| |
| ItemStack | addItem (ItemStack newitem, IItemDefManager *itemdef) |
| |
| bool | itemFits (ItemStack newitem, ItemStack *restitem, IItemDefManager *itemdef) const |
| |
| bool | stacksWith (const ItemStack &other) const |
| |
| ItemStack | takeItem (u32 takecount) |
| |
| ItemStack | peekItem (u32 peekcount) const |
| |
| bool | operator== (const ItemStack &s) const |
| |
| bool | operator!= (const ItemStack &s) const |
| |