To override a method the signature needs to match that of the super classsuper class. Replace
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int type) {
with
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {