Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ItemStackRow Class Reference
+ Inheritance diagram for ItemStackRow:
+ Collaboration diagram for ItemStackRow:

Public Member Functions

ItemStackRowoperator= (const ItemStack &other)
 
- Public Member Functions inherited from ItemStack
 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 ItemDefinitiongetDefinition (const IItemDefManager *itemdef) const
 
const ToolCapabilitiesgetToolCapabilities (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
 

Public Attributes

int id
 
- Public Attributes inherited from ItemStack
std::string name = ""
 
u16 count = 0
 
u16 wear = 0
 
ItemStackMetadata metadata
 

Member Function Documentation

◆ operator=()

ItemStackRow & ItemStackRow::operator= ( const ItemStack & other)
inline

Member Data Documentation

◆ id


The documentation for this class was generated from the following file: