2024-01-06 11:30:23 +00:00
|
|
|
static-method void initItems() = 0x94ed0;
|
|
|
|
|
|
|
|
vtable-size 0x98;
|
|
|
|
vtable 0x10f128;
|
|
|
|
|
|
|
|
size 0x24;
|
|
|
|
constructor (int id) = 0x99488;
|
|
|
|
|
|
|
|
virtual-method int getIcon(int auxiliary) = 0x14;
|
2024-02-07 06:47:46 +00:00
|
|
|
virtual-method void setIcon(int texture_x, int texture_y) = 0x18;
|
2024-01-06 11:30:23 +00:00
|
|
|
virtual-method int useOn(ItemInstance *item_instance, Player *player, Level *level, int x, int y, int z, int hit_side, float hit_x, float hit_y, float hit_z) = 0x20;
|
2024-02-07 06:47:46 +00:00
|
|
|
// Normally returns 0
|
|
|
|
virtual-method int getUseDuration(ItemInstance *item_instance) = 0x24;
|
|
|
|
virtual-method ItemInstance useTimeDepleted(ItemInstance *item_instance, Level *level, Player *player) = 0x28;
|
|
|
|
virtual-method int getDestorySpeed(ItemInstance *item_instance, Tile *tile) = 0x2c;
|
2024-01-16 08:43:40 +00:00
|
|
|
virtual-method ItemInstance *use(ItemInstance *item_instance, Level *level, Player *player) = 0x30;
|
2024-02-12 23:31:05 +00:00
|
|
|
virtual-method void hurtEnemy(ItemInstance *itemInstance, Mob *mob) = 0x44;
|
2024-02-07 06:47:46 +00:00
|
|
|
virtual-method bool mineBlock(ItemInstance *instance, int tile_id, int x, int y, int z) = 0x48;
|
2024-02-08 22:30:41 +00:00
|
|
|
// Not just enemy, but any entity
|
|
|
|
virtual-method void interactEnemy(ItemInstance *item_instance, Mob *mob) = 0x54;
|
2024-02-06 22:46:30 +00:00
|
|
|
virtual-method bool isFood() = 0x64;
|
2024-02-07 06:47:46 +00:00
|
|
|
virtual-method bool isArmor() = 0x68;
|
2024-01-06 11:30:23 +00:00
|
|
|
virtual-method void setDescriptionId(std::string *name) = 0x6c;
|
|
|
|
virtual-method std::string getDescriptionId(ItemInstance *item_instance) = 0x7c;
|
2024-02-07 06:47:46 +00:00
|
|
|
// This returns an Item*, but it's never called normally so it doesn't matter if we invent a better system over top of it
|
|
|
|
virtual-method ItemInstance *getCraftingRemainingItem(ItemInstance *item_instance) = 0x84;
|
|
|
|
// Swing = 0, eating = 1, drinking = 2, bow = 4, anything else is nothing
|
|
|
|
virtual-method int getUseAnimation() = 0x94;
|
2024-01-06 11:30:23 +00:00
|
|
|
|
|
|
|
property int id = 0x4;
|
|
|
|
property int max_damage = 0x8;
|
2024-01-23 03:59:38 +00:00
|
|
|
property int texture = 0xc;
|
|
|
|
property int category = 0x10;
|
2024-01-06 11:30:23 +00:00
|
|
|
property int max_stack_size = 0x14;
|
2024-01-23 03:59:38 +00:00
|
|
|
property bool equipped = 0x18;
|
|
|
|
property bool is_stacked_by_data = 0x19;
|
2024-02-07 06:47:46 +00:00
|
|
|
property Item *craftingRemainingItem = 0x1c;
|
2024-01-23 03:59:38 +00:00
|
|
|
property std::string description_id = 0x20;
|
2024-01-06 11:30:23 +00:00
|
|
|
|
2024-01-07 07:59:04 +00:00
|
|
|
// Globals
|
|
|
|
static-property-array Item *items = 0x17b250;
|
|
|
|
|
2024-01-06 11:30:23 +00:00
|
|
|
// Items
|
|
|
|
static-property Item *flintAndSteel = 0x17ba70;
|
|
|
|
static-property Item *snowball = 0x17bbb0;
|
|
|
|
static-property Item *shears = 0x17bbf0;
|
|
|
|
static-property Item *egg = 0x17bbd0;
|
|
|
|
static-property Item *dye_powder = 0x17bbe0;
|
|
|
|
static-property Item *camera = 0x17bc14;
|
2024-01-16 08:43:40 +00:00
|
|
|
static-property Item *bow = 0x17ba78;
|