equivalent-exchange-3/ee3_common/com/pahimar/ee3/item/ItemEE.java

36 lines
851 B
Java
Raw Normal View History

package com.pahimar.ee3.item;
2013-03-05 04:18:15 +01:00
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.Item;
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
/**
* Equivalent-Exchange-3
*
* ItemEE
*
* @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 {
public ItemEE(int id) {
2012-11-30 21:45:32 +01:00
super(id - Reference.SHIFTED_ID_RANGE_CORRECTION);
maxStackSize = 1;
setNoRepair();
}
2013-03-05 04:18:15 +01:00
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
itemIcon = 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
}