class ServerEnvironment;
class InventoryItem;
+class Player;
class ServerActiveObject : public ActiveObject
{
If the object doesn't return an item, this will be called.
Return value is tool wear.
*/
- virtual u16 punch(const std::string &toolname, v3f dir)
+ virtual u16 punch(const std::string &toolname, v3f dir,
+ const std::string &playername)
{return 0;}
+
+ /*
+ */
+ virtual void rightClick(Player *player){}
+
+ virtual bool isPeaceful(){return true;}
/*
Number of players which know about this object. Object won't be