neoforged / Documentation

The repository containing Neo's documentation
MIT License
23 stars 36 forks source link

tools.md is outdated #59

Closed tmvkrpxl0 closed 1 month ago

tmvkrpxl0 commented 3 months ago

In section about armor and ArmorMaterial:

// Optionally, you can also override #getArmorTexture here. This method returns a ResourceLocation

// that determines where the armor location is stored, in case you want to store it in a non-default location. // See the default implementation in Tier for an example.

#getArmorTexture is not defined in both ArmorMaterial and Tier. Instead it's method from IItemExtension which is for 3d model. It's mentioned later in same section:

Besides the usual resources, armors also need a worn armor texture that will be rendered over the player model when the armor is equipped. This texture must be located at src/main/resources/assets/<mod_id>/textures/models/armor/<material>_layer_1.png for the helmet, chestplate and boots textures, and in the same directory at <material>_layer_2.png for the leggings.