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:
parent
34c12a65c4
commit
768d7bc865
121 changed files with 36 additions and 70 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue