@Override
 public String getUnlocalizedName() {
   return String.format(
       "item.%s%s%s",
       Textures.RESOURCE_PREFIX,
       NameHelper.getUnwrappedUnlocalizedName(super.getUnlocalizedName()),
       getArmorTypeName(this.armorType));
 }
 @Override
 public String getUnlocalizedName(ItemStack itemStack) {
   return String.format(
       "item.%s%s%s",
       Textures.RESOURCE_PREFIX,
       NameHelper.getUnwrappedUnlocalizedName(super.getUnlocalizedName(itemStack)),
       getArmorTypeName(itemStack.getItem()));
 }
Exemple #3
0
 @Override
 public String getUnlocalizedName(ItemStack itemStack) {
   return String.format(
       "item.%s%s",
       Reference.MOD_ID + ":", NameHelper.getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
 }