Commit 16e60758 authored by Zandor Smith's avatar Zandor Smith 💻

Removed duplicate code.

parent e53c2afa
......@@ -23,7 +23,7 @@ public class ATItem extends Item {
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", ATProps.modid.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
return getUnlocalizedName();
}
@Override
......
......@@ -21,7 +21,7 @@ public class ATItemArmor extends ItemArmor {
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", ATProps.modid.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
return getUnlocalizedName();
}
protected String getUnwrappedUnlocalizedName(String unlocalizedName) {
......
......@@ -23,7 +23,7 @@ public class ATItemAxe extends ItemAxe {
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", ATProps.modid.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
return getUnlocalizedName();
}
@Override
......
......@@ -23,7 +23,7 @@ public class ATItemHoe extends ItemHoe {
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", ATProps.modid.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
return getUnlocalizedName();
}
@Override
......
......@@ -23,7 +23,7 @@ public class ATItemPickaxe extends ItemPickaxe {
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", ATProps.modid.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
return getUnlocalizedName();
}
@Override
......
......@@ -23,7 +23,7 @@ public class ATItemShovel extends ItemSpade {
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", ATProps.modid.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
return getUnlocalizedName();
}
@Override
......
......@@ -23,7 +23,7 @@ public class ATItemSword extends ItemSword {
@Override
public String getUnlocalizedName(ItemStack itemStack) {
return String.format("item.%s%s", ATProps.modid.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
return getUnlocalizedName();
}
@Override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment