[Решено] [IC2 IElectricItem] getChargedItem & getEmptyItem

Статус
В этой теме нельзя размещать новые ответы.
20
0
Парни подскажите как сделать так чтобы у меня как и в обычном IC2 у меня была разряженная и заряженная вещь на примере (скрин внизу - 1.png).
Уже битые часы сижу и не могу понять как это сделать. У меня получается только одна как предмет.
ElectricItemList
Код:
package armorupgrade.core;

import java.util.List;

import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;

public class ElectricItemList extends Item implements IElectricItem{
    
    public int maxCharge;
    public int transferLimit;
    public int tier;
    
    public ElectricItemList()
    {
        this.setMaxStackSize(1);
        this.setMaxDamage(27);
    }

    @Override
    public boolean canProvideEnergy(ItemStack itemStack) {
        return false;
    }

    @Override
    public Item getChargedItem(ItemStack itemStack) {
        return this;
    }

    @Override
    public Item getEmptyItem(ItemStack itemStack) {
        return this;
    }

    @Override
    public double getMaxCharge(ItemStack itemStack) {
        return this.maxCharge;
    }

    @Override
    public int getTier(ItemStack itemStack) {
        return this.tier;
    }

    @Override
    public double getTransferLimit(ItemStack itemStack) {
        return this.transferLimit;
    }

    public void getSubItems(int par, CreativeTabs creativeTabs, List itemList){
        ItemStack itemStack = new ItemStack(this, 1);
        if(getChargedItem(itemStack) == this){
            ItemStack charged = new ItemStack(this, 1);
            ElectricItem.manager.charge(charged, Integer.MAX_VALUE, Integer.MAX_VALUE, true, false);
            itemList.add(charged);
        }
        if(getEmptyItem(itemStack) == this)
        {
            itemList.add(new ItemStack(this, 1, getMaxDamage()));
        }
    }
}


QuantumCrystal
Код:
package armorupgrade.core.item.energy;

import armorupgrade.core.ElectricItemList;
import armorupgrade.core.ItemList;
import armorupgrade.core.MainInfo;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;

public class QuantumCrystal extends ElectricItemList{
    
    @SideOnly(Side.CLIENT) 
     private IIcon full, medium, small; 
    
    public QuantumCrystal() {
        this.setCreativeTab(MainInfo.tabArmorUpgrade);
        this.maxCharge = 50000000;
        this.transferLimit = 60000;
        this.tier = 4;
    }
    
    @Override
    public boolean canProvideEnergy(ItemStack itemStack) {
        return true;
    }
    
    @Override
    @SideOnly(Side.CLIENT)
    public EnumRarity getRarity(ItemStack par1ItemStack){
        return EnumRarity.epic;
    }
    
    public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)
    {
    super.onUpdate(par1ItemStack, par2World, par3Entity, par4, par5);

    EntityLivingBase el = (EntityLivingBase)par3Entity;
    el.addPotionEffect(new PotionEffect(20, 40, 0));
    }
    //Replicator 21M EU
    
    @Override 
     @SideOnly(Side.CLIENT) 
     public void registerIcons(IIconRegister reg){ 
      this.small = reg.registerIcon(MainInfo.MODID + ":itemQuantumCrystal.S"); 
      this.medium = reg.registerIcon(MainInfo.MODID + ":itemQuantumCrystal.M"); 
      this.full = reg.registerIcon(MainInfo.MODID + ":itemQuantumCrystal.F"); 
     } 
      
     @Override 
     @SideOnly(Side.CLIENT) 
     public IIcon getIconFromDamage(int damage){
        if(damage <= 10) return full;
        if(damage <= 20) return medium;
      else return small; 
     } 
}
P.S так же подскажите как вынести значение canProvideEnergy как вынесено maxCharge, transferLimit, tier. Чтобы можно было написать у предмета this.ProvideEnergy true;
 
1,239
2
24
Код:
package com.svk.industrialGuns.guns;

import ic2.api.info.IEnergyValueProvider;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import ic2.api.item.IElectricItemManager;

import java.util.List;

import com.svk.industrialGuns.base.CommonProxy;

