OSDN Git Service

(・∀・)
[chemicraft/chemicraft.git] / common / pcc / chemicraft / base / ore / ItemAtomOres.java
index 07330d8..c0bc207 100644 (file)
@@ -3,6 +3,7 @@ package pcc.chemicraft.base.ore;
 import net.minecraft.item.ItemBlock;
 import net.minecraft.item.ItemDye;
 import net.minecraft.item.ItemStack;
+import net.minecraft.util.Icon;
 import pcc.chemicraft.base.ChemiCraftBase;
 import cpw.mods.fml.relauncher.Side;
 import cpw.mods.fml.relauncher.SideOnly;
@@ -19,11 +20,13 @@ public class ItemAtomOres extends ItemBlock {
                this.setHasSubtypes(true);
        }
 
+       /* 一時保留。詳しい仕様が決まらないと変更が難しいため。 --WIP--
        @Override
        @SideOnly(Side.CLIENT)
-       public int getIconFromDamage(int par1) {
+       public Icon getIconFromDamage(int par1) {
                return ChemiCraftBase.instance.blockAtomOres[0].getBlockTextureFromSideAndMetadata(2, BlockAtomOres.getBlockFromDye(par1));
        }
+       */
 
        @Override
        public int getMetadata(int par1) {
@@ -31,7 +34,7 @@ public class ItemAtomOres extends ItemBlock {
        }
 
        @Override
-       public String getItemNameIS(ItemStack par1ItemStack) {
-               return super.getItemName() + "." + ItemDye.dyeColorNames[BlockAtomOres.getBlockFromDye(par1ItemStack.getItemDamage())];
+       public String getUnlocalizedName(ItemStack par1ItemStack) {
+               return super.getUnlocalizedName() + "." + ItemDye.dyeColorNames[BlockAtomOres.getBlockFromDye(par1ItemStack.getItemDamage())];
        }
 }