MinecraftModDevelopmentMods / Armory-Expansion

The objective is to help integrate other mods with Construct's Armory and Tinker's Construct, supplying tool and armor parts for most materials.
https://www.curseforge.com/minecraft/mc-mods/armory-expansion
5 stars 10 forks source link

[Enhancement] Make an Armor Trait wrapper for Tool Traits #64

Open YaibaToKen opened 5 years ago

YaibaToKen commented 5 years ago

Wrap all Tool Traits in a generic Armor Trait object, containing a similar identifier and mapping the methods that tend to be called on tool usage to methods that tend to be called on armor usage. We can do this by listening to the TraitRegisterEvent and generating said wrapper there. Proceed to register the generated wrapper as a trait as well.