import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class EnergyCell extends Item implements IElectricItem
{
    private String name;
    private double maxEnergy = 0;
    private double transfer = 0;
    public EnergyCell(String name, double maxEnergy, double transfer) 
    {
        super();
        this.setCreativeTab(CommonProxy.TabGun);
        this.setUnlocalizedName(name);
        this.name = name;
        this.maxEnergy = maxEnergy;
        this.transfer = transfer;
    }

    @SideOnly(Side.CLIENT)
    public void registerIcons(IIconRegister ir) 
    {
       super.itemIcon = ir.registerIcon("industrialGuns:" + name);
    }

    @Override
    public boolean canProvideEnergy(ItemStack itemStack) 
    {
        return true;
    }

    @Override
    public Item getChargedItem(ItemStack itemStack) 
    {
        return this;
    }

    @Override
    public Item getEmptyItem(ItemStack itemStack) 
    {
        return this;
    }

    @Override
    public double getMaxCharge(ItemStack itemStack) 
    {
        return maxEnergy;
    }

    @Override
    public int getTier(ItemStack itemStack) 
    {
        return 0;
    }

    @Override
    public double getTransferLimit(ItemStack itemStack) 
    {
        return transfer;
    }
}
 
20
0
Я вроде все сделал как в примере но у меня крашиться майн.
Код:
package armorupgrade.core.item.energy;

import armorupgrade.core.MainInfo;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ic2.api.item.IElectricItem;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;

public class QuantumCrystal extends Item implements IElectricItem{
    
    private String unlocalized;
    private double maxEnergy = 0;
    private double transfer = 0;
    
    @SideOnly(Side.CLIENT) 
     private IIcon full, medium, small; 
    
    public QuantumCrystal(String unlocalized, double maxEnergy, double transfer) {
        super();
        this.setCreativeTab(MainInfo.tabArmorUpgrade);
        this.unlocalized = unlocalized;
        this.setMaxStackSize(1);
        this.setMaxDamage(27);
        this.setUnlocalizedName(unlocalized);
        this.maxEnergy = maxEnergy;
        this.transfer = transfer;
    }
    
     @Override
        public boolean canProvideEnergy(ItemStack itemStack) 
        {
            return true;
        }

        @Override
        public Item getChargedItem(ItemStack itemStack) 
        {
            return this;
        }

        @Override
        public Item getEmptyItem(ItemStack itemStack) 
        {
            return this;
        }

        @Override
        public double getMaxCharge(ItemStack itemStack) 
        {
            return maxEnergy;
        }

        @Override
        public int getTier(ItemStack itemStack) 
        {
            return 0;
        }

        @Override
        public double getTransferLimit(ItemStack itemStack) 
        {
            return transfer;
        }
    
    @Override
    @SideOnly(Side.CLIENT)
    public EnumRarity getRarity(ItemStack par1ItemStack){
        return EnumRarity.epic;
    }
    
    public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)
    {
    super.onUpdate(par1ItemStack, par2World, par3Entity, par4, par5);

    EntityLivingBase el = (EntityLivingBase)par3Entity;
    el.addPotionEffect(new PotionEffect(20, 40, 0));
    }
    //Replicator 21M EU
    
    @Override 
     @SideOnly(Side.CLIENT) 
     public void registerIcons(IIconRegister reg){ 
      this.small = reg.registerIcon(MainInfo.MODID + ":itemQuantumCrystal.S"); 
      this.medium = reg.registerIcon(MainInfo.MODID + ":itemQuantumCrystal.M"); 
      this.full = reg.registerIcon(MainInfo.MODID + ":itemQuantumCrystal.F"); 
     } 
      
     @Override 
     @SideOnly(Side.CLIENT) 
     public IIcon getIconFromDamage(int damage){
        if(damage <= 10) return full;
        if(damage <= 20) return medium;
      else return small; 
     } 
}

Код:
GameRegistry.registerItem(QuantumCrystal, "QuantumCrystal");
 
1,239
2
24
Краш лог прикрепляй если крашит.Скопируй и под спойлер желательно
 
1,057
50
234
Код:
  @SuppressWarnings({ "unchecked", "rawtypes" })
    @Override
    public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List)
    {
        par3List.add(ElectricItemHelper.getUncharged(new ItemStack(this)));
        par3List.add(ElectricItemHelper.getWithCharge(new ItemStack(this), this.getMaxElectricityStored(new ItemStack(this))));
    }
Только это из Galacticraft, в IC2 ищи другой класс вместо ElectricItemHelper
 
