ElenaiDev / Feathers

Adds a Stamina System to Minecraft
GNU General Public License v3.0
2 stars 10 forks source link

[ENH] A way to adjust weight based on ItemStack not Item(id) #39

Open Wabbit0101 opened 11 months ago

Wabbit0101 commented 11 months ago

Just a question: Currently the core weight logic is based on Items not ItemStacks. (Refer to ArmorHandler.getArmorWeight.) Is it possible to have this API accept an ItemStack?

Case: I would like to provide a Feathers-plugin for the ArmorUnderwear mod; however, I cannot mixin at this method successfully as the stack has been stripped (and that's where all the goodies regarding armor alterations are kept.) This might require some changes to how feathers info sent from client and everything seems item-id based.