1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00

refactor use item handler

This commit is contained in:
p2r3
2025-08-23 17:54:05 +03:00
parent 3c86db75fb
commit 0945de26f0
3 changed files with 76 additions and 70 deletions

View File

@@ -34,6 +34,7 @@ uint32_t isCompostItem (uint16_t item);
uint16_t getMiningResult (uint16_t held_item, uint8_t block);
void bumpToolDurability (PlayerData *player);
void handlePlayerAction (PlayerData *player, int action, short x, short y, short z);
void handlePlayerUseItem (PlayerData *player, short x, short y, short z, uint8_t face);
void spawnMob (uint8_t type, short x, uint8_t y, short z, uint8_t health);
void hurtEntity (int entity_id, int attacker_id, uint8_t damage_type, uint8_t damage);