20
0
[12:13:38] [Client thread/INFO] [FML/]: Forge Mod Loader has identified 8 mods to load
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.event (owned by IC2 providing IC2API) embedded in armorupgrade
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.event (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.recipe (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.util (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.energy (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.energy.event (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.network (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.energy.prefab (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API mcp.mobius.waila.api (owned by Waila providing WailaAPI) embedded in Waila
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.energy.tile (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.tile (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.reactor (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.crops (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.item (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Found API ic2.api.info (owned by IC2 providing IC2API) embedded in IC2
[12:13:38] [Client thread/DEBUG] [FML/]: Creating API container dummy for API WailaAPI: owner: Waila, dependents: []
[12:13:38] [Client thread/DEBUG] [FML/]: Creating API container dummy for API IC2API: owner: IC2, dependents: [armorupgrade]
[12:13:38] [Client thread/TRACE] [FML/]: Received a system property request ''
[12:13:38] [Client thread/TRACE] [FML/]: System property request managing the state of 0 mods
[12:13:38] [Client thread/DEBUG] [FML/]: After merging, found state information for 0 mods
[12:13:39] [Client thread/DEBUG] [FML/]: Found translations in forge-1.7.10-10.13.4.1448.jar [en_US, en_US, es_ES, fr_FR, ru_RU, de_DE, af_ZA, ar_SA, br_FR, ca_ES, cs_CZ, da_DK, el_GR, fa_IR, fi_FI, he_IL, hu_HU, it_IT, ja_JP, ko_KR, lt_LT, nb_NO, nl_NL, nn_NO, no_NO, pl_PL, pt_BR, pt_PT, ro_RO, sl_SI, sr_SP, sv_SE, tr_TR, uk_UA, vi_VN, zh_CN, zh_TW]
[12:13:39] [Client thread/DEBUG] [FML/]: Found translations in forge-1.7.10-10.13.4.1448.jar [en_US, en_US, es_ES, fr_FR, ru_RU, de_DE, af_ZA, ar_SA, br_FR, ca_ES, cs_CZ, da_DK, el_GR, fa_IR, fi_FI, he_IL, hu_HU, it_IT, ja_JP, ko_KR, lt_LT, nb_NO, nl_NL, nn_NO, no_NO, pl_PL, pt_BR, pt_PT, ro_RO, sl_SI, sr_SP, sv_SE, tr_TR, uk_UA, vi_VN, zh_CN, zh_TW]
[12:13:39] [Client thread/DEBUG] [FML/]: Found translations in NotEnoughItems-1.7.10-1.0.5.118-universal.jar [cs_CZ, fr_FR, et_EE, zh_CN, it_IT, zh_TW, de_DE, tr_TR, ru_RU, pt_BR, sk_SK, ko_KR, pl_PL, en_US]
[12:13:39] [Client thread/DEBUG] [IC2/]: Enabling mod IC2
[12:13:39] [Client thread/DEBUG] [FML/]: Found translations in industrialcraft-2-2.2.810-experimental.jar [en_IC]
[12:13:39] [Client thread/DEBUG] [armorupgrade/]: Enabling mod armorupgrade
[12:13:39] [Client thread/DEBUG] [FML/]: Found translations in modid-1.0.jar [en_US, ru_RU]
[12:13:39] [Client thread/DEBUG] [Waila/]: Enabling mod Waila
[12:13:39] [Client thread/DEBUG] [FML/]: Found translations in Waila-1.5.10_1.7.10.jar [de_DE, ru_RU, en_US, it_IT, zh_CN, fr_FR, et_EE, nl_NL]
[12:13:39] [Client thread/TRACE] [FML/]: Verifying mod requirements are satisfied
[12:13:39] [Client thread/TRACE] [FML/]: All mod requirements are satisfied
[12:13:39] [Client thread/TRACE] [FML/]: Sorting mods into an ordered list
[12:13:39] [Client thread/TRACE] [FML/]: Mod sorting completed successfully
[12:13:39] [Client thread/DEBUG] [FML/]: Mod sorting data
[12:13:39] [Client thread/DEBUG] [FML/]: IC2(IndustrialCraft 2:2.2.810-experimental): industrialcraft-2-2.2.810-experimental.jar (required-after:Forge@[10.13.0.1200,))
[12:13:39] [Client thread/DEBUG] [FML/]: IC2API(API: IC2API:1.0): modid-1.0.jar ()
[12:13:39] [Client thread/DEBUG] [FML/]: armorupgrade(ArmorUpgrade:0.1a): modid-1.0.jar ()
[12:13:39] [Client thread/DEBUG] [FML/]: Waila(Waila:1.5.10): Waila-1.5.10_1.7.10.jar (after:NotEnoughItems@[1.0.4.0,))
[12:13:39] [Client thread/DEBUG] [FML/]: WailaAPI(API: WailaAPI:1.2): Waila-1.5.10_1.7.10.jar ()
[12:13:39] [Client thread/INFO] [FML/]: FML has found a non-mod file CodeChickenLib-1.7.10-1.1.3.138-universal.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
[12:13:39] [Client thread/TRACE] [mcp/mcp]: Sending event FMLConstructionEvent to mod mcp
[12:13:39] [Client thread/TRACE] [mcp/mcp]: Sent event FMLConstructionEvent to mod mcp
[12:13:39] [Client thread/TRACE] [FML/FML]: Sending event FMLConstructionEvent to mod FML
[12:13:39] [Client thread/TRACE] [FML/FML]: Mod FML is using network checker : Invoking method checkModLists
[12:13:39] [Client thread/TRACE] [FML/FML]: Testing mod FML to verify it accepts its own version in a remote connection
[12:13:39] [Client thread/TRACE] [FML/FML]: The mod FML accepts its own version (7.10.99.99)
[12:13:39] [Client thread/INFO] [FML/FML]: Attempting connection with missing mods [mcp, FML, Forge, CodeChickenCore, NotEnoughItems, IC2, armorupgrade, Waila] at CLIENT
[12:13:39] [Client thread/INFO] [FML/FML]: Attempting connection with missing mods [mcp, FML, Forge, CodeChickenCore, NotEnoughItems, IC2, armorupgrade, Waila] at SERVER
[12:13:39] [Client thread/TRACE] [FML/FML]: Sent event FMLConstructionEvent to mod FML
[12:13:39] [Client thread/TRACE] [Forge/Forge]: Sending event FMLConstructionEvent to mod Forge
[12:13:39] [Client thread/TRACE] [FML/Forge]: Mod Forge is using network checker : No network checking performed
[12:13:39] [Client thread/TRACE] [FML/Forge]: Testing mod Forge to verify it accepts its own version in a remote connection
[12:13:39] [Client thread/TRACE] [FML/Forge]: The mod Forge accepts its own version (10.13.4.1448)
[12:13:39] [Client thread/TRACE] [Forge/Forge]: Sent event FMLConstructionEvent to mod Forge
[12:13:39] [Client thread/TRACE] [CodeChickenCore/CodeChickenCore]: Sending event FMLConstructionEvent to mod CodeChickenCore
[12:13:39] [Client thread/TRACE] [CodeChickenCore/CodeChickenCore]: Sent event FMLConstructionEvent to mod CodeChickenCore
[12:13:39] [Client thread/TRACE] [NotEnoughItems/NotEnoughItems]: Sending event FMLConstructionEvent to mod NotEnoughItems
[12:13:39] [Client thread/TRACE] [NotEnoughItems/NotEnoughItems]: Sent event FMLConstructionEvent to mod NotEnoughItems
[12:13:39] [Client thread/TRACE] [IC2/IC2]: Sending event FMLConstructionEvent to mod IC2
[12:13:39] [Client thread/TRACE] [FML/IC2]: Mod IC2 is using network checker : Accepting version 2.2.810-experimental
[12:13:39] [Client thread/TRACE] [FML/IC2]: Testing mod IC2 to verify it accepts its own version in a remote connection
[12:13:39] [Client thread/TRACE] [FML/IC2]: The mod IC2 accepts its own version (2.2.810-experimental)
[12:13:39] [Client thread/DEBUG] [FML/IC2]: Attempting to inject @SidedProxy classes into IC2
[12:13:39] [Client thread/TRACE] [IC2/IC2]: Sent event FMLConstructionEvent to mod IC2
[12:13:39] [Client thread/TRACE] [armorupgrade/armorupgrade]: Sending event FMLConstructionEvent to mod armorupgrade
[12:13:39] [Client thread/TRACE] [FML/armorupgrade]: Mod armorupgrade is using network checker : Accepting version 0.1a
[12:13:39] [Client thread/TRACE] [FML/armorupgrade]: Testing mod armorupgrade to verify it accepts its own version in a remote connection
[12:13:39] [Client thread/TRACE] [FML/armorupgrade]: The mod armorupgrade accepts its own version (0.1a)
[12:13:39] [Client thread/DEBUG] [FML/armorupgrade]: Attempting to inject @SidedProxy classes into armorupgrade
[12:13:39] [Client thread/TRACE] [armorupgrade/armorupgrade]: Sent event FMLConstructionEvent to mod armorupgrade
[12:13:39] [Client thread/TRACE] [Waila/Waila]: Sending event FMLConstructionEvent to mod Waila
[12:13:39] [Client thread/TRACE] [FML/Waila]: Mod Waila is using network checker : No network checking performed
[12:13:39] [Client thread/TRACE] [FML/Waila]: Testing mod Waila to verify it accepts its own version in a remote connection
[12:13:39] [Client thread/TRACE] [FML/Waila]: The mod Waila accepts its own version (1.5.10)
[12:13:39] [Client thread/DEBUG] [FML/Waila]: Attempting to inject @SidedProxy classes into Waila
[12:13:39] [Client thread/TRACE] [Waila/Waila]: Sent event FMLConstructionEvent to mod Waila
[12:13:39] [Client thread/DEBUG] [FML/]: Mod signature data
[12:13:39] [Client thread/DEBUG] [FML/]:   Valid Signatures:
[12:13:39] [Client thread/DEBUG] [FML/]: (e3c3d50c7c986df74c645c0ac54639741c90a557) FML (Forge Mod Loader 7.10.99.99) forge-1.7.10-10.13.4.1448.jar
[12:13:39] [Client thread/DEBUG] [FML/]: (e3c3d50c7c986df74c645c0ac54639741c90a557) Forge (Minecraft Forge 10.13.4.1448) forge-1.7.10-10.13.4.1448.jar
[12:13:39] [Client thread/DEBUG] [FML/]: (de041f9f6187debbc77034a344134053277aa3b0) IC2 (IndustrialCraft 2 2.2.810-experimental) industrialcraft-2-2.2.810-experimental.jar
[12:13:39] [Client thread/DEBUG] [FML/]:   Missing Signatures:
[12:13:39] [Client thread/DEBUG] [FML/]: mcp (Minecraft Coder Pack 9.05) minecraft.jar
[12:13:39] [Client thread/DEBUG] [FML/]: CodeChickenCore (CodeChicken Core 1.0.7.47) minecraft.jar
[12:13:39] [Client thread/DEBUG] [FML/]: NotEnoughItems (Not Enough Items 1.0.5.118) NotEnoughItems-1.7.10-1.0.5.118-universal.jar
[12:13:39] [Client thread/DEBUG] [FML/]: armorupgrade (ArmorUpgrade 0.1a) modid-1.0.jar
[12:13:39] [Client thread/DEBUG] [FML/]: Waila (Waila 1.5.10) Waila-1.5.10_1.7.10.jar
[12:13:39] [Client thread/DEBUG] [Forge Mod Loader/]: Mod Forge Mod Loader is missing a pack.mcmeta file, substituting a dummy one
[12:13:39] [Client thread/DEBUG] [Minecraft Forge/]: Mod Minecraft Forge is missing a pack.mcmeta file, substituting a dummy one
[12:13:39] [Client thread/DEBUG] [Not Enough Items/]: Mod Not Enough Items is missing a pack.mcmeta file, substituting a dummy one
[12:13:39] [Client thread/DEBUG] [ArmorUpgrade/]: Mod ArmorUpgrade is missing a pack.mcmeta file, substituting a dummy one
[12:13:39] [Client thread/DEBUG] [Waila/]: Mod Waila is missing a pack.mcmeta file, substituting a dummy one
[12:13:39] [Client thread/INFO] [FML/]: Processing ObjectHolder annotations
[12:13:39] [Client thread/INFO] [FML/]: Found 341 ObjectHolder annotations
[12:13:39] [Client thread/INFO] [FML/]: Identifying ItemStackHolder annotations
[12:13:39] [Client thread/INFO] [FML/]: Found 0 ItemStackHolder annotations
[12:13:39] [Client thread/TRACE] [mcp/mcp]: Sending event FMLPreInitializationEvent to mod mcp
[12:13:39] [Client thread/TRACE] [mcp/mcp]: Sent event FMLPreInitializationEvent to mod mcp
[12:13:39] [Client thread/TRACE] [FML/FML]: Sending event FMLPreInitializationEvent to mod FML
[12:13:39] [Client thread/TRACE] [FML/FML]: Sent event FMLPreInitializationEvent to mod FML
[12:13:39] [Client thread/TRACE] [Forge/Forge]: Sending event FMLPreInitializationEvent to mod Forge
[12:13:39] [Client thread/INFO] [FML/Forge]: Configured a dormant chunk cache size of 0
[12:13:39] [Client thread/TRACE] [Forge/Forge]: Sent event FMLPreInitializationEvent to mod Forge
[12:13:39] [Client thread/TRACE] [CodeChickenCore/CodeChickenCore]: Sending event FMLPreInitializationEvent to mod CodeChickenCore
[12:13:39] [Client thread/TRACE] [CodeChickenCore/CodeChickenCore]: Sent event FMLPreInitializationEvent to mod CodeChickenCore
[12:13:39] [Client thread/TRACE] [NotEnoughItems/NotEnoughItems]: Sending event FMLPreInitializationEvent to mod NotEnoughItems
[12:13:40] [Client thread/TRACE] [NotEnoughItems/NotEnoughItems]: Sent event FMLPreInitializationEvent to mod NotEnoughItems
[12:13:40] [Client thread/TRACE] [IC2/IC2]: Sending event FMLPreInitializationEvent to mod IC2
[12:13:40] [Client thread/DEBUG] [IC2.General/IC2]: Starting pre-init.
[12:13:40] [Client thread/DEBUG] [IC2.Audio/IC2]: Using 32 audio sources.
[12:13:40] [ic2-poolthread-1/DEBUG] [IC2.Resource/IC2]: Translations loaded from file C:\Users\tip-b\AppData\Roaming\.minecraft\mods\industrialcraft-2-2.2.810-experimental.jar.
[12:13:41] [Client thread/DEBUG] [FML/IC2]: Method ic2.core.block.TileEntityLiquidTankElectricMachine.getTankFluidId()I: Replacing GETFIELD fluidID with INVOKEVIRTUAL getFluidID
[12:13:41] [Client thread/DEBUG] [FML/IC2]: Method ic2.core.block.TileEntityLiquidTankStandardMaschine.getTankFluidId()I: Replacing GETFIELD fluidID with INVOKEVIRTUAL getFluidID
[12:13:41] [Client thread/DEBUG] [FML/IC2]: Method ic2.core.block.machine.gui.GuiCanner.func_146976_a(FII)V: Replacing GETFIELD fluidID with INVOKEVIRTUAL getFluidID
[12:13:41] [Client thread/DEBUG] [FML/IC2]: Method ic2.core.block.machine.gui.GuiCanner.func_146976_a(FII)V: Replacing GETFIELD fluidID with INVOKEVIRTUAL getFluidID
[12:13:41] [Client thread/DEBUG] [FML/IC2]: Method ic2.core.block.machine.gui.GuiLiquidHeatExchanger.func_146976_a(FII)V: Replacing GETFIELD fluidID with INVOKEVIRTUAL getFluidID
[12:13:41] [Client thread/DEBUG] [FML/IC2]: Method ic2.core.block.machine.gui.GuiLiquidHeatExchanger.func_146976_a(FII)V: Replacing GETFIELD fluidID with INVOKEVIRTUAL getFluidID
[12:13:41] [Client thread/DEBUG] [FML/IC2]: Method ic2.core.AdvRecipe.expand(Ljava/lang/Object;)Ljava/util/List;: Replacing GETFIELD fluidID with INVOKEVIRTUAL getFluidID
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity MiningLaser as IC2.MiningLaser
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity Dynamite as IC2.Dynamite
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity StickyDynamite as IC2.StickyDynamite
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity Itnt as IC2.Itnt
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity Nuke as IC2.Nuke
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity BoatCarbon as IC2.BoatCarbon
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity BoatRubber as IC2.BoatRubber
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity BoatElectric as IC2.BoatElectric
[12:13:41] [Client thread/TRACE] [FML/IC2]: Automatically registered mod IC2 entity Particle as IC2.Particle
[12:13:41] [Client thread/DEBUG] [IC2.General/IC2]: Finished pre-init after 1904 ms.
[12:13:41] [Client thread/TRACE] [IC2/IC2]: Sent event FMLPreInitializationEvent to mod IC2
[12:13:41] [Client thread/TRACE] [armorupgrade/armorupgrade]: Sending event FMLPreInitializationEvent to mod armorupgrade
[12:13:41] [Client thread/TRACE] [armorupgrade/armorupgrade]: Sent event FMLPreInitializationEvent to mod armorupgrade
[12:13:41] [Client thread/TRACE] [Waila/Waila]: Sending event FMLPreInitializationEvent to mod Waila
[12:13:41] [Client thread/TRACE] [Waila/Waila]: Sent event FMLPreInitializationEvent to mod Waila
[12:13:41] [Client thread/INFO] [FML/]: Applying holder lookups
[12:13:41] [Client thread/INFO] [FML/]: Holder lookups applied
[12:13:41] [Client thread/INFO] [FML/]: Injecting itemstacks
[12:13:41] [Client thread/INFO] [FML/]: Itemstack injection complete
[12:13:41] [Client thread/ERROR] [FML/]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[12:13:41] [Client thread/ERROR] [FML/]: 
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCH FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1448.jar) 
UCH Forge{10.13.4.1448} [Minecraft Forge] (forge-1.7.10-10.13.4.1448.jar) 
UCH CodeChickenCore{1.0.7.47} [CodeChicken Core] (minecraft.jar) 
UCH NotEnoughItems{1.0.5.118} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.5.118-universal.jar) 
UCH IC2{2.2.810-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.810-experimental.jar) 
UCE armorupgrade{0.1a} [ArmorUpgrade] (modid-1.0.jar) 
UCH Waila{1.5.10} [Waila] (Waila-1.5.10_1.7.10.jar) 
[12:13:41] [Client thread/ERROR] [FML/]: The following problems were captured during this phase
[12:13:42] [Client thread/ERROR] [FML/]: Caught exception from armorupgrade
java.lang.NullPointerException: Can't add null-object to the registry, name armorupgrade:QuantumCrystal.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:355) ~[FMLControlledNamespacedRegistry.class:?]
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:845) ~[GameData.class:?]
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808) ~[GameData.class:?]
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149) ~[GameRegistry.class:?]
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137) ~[GameRegistry.class:?]
at armorupgrade.core.ItemList.items(ItemList.java:59) ~[ItemList.class:?]
at armorupgrade.core.MainInfo.preLoad(MainInfo.java:19) ~[MainInfo.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forge-1.7.10-10.13.4.1448.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-16.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-16.0.jar:?]
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forge-1.7.10-10.13.4.1448.jar:?]
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forge-1.7.10-10.13.4.1448.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-16.0.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-16.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-16.0.jar:?]
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) [bao.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
[12:13:42] [Client thread/INFO] [STDOUT/]: [net.minecraft.client.Minecraft:func_71377_b:349]: ---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 15.01.16 12:13
Description: Initializing game

java.lang.NullPointerException: Can't add null-object to the registry, name armorupgrade:QuantumCrystal.
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:355)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:845)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
at armorupgrade.core.ItemList.items(ItemList.java:59)
at armorupgrade.core.MainInfo.preLoad(MainInfo.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:355)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:845)
at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:808)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149)
at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137)
at armorupgrade.core.ItemList.items(ItemList.java:59)
at armorupgrade.core.MainInfo.preLoad(MainInfo.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_66, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 163018424 bytes (155 MB) / 284205056 bytes (271 MB) up to 2134114304 bytes (2035 MB)
JVM Flags: 11 total; -XX:HeapDumpPath=ThisTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2048M -Xmn128M -XX:+UseConcMarkSweepGC -XX:-UseAdaptiveSizePolicy -XX:-UseGCOverheadLimit -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseCMSInitiatingOccupancyOnly -Xms256M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 8 mods loaded, 8 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
UCH FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1448.jar) 
UCH Forge{10.13.4.1448} [Minecraft Forge] (forge-1.7.10-10.13.4.1448.jar) 
UCH CodeChickenCore{1.0.7.47} [CodeChicken Core] (minecraft.jar) 
UCH NotEnoughItems{1.0.5.118} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.5.118-universal.jar) 
UCH IC2{2.2.810-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.810-experimental.jar) 
UCE armorupgrade{0.1a} [ArmorUpgrade] (modid-1.0.jar) 
UCH Waila{1.5.10} [Waila] (Waila-1.5.10_1.7.10.jar) 
Launched Version: Forge 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GTX 650/PCIe/SSE2 GL version 4.5.0 NVIDIA 355.60, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (UK)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
[12:13:42] [Client thread/INFO] [STDOUT/]: [net.minecraft.client.Minecraft:func_71377_b:359]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\tip-b\AppData\Roaming\.minecraft\crash-reports\crash-2016-01-15_12.13.42-client.txt
[merge_posts_bbcode]Добавлено: 15.01.2016 13:20:49[/merge_posts_bbcode]

