2013-08-23 16:59:50 +02:00
|
|
|
package com.pahimar.ee3.item;
|
|
|
|
|
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
|
|
|
import com.pahimar.ee3.lib.Reference;
|
|
|
|
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Equivalent-Exchange-3
|
|
|
|
*
|
|
|
|
* ItemEE
|
|
|
|
*
|
|
|
|
* @author pahimar
|
|
|
|
* @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ItemEE extends Item {
|
|
|
|
|
|
|
|
public ItemEE(int id) {
|
|
|
|
|
|
|
|
super(id - Reference.SHIFTED_ID_RANGE_CORRECTION);
|
|
|
|
maxStackSize = 1;
|
|
|
|
setNoRepair();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public void registerIcons(IconRegister iconRegister) {
|
|
|
|
|
2013-08-26 00:12:29 +02:00
|
|
|
itemIcon = iconRegister.registerIcon(this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
2013-08-23 16:59:50 +02:00
|
|
|
}
|
|
|
|
}
|