ElenaiDev / Feathers

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

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

Open Wabbit0101 opened 1 year ago

Wabbit0101 commented 1 year 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.

CoruscareGames commented 1 month ago

I think this would be nice as well. If the API can read an ItemStack, then it could derive weight for armor from, say, Truly Modular's stuff.