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;

View file

@ -29,16 +29,16 @@ public class ItemAdamantineArmor extends ItemArmor implements IArmorTextureProvi
{
switch (ArmorType){
case 0:
itemIcon = iconRegister.registerIcon("MysticTextures:item.helmetAdamantine");
itemIcon = iconRegister.registerIcon("MysticTextures:HelmetAdamantine");
break;
case 1:
itemIcon = iconRegister.registerIcon("MysticTextures:item.chestplateAdamantine");
itemIcon = iconRegister.registerIcon("MysticTextures:ChestplateAdamantine");
break;
case 2:
itemIcon = iconRegister.registerIcon("MysticTextures:item.leggingsAdamantine");
itemIcon = iconRegister.registerIcon("MysticTextures:LeggingsAdamantine");
break;
case 3:
itemIcon = iconRegister.registerIcon("MysticTextures:item.bootsAdamantine");
itemIcon = iconRegister.registerIcon("MysticTextures:BootsAdamantine");
break;
}
}

View file

@ -31,7 +31,6 @@ public class ItemBushFruit extends ItemFood {
{
super(id, health, 0.6F, false);
this.setHasSubtypes(true);
this.setUnlocalizedName(Strings.BUSH_FRUIT_NAME);
this.setCreativeTab(MysticWorld.MysticWorldTab);
maxStackSize = 64;
setAlwaysEdible();
@ -155,7 +154,7 @@ public class ItemBushFruit extends ItemFood {
icons = new Icon[FRUIT_TYPES.length];
for (int i = 0; i < FRUIT_TYPES.length; ++i) {
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + "item.fruit_" + i);
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + FRUIT_TYPES[i] + " Fruit");
}
}

View file

@ -66,9 +66,9 @@ public class ItemHandler$1 {
public static void init(){
staffParts = new ItemStaffParts(ItemIds.STAFF_PARTS).setUnlocalizedName(Strings.STAFF_NAME);
imbuedShard = new ItemImbuedShard(ItemIds.IMBUED_SHARD).setUnlocalizedName(Strings.IMBUED_SHARD_NAME);
staffParts = new ItemStaffParts(ItemIds.STAFF_PARTS);
imbuedShard = new ItemImbuedShard(ItemIds.IMBUED_SHARD);
bushFruit = new ItemBushFruit(ItemIds.BUSH_FRUIT, 2);
fireStaff = new ItemStaffFire(ItemIds.FIRE_STAFF).setUnlocalizedName(Strings.FIRE_STAFF_NAME);
waterStaff = new ItemStaffWater(ItemIds.WATER_STAFF).setUnlocalizedName(Strings.WATER_STAFF_NAME);
@ -76,7 +76,7 @@ public class ItemHandler$1 {
airStaff = new ItemStaffAir(ItemIds.AIR_STAFF).setUnlocalizedName(Strings.AIR_STAFF_NAME);
energyStaff = new ItemStaffEnegy(ItemIds.ENERGY_STAFF).setUnlocalizedName(Strings.ENERGY_STAFF_NAME);
staffPower = new ItemStaffPower(ItemIds.STAFF_POWER).setUnlocalizedName(Strings.POWER_STAFF_NAME);
staffPower = new ItemStaffPower(ItemIds.STAFF_POWER);
fireOrb = new ItemOrbFire(ItemIds.FIRE_ORB).setUnlocalizedName(Strings.FIRE_ORB_NAME);
waterOrb = new ItemOrbWater(ItemIds.WATER_ORB).setUnlocalizedName(Strings.WATER_ORB_NAME);
@ -84,8 +84,6 @@ public class ItemHandler$1 {
airOrb = new ItemOrbAir(ItemIds.AIR_ORB).setUnlocalizedName(Strings.AIR_ORB_NAME);
energyOrb = new ItemOrbEnergy(ItemIds.ENERGY_ORB).setUnlocalizedName(Strings.ENERGY_ORB_NAME);
bushFruit = new ItemBushFruit(ItemIds.BUSH_FRUIT, 2).setUnlocalizedName(Strings.BUSH_FRUIT_NAME);
verditeHelmet = new ItemVerditeArmor(ItemIds.VERDITE_HELMET, EnumArmor.Verdite, MysticWorld.proxy.addArmor(EnumArmor.Verdite.name()), 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME);
verditeChestplate = new ItemVerditeArmor(ItemIds.VERDITE_CHESTPLATE, EnumArmor.Verdite, MysticWorld.proxy.addArmor(EnumArmor.Verdite.name()), 1).setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME);
verditeLeggings = new ItemVerditeArmor(ItemIds.VERDITE_LEGGINGS, EnumArmor.Verdite, MysticWorld.proxy.addArmor(EnumArmor.Verdite.name()), 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME);

View file

@ -42,7 +42,7 @@ public class ItemImbuedShard extends Item {
icons = new Icon[SHARD_TYPES.length];
for (int i = 0; i < SHARD_TYPES.length; ++i) {
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + "item.shard_" + i);
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + SHARD_TYPES[i] + " Shard");
}
}

View file

@ -33,16 +33,16 @@ public class ItemIridiumArmor extends ItemArmor implements IArmorTextureProvider
{
switch (ArmorType){
case 0:
itemIcon = iconRegister.registerIcon("MysticTextures:item.helmetIridium");
itemIcon = iconRegister.registerIcon("MysticTextures:HelmetIridium");
break;
case 1:
itemIcon = iconRegister.registerIcon("MysticTextures:item.chestplateIridium");
itemIcon = iconRegister.registerIcon("MysticTextures:ChestplateIridium");
break;
case 2:
itemIcon = iconRegister.registerIcon("MysticTextures:item.leggingsIridium");
itemIcon = iconRegister.registerIcon("MysticTextures:LeggingsIridium");
break;
case 3:
itemIcon = iconRegister.registerIcon("MysticTextures:item.bootsIridium");
itemIcon = iconRegister.registerIcon("MysticTextures:BootsIridium");
break;
}
}

View file

@ -29,16 +29,16 @@ public class ItemMithrilArmor extends ItemArmor implements IArmorTextureProvider
{
switch (ArmorType){
case 0:
itemIcon = iconRegister.registerIcon("MysticTextures:item.helmetMithril");
itemIcon = iconRegister.registerIcon("MysticTextures:HelmetMithril");
break;
case 1:
itemIcon = iconRegister.registerIcon("MysticTextures:item.chestplateMithril");
itemIcon = iconRegister.registerIcon("MysticTextures:ChestplateMithril");
break;
case 2:
itemIcon = iconRegister.registerIcon("MysticTextures:item.leggingsMithril");
itemIcon = iconRegister.registerIcon("MysticTextures:LeggingsMithril");
break;
case 3:
itemIcon = iconRegister.registerIcon("MysticTextures:item.bootsMithril");
itemIcon = iconRegister.registerIcon("MysticTextures:BootsMithril");
break;
}
}

View file

@ -22,7 +22,7 @@ public class ItemStaffAir extends Item {
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + "item.AirStaff");
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer)

