Redid Texturing System to use proper naming instead of item.nameHere format. Fixed Capitalization inconsistencies and will be doing the same for blocks.

This commit is contained in:
oitsjustjose 2013-06-22 19:11:53 -05:00
commit 768d7bc865
121 changed files with 36 additions and 70 deletions

View file

@ -25,6 +25,6 @@ public class ItemAxes extends ItemAxe
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName());
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
}

View file

@ -1,27 +0,0 @@
package MysticOres.Items;
import MysticOres.MysticOres;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class ItemBase extends Item
{
public ItemBase(int i)
{
super(i);
maxStackSize = 64;
this.setCreativeTab(MysticOres.MysticOresTab);
}
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName());
}
}

View file

@ -25,6 +25,6 @@ public class ItemHoes extends ItemHoe
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName());
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
}

View file

@ -23,6 +23,6 @@ public class ItemPickaxes extends ItemPickaxe
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName());
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
}

View file

@ -28,7 +28,6 @@ public class ItemResource extends Item
public ItemResource(int id) {
super(id);
this.setHasSubtypes(true);
this.setUnlocalizedName("ItemResource");
this.setCreativeTab(MysticOres.MysticOresTab);
}
@ -44,7 +43,7 @@ public class ItemResource extends Item
icons = new Icon[RESOURCE_TYPES.length];
for (int i = 0; i < RESOURCE_TYPES.length; ++i) {
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + "item.resource_" + i);
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + RESOURCE_TYPES[i]);
}
}

View file

@ -43,6 +43,6 @@ public class ItemSatchel extends Item
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName());
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
}

View file

@ -23,6 +23,6 @@ public class ItemShovels extends ItemSpade
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName());
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
}

View file

@ -23,6 +23,6 @@ public class ItemSwords extends ItemSword
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName());
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
}

View file

@ -8,7 +8,6 @@ import MysticOres.Blocks.BlockOres;
import MysticOres.Blocks.BlockReinforcedGlass;
import MysticOres.Blocks.ItemBlockOres;
import MysticOres.Items.ItemAxes;
import MysticOres.Items.ItemBase;
import MysticOres.Items.ItemHandler;
import MysticOres.Items.ItemHoes;
import MysticOres.Items.ItemPickaxes;