на 59 строке в ItemList у меня:

Код:
GameRegistry.registerItem(QuantumCrystal, "QuantumCrystal");


на 19 строке в ModInfo у меня:
Код:
@EventHandler
    public void preLoad(FMLPreInitializationEvent event)
    {
        ItemList.items();
        Recipe.recipe(); <--- вот эта строчка
    }
 
20
0
дело в том что оно не может зарегистрировать вещь. Я добавляю GameRegistry.registerItem(QuantumCrystal, "QuantumCrystal"); в ItemList а оно попрасту не хочет зарегистрировать но ошибок не пишет. Плюс ко всему оно не импортирует эту вещь, ввожу вручную импорт не работает, при нажатии ctrl+shift+O уберает мой написанный импорт. Прошу помощи.

Код:
package armorupgrade.core;

import armorupgrade.core.item.LapotronCrystalX5;
import armorupgrade.core.item.MetaItemBoard;
import armorupgrade.core.item.Silicon;
import armorupgrade.core.item.SiliconRubber;
import armorupgrade.core.item.energy.AdvancedEnergyCircuit;
import armorupgrade.core.item.energy.EnergyCircuit;
import armorupgrade.core.item.energy.HybridEnergyCircuit;
import armorupgrade.core.item.energy.QuantumEnergyCircuit;
import armorupgrade.core.item.energy.UltimateEnergyCircuit;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item;