View file

@ -28,7 +28,7 @@ public class ItemStaffEarth extends Item {
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + "item.EarthStaff");
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer){

View file

@ -22,7 +22,7 @@ public class ItemStaffEnegy extends Item{
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + "item.EnergyStaff");
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer){

View file

@ -21,7 +21,7 @@ public class ItemStaffFire extends Item{
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + "item.FireStaff");
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}

View file

@ -26,7 +26,6 @@ public class ItemStaffParts extends Item {
public ItemStaffParts(int id) {
super(id);
this.setHasSubtypes(true);
this.setUnlocalizedName(Strings.IMBUED_SHARD_NAME);
this.setCreativeTab(MysticWorld.MysticWorldTab);
}
@ -42,7 +41,7 @@ public class ItemStaffParts extends Item {
icons = new Icon[STAFF_PARTS.length];
for (int i = 0; i < STAFF_PARTS.length; ++i) {
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + "item.staff_" + i);
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + STAFF_PARTS[i]);
}
}

View file

@ -23,7 +23,6 @@ public class ItemStaffPower extends Item {
{
super(id);
this.setHasSubtypes(true);
this.setUnlocalizedName("charge");
this.setCreativeTab(null);
maxStackSize = 64;
}
@ -42,7 +41,7 @@ public class ItemStaffPower extends Item {
icons = new Icon[CHARGE_NAMES.length];
for (int i = 0; i < CHARGE_NAMES.length; ++i) {
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + "item.charge_" + i);
icons[i] = iconRegister.registerIcon("MysticTextures" + ":" + CHARGE_NAMES[i] + " Charge");
}
}

View file

@ -29,7 +29,7 @@ public class ItemStaffWater extends Item {
@Override
public void registerIcons(IconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + "item.WaterStaff");
itemIcon = iconRegister.registerIcon("MysticTextures" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
}
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer){

View file

@ -29,16 +29,16 @@ public class ItemVerditeArmor extends ItemArmor implements IArmorTextureProvider
{
switch (ArmorType){
case 0:
itemIcon = iconRegister.registerIcon("MysticTextures:item.helmetVerdite");
itemIcon = iconRegister.registerIcon("MysticTextures:HelmetVerdite");
break;
case 1:
itemIcon = iconRegister.registerIcon("MysticTextures:item.chestplateVerdite");
itemIcon = iconRegister.registerIcon("MysticTextures:ChestplateVerdite");
break;
case 2:
itemIcon = iconRegister.registerIcon("MysticTextures:item.leggingsVerdite");
itemIcon = iconRegister.registerIcon("MysticTextures:LeggingsVerdite");
break;
case 3:
itemIcon = iconRegister.registerIcon("MysticTextures:item.bootsVerdite");
itemIcon = iconRegister.registerIcon("MysticTextures:BootsVerdite");
break;
}
}