add on_inventory_open and on_inventory_closed events

This commit is contained in:
MihailRis
2025-01-12 17:14:01 +03:00
parent e1150f9e05
commit 80128a4190
4 changed files with 45 additions and 3 deletions
+3
View File
@@ -89,6 +89,9 @@ namespace scripting {
void on_chunk_present(const Chunk& chunk, bool loaded);
void on_chunk_remove(const Chunk& chunk);
void on_inventory_open(const Player* player, const Inventory& inventory);
void on_inventory_closed(const Player* player, const Inventory& inventory);
void on_player_tick(Player* player, int tps);
/// @brief Called on RMB click with the item selected