rename classes

This commit is contained in:
Raoul Van den Berge
2015-12-18 13:25:28 +01:00
parent 4d5af85215
commit 8bf0f66530
29 changed files with 86 additions and 86 deletions

View File

@@ -0,0 +1,30 @@
package storagecraft.item;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import storagecraft.StorageCraft;
public class ItemBase extends Item {
private String name;
public ItemBase(String name) {
this.name = name;
setCreativeTab(StorageCraft.TAB);
setTextureName("storagecraft:" + name);
}
@Override
public String getUnlocalizedName() {
return "item." + StorageCraft.ID + ":" + name;
}
@Override
public String getUnlocalizedName(ItemStack stack) {
if (getHasSubtypes()) {
return getUnlocalizedName() + "." + stack.getItemDamage();
}
return getUnlocalizedName();
}
}