2012-12-17 21:21:53 +01:00
|
|
|
package com.pahimar.ee3.item;
|
|
|
|
|
2013-03-05 04:18:15 +01:00
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
2012-12-19 19:09:56 +01:00
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
2012-12-17 21:21:53 +01:00
|
|
|
import com.pahimar.ee3.lib.Reference;
|
2013-03-05 04:18:15 +01:00
|
|
|
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2012-08-25 08:07:59 +02:00
|
|
|
|
|
|
|
/**
|
2013-03-08 19:40:59 +01:00
|
|
|
* Equivalent-Exchange-3
|
2012-08-25 08:46:51 +02:00
|
|
|
*
|
2013-03-08 19:40:59 +01:00
|
|
|
* ItemEE
|
2012-08-25 08:46:51 +02:00
|
|
|
*
|
|
|
|
* @author pahimar
|
|
|
|
* @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html)
|
|
|
|
*
|
|
|
|
*/
|
2012-08-25 08:07:59 +02:00
|
|
|
public class ItemEE extends Item {
|
|
|
|
|
2012-08-25 08:46:51 +02:00
|
|
|
public ItemEE(int id) {
|
2012-11-30 21:45:32 +01:00
|
|
|
|
2012-09-25 16:07:49 +02:00
|
|
|
super(id - Reference.SHIFTED_ID_RANGE_CORRECTION);
|
2012-08-25 08:46:51 +02:00
|
|
|
maxStackSize = 1;
|
|
|
|
setNoRepair();
|
|
|
|
}
|
2013-03-08 19:40:59 +01:00
|
|
|
|
2013-03-05 04:18:15 +01:00
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
2013-03-22 00:44:21 +01:00
|
|
|
public void updateIcons(IconRegister iconRegister) {
|
2013-03-08 19:40:59 +01:00
|
|
|
|
2013-03-22 00:44:21 +01:00
|
|
|
iconIndex = iconRegister.registerIcon(Reference.MOD_ID.toLowerCase() + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
|
2013-03-05 04:18:15 +01:00
|
|
|
}
|
2012-08-25 08:07:59 +02:00
|
|
|
}
|