Catch SendFailedException when replying back in Connection::Receive()
[oweals/minetest.git] / src / nodemetadata.h
index 8471e1d970c66f2ba20661b1d2a7ea7c893c4fb4..d81ade96cf434e8dbc5fc406679f44d1f535a199 100644 (file)
@@ -62,6 +62,12 @@ public:
        // A step in time. Returns true if metadata changed.
        virtual bool step(float dtime) {return false;}
        virtual bool nodeRemovalDisabled(){return false;}
+       // Used to make custom inventory menus.
+       // See format in guiInventoryMenu.cpp.
+       virtual std::string getInventoryDrawSpecString(){return "";}
+       // primarily used for locking chests, but others can play too
+       virtual std::string getOwner(){ return std::string(""); }
+       virtual void setOwner(std::string t){  }
 
 protected:
        static void registerType(u16 id, Factory f);