public class ItemList {

    public static Item Silicon;
    public static Item SiliconRubber;
    public static Item LapotronCrystalX5;
    public static Item MetaItemBoard;
    public static Item EnergyCircuit;
    public static Item AdvancedEnergyCircuit;
    public static Item HybridEnergyCircuit;
    public static Item UltimateEnergyCircuit;
    public static Item QuantumEnergyCircuit;
    public static Item QuantumCrystal;
    
    public static void items() {
        //OtherItems
        Silicon = new Silicon().setUnlocalizedName("Silicon");
        GameRegistry.registerItem(Silicon, "Silicon");
        
        SiliconRubber = new SiliconRubber().setUnlocalizedName("SiliconRubber");
        GameRegistry.registerItem(SiliconRubber, "SiliconRubber");
        
        LapotronCrystalX5 = new LapotronCrystalX5().setUnlocalizedName("LapotronCrystalX5");
        GameRegistry.registerItem(LapotronCrystalX5, "LapotronCrystalX5");
        
        GameRegistry.registerItem(MetaItemBoard = new MetaItemBoard("MetaItemBoard"), "MetaItemBoard");
        
        //BoardEnergy
        EnergyCircuit = new EnergyCircuit().setUnlocalizedName("EnergyCircuit");
        GameRegistry.registerItem(EnergyCircuit, "EnergyCircuit");
        
        AdvancedEnergyCircuit = new AdvancedEnergyCircuit().setUnlocalizedName("AdvancedEnergyCircuit");
        GameRegistry.registerItem(AdvancedEnergyCircuit, "AdvancedEnergyCircuit");
        
        HybridEnergyCircuit = new HybridEnergyCircuit().setUnlocalizedName("HybridEnergyCircuit");
        GameRegistry.registerItem(HybridEnergyCircuit, "HybridEnergyCircuit");
        
        UltimateEnergyCircuit = new UltimateEnergyCircuit().setUnlocalizedName("UltimateEnergyCircuit");
        GameRegistry.registerItem(UltimateEnergyCircuit, "UltimateEnergyCircuit");
        
        QuantumEnergyCircuit = new QuantumEnergyCircuit().setUnlocalizedName("QuantumEnergyCircuit");
        GameRegistry.registerItem(QuantumEnergyCircuit, "QuantumEnergyCircuit");
        
        //QuantumCrystal = new QuantumCrystal();
        GameRegistry.registerItem(QuantumCrystal, "QuantumCrystal");
        
    }

}
 
212
0
Код:
//QuantumCrystal = new QuantumCrystal();
        GameRegistry.registerItem(QuantumCrystal, "QuantumCrystal");

Ты зачем закоментил? Это у тебя в коде так? Если да, убери слэши
 
20
0
нет тут был setUnlocalizedName который я засунул в саму вещь !
 
212
0
Нажми верхнее,затем напиши название предмета в ковычках и 2 числа(без понятия за что они отвечают) через запятую
 
20
0
первое это maxEnergy второе transfer

но это все не то, мне нужно сделать так чтобы у меня был заряженный и разряженный предмет как в IC2
 
1,057
50
234
@SideOnly(Side.CLIENT)
public void getSubItems(Item item, CreativeTabs tabs, List itemList) {
itemList.add(this.getItemStack(Double.POSITIVE_INFINITY));
itemList.add(this.getItemStack(0.0D));
}
 
20
0
всем спасибо, получилось !! Если что нужно кому !
Код:
        @SuppressWarnings({ "rawtypes", "unchecked" })
        @Override
        @SideOnly(Side.CLIENT)
        public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List itemList) {
            ItemStack itemStack = new ItemStack(this, 1);

            if (getChargedItem(itemStack) == this) {
                ItemStack charged = new ItemStack(this, 1);
                ElectricItem.manager.charge(charged, this.maxEnergy, 1, true, false);
                itemList.add(charged);
            }

            if (getEmptyItem(itemStack) == this) {
                ItemStack charged = new ItemStack(this, 1);
                ElectricItem.manager.charge(charged, 0, 1, true, false);
                itemList.add(charged);
            }
        }
можно закрывать
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху