TechReborn/src/main/java/techreborn/items/battery/ItemLapotronCrystal.java

31 lines
949 B
Java
Raw Normal View History

2016-04-24 19:57:44 +02:00
package techreborn.items.battery;
2016-03-05 23:50:39 +01:00
2016-12-09 03:39:49 +01:00
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.common.powerSystem.PoweredItem;
import techreborn.init.ModItems;
2016-03-29 01:02:39 +02:00
public class ItemLapotronCrystal extends ItemBattery {
2016-03-05 23:50:39 +01:00
2016-03-29 01:02:39 +02:00
public ItemLapotronCrystal() {
super("lapotronCrystal", 1000000, 512, 2);
2016-03-25 10:47:34 +01:00
}
2016-12-09 03:39:49 +01:00
@SuppressWarnings({ "rawtypes", "unchecked" })
@SideOnly(Side.CLIENT)
public void getSubItems(Item item,
CreativeTabs par2CreativeTabs, NonNullList itemList) {
ItemStack stack = new ItemStack(ModItems.LAPOTRONIC_CRYSTAL);
2016-12-09 03:39:49 +01:00
ItemStack uncharged = stack.copy();
ItemStack charged = stack.copy();
PoweredItem.setEnergy(getMaxPower(charged), charged);
itemList.add(uncharged);
itemList.add(charged);
}
2016-03-05 23:50:39 +01:00
}