Skip to content
Snippets Groups Projects
Commit 16e60758 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

Removed duplicate code.

parent e53c2afa
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment