1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Add ItemStack:get_description() to get tooltip (#8847)

This commit is contained in:
Paul Ouellette 2019-08-24 12:38:02 -04:00 committed by sfan5
parent efbac7e446
commit 008b80fe1c
6 changed files with 33 additions and 22 deletions

View file

@ -47,6 +47,8 @@ struct ItemStack
// Returns the string used for inventory
std::string getItemString() const;
// Returns the tooltip
std::string getDescription(IItemDefManager *itemdef) const;
/*
Quantity methods