Jump to content

Custom furnace problem


Nieue

Recommended Posts

hello, I've recently created a custom furnace (combiner) in my mod. and I have 0 errors on every class, but when I load up minecraft from within eclipse it gives a black screen.

 

Here are all of the classes that I created/edited for it

 

Mainclass:

 

package mods.DennisMod.COMMON;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockFurnace;

import net.minecraft.block.BlockOre;

import net.minecraft.block.BlockOreStorage;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemArmor;

import net.minecraft.item.ItemAxe;

import net.minecraft.item.ItemHoe;

import net.minecraft.item.ItemPickaxe;

import net.minecraft.item.ItemSpade;

import net.minecraft.item.ItemStack;

import net.minecraft.item.ItemSword;

import net.minecraft.item.crafting.FurnaceRecipes;

import net.minecraft.world.World;

import net.minecraftforge.common.Configuration;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.network.NetworkRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import net.minecraft.block.material.Material;

 

 

@Mod(modid = "MoGems",name = "Mo' Gems and Ingots", version = "0.3.1")

@NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = {"DennisMod"}, packetHandler = ModPacketHandler.class)

public class MoGems

{

 

public final static EnumToolMaterial DENNIS = EnumHelper.addToolMaterial("DENNIS", 3, 2500, 10.0F, 6, 10);

public final static EnumToolMaterial AMETHYST = EnumHelper.addToolMaterial("AMETHYST", 3, 5000, 25.0F, 15, 10);

public final static EnumToolMaterial MANGANESE = EnumHelper.addToolMaterial("MANGANESE", 3, 1000, 12.0F, 3, 12);

public final static EnumArmorMaterial EMERALD = EnumHelper.addArmorMaterial("EMERALD", 55, new int[]{4, 9, 5, 2}, 20);

 

@PreInit

public void preInit(FMLInitializationEvent event) {

 

}

 

public final static Item EmeraldSword = new ItemSword(6320, DENNIS).setMaxStackSize(1).setUnlocalizedName("emeraldsword");

public final static Item EmeraldPickaxe = new ItemPickaxe(6321, DENNIS).setMaxStackSize(1).setUnlocalizedName("emeraldpickaxe");

public final static Item EmeraldAxe = new ItemAxe(6322, DENNIS).setMaxStackSize(1).setUnlocalizedName("emeraldaxe");

public final static Item EmeraldShovel = new ItemSpade(6323, DENNIS).setMaxStackSize(1).setUnlocalizedName("emeraldshovel");

public final static Item EmeraldHoe = new ItemHoe(6324, DENNIS).setMaxStackSize(1).setUnlocalizedName("emeraldhoe");

public static Item EmeraldHelm  = new ItemArmor(6337, EMERALD, 5, 0).setMaxStackSize(1).setUnlocalizedName("emeraldhelmet");

public static Item EmeraldChest = new ItemArmor(6338, EMERALD, 5, 1).setMaxStackSize(1).setUnlocalizedName("emeraldchestplate");

public static Item EmeraldLegs = new ItemArmor(6339, EMERALD, 5, 2).setMaxStackSize(1).setUnlocalizedName("emeraldpants");

public static Item EmeraldBoots = new ItemArmor(6340, EMERALD, 5, 3).setMaxStackSize(1).setUnlocalizedName("emeraldboots");

 

 

public final static Item AmethystSword = new ItemSword(6326, AMETHYST).setMaxStackSize(1).setUnlocalizedName("amethystsword");

public final static Item AmethystPickaxe = new ItemPickaxe(6327, AMETHYST).setMaxStackSize(1).setUnlocalizedName("amethystpickaxe");

public final static Item AmethystAxe = new ItemAxe(6328, AMETHYST).setMaxStackSize(1).setUnlocalizedName("amethystaxe");

public final static Item AmethystShovel = new ItemSpade(6329, AMETHYST).setMaxStackSize(1).setUnlocalizedName("amethystshovel");

public final static Item AmethystHoe = new ItemHoe(6330, AMETHYST).setMaxStackSize(1).setUnlocalizedName("amethysthoe");

public final static Item Amethyst = new Amethyst(6325).setUnlocalizedName("amethyst");

public final static Block AmethystBlock = new AmethystBlock(4061).setHardness(5.0F).setResistance(10.0F).setUnlocalizedName("amethystblock");

 

 

public final static Block ManganeseOre = new BlockOre(4060).setHardness(5.0F).setResistance(10.0F).setUnlocalizedName("manganeseore");

public final static Item ManganeseIngot = new ManganeseIngot(6331).setUnlocalizedName("manganeseingot");

    public final static Item ManganeseSword = new ItemSword(6332, MANGANESE).setMaxStackSize(1).setUnlocalizedName("manganesesword"); 

    public final static Item ManganesePickaxe = new ItemPickaxe(6333, MANGANESE).setMaxStackSize(1).setUnlocalizedName("manganesepickaxe");

public final static Item ManganeseAxe = new ItemAxe(6334, MANGANESE).setMaxStackSize(1).setUnlocalizedName("manganeseaxe");

public final static Item ManganeseShovel = new ItemSpade(6335, MANGANESE).setMaxStackSize(1).setUnlocalizedName("manganeseshovel");

public final static Item ManganeseHoe = new ItemHoe(6336, MANGANESE).setMaxStackSize(1).setUnlocalizedName("manganesehoe");

public final static Block ManganeseBlock = new ManganeseBlock(4071).setHardness(5.0F).setResistance(10.0F).setUnlocalizedName("manganeseblock");

 

 

 

public final static CreativeTabs MoGems = new MoGemsTab(CreativeTabs.getNextID(), EmeraldSword.itemID, "MoGems", "Mo' Gems and Ingots");

 

private static final String armorFilenamePrefix[] = {

 

        "cloth", "chain", "iron", "diamond", "gold", "emerald"

 

    };

 

 

@SidedProxy(clientSide = "mods.DennisMod.client.ClientProxy", serverSide = "mods.DennisMod.common.CommonProxy")

public static CommonProxy Proxy;

 

@Instance

public static MoGems instance = new MoGems();

 

private GuiHandler guihandler = new GuiHandler();

 

public static Block CombinerIdle;

public static Block CombinerLit;

 

@Init

public void load(FMLInitializationEvent event)

{

GameRegistry.registerWorldGenerator(new ModGenerator());

 

CombinerIdle = new Combiner(7040, false).setHardness(3.5F).setUnlocalizedName("combineridle");

CombinerLit = new Combiner(7041, false).setHardness(3.5F).setUnlocalizedName("combinerlit");

 

EmeraldSword.setCreativeTab(MoGems);

EmeraldPickaxe.setCreativeTab(MoGems);

EmeraldAxe.setCreativeTab(MoGems);

EmeraldShovel.setCreativeTab(MoGems);

EmeraldHoe.setCreativeTab(MoGems);

EmeraldHelm.setCreativeTab(MoGems);

EmeraldChest.setCreativeTab(MoGems);

EmeraldLegs.setCreativeTab(MoGems);

EmeraldBoots.setCreativeTab(MoGems);

Amethyst.setCreativeTab(MoGems);

AmethystSword.setCreativeTab(MoGems);

AmethystPickaxe.setCreativeTab(MoGems);

AmethystAxe.setCreativeTab(MoGems);

AmethystShovel.setCreativeTab(MoGems);

AmethystHoe.setCreativeTab(MoGems);

AmethystBlock.setCreativeTab(MoGems);

ManganeseSword.setCreativeTab(MoGems);

ManganesePickaxe.setCreativeTab(MoGems);

ManganeseAxe.setCreativeTab(MoGems);

ManganeseShovel.setCreativeTab(MoGems);

ManganeseHoe.setCreativeTab(MoGems);

ManganeseOre.setCreativeTab(MoGems);

ManganeseIngot.setCreativeTab(MoGems);

ManganeseBlock.setCreativeTab(MoGems);

 

 

LanguageRegistry.addName(EmeraldSword, "Emerald Sword");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldPickaxe, "Emerald Pickaxe");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldAxe, "Emerald Axe");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldShovel, "Emerald Shovel");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldHoe, "Emerald Hoe");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldHelm, "Emerald Helmet");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldChest, "Emerald Chestplate");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldLegs, "Emerald Leggings");

Proxy.registerRendering();

LanguageRegistry.addName(EmeraldBoots, "Emerald Boots");

Proxy.registerRendering();

 

LanguageRegistry.addName(Amethyst, "Amethyst");

Proxy.registerRendering();

LanguageRegistry.addName(AmethystSword, "Amethyst Sword");

Proxy.registerRendering();

LanguageRegistry.addName(AmethystPickaxe, "Amethyst Pickaxe");

Proxy.registerRendering();

LanguageRegistry.addName(AmethystAxe, "Amethyst Axe");

Proxy.registerRendering();

LanguageRegistry.addName(AmethystShovel, "Amethyst Shovel");

Proxy.registerRendering();

LanguageRegistry.addName(AmethystHoe, "Amethyst Hoe");

Proxy.registerRendering();

LanguageRegistry.addName(AmethystBlock, "Amethyst Block");

Proxy.registerRendering();

 

LanguageRegistry.addName(ManganeseOre, "Manganese Ore");

Proxy.registerRendering();

LanguageRegistry.addName(ManganeseIngot, "Manganese Ingot");

Proxy.registerRendering();

LanguageRegistry.addName(ManganeseSword, "Manganese Sword");

Proxy.registerRendering();

LanguageRegistry.addName(ManganesePickaxe, "Manganese Pickaxe");

Proxy.registerRendering();

LanguageRegistry.addName(ManganeseAxe, "Manganese Axe");

Proxy.registerRendering();

LanguageRegistry.addName(ManganeseShovel, "Manganese Shovel");

Proxy.registerRendering();

LanguageRegistry.addName(ManganeseHoe, "Manganese Hoe");

Proxy.registerRendering();

LanguageRegistry.addName(ManganeseBlock, "Manganese Block");

Proxy.registerRendering();

LanguageRegistry.addName(CombinerIdle,"Material Combiner Idle");

Proxy.registerRendering();

LanguageRegistry.addName(CombinerLit, "Material Combiner Lit");

Proxy.registerRendering();

 

 

GameRegistry.registerBlock(AmethystBlock, "Amethyst.AmethystBlock");

GameRegistry.registerBlock(ManganeseOre, "Manganese.ManganeseOre");

GameRegistry.registerBlock(ManganeseBlock, "Manganese.ManganeseBlock");

GameRegistry.registerBlock(CombinerIdle, "Combiner.CombinerIdle");

GameRegistry.registerBlock(CombinerLit, "Combiner.CombinerLit");

 

GameRegistry.registerTileEntity(TileEntityCombiner.class, "TileEntityCombiner");

 

NetworkRegistry.instance().registerGuiHandler(this, guihandler);

 

MinecraftForge.setBlockHarvestLevel(ManganeseOre, "pickaxe", 3);

MinecraftForge.setBlockHarvestLevel(AmethystBlock, "pickaxe", 2);

 

ItemStack ema = new ItemStack(Item.emerald);

ItemStack stick = new ItemStack(Item.stick);

ItemStack quartz = new ItemStack(Item.netherQuartz);

ItemStack ame = new ItemStack(Amethyst);

ItemStack cha = new ItemStack(Item.coal, 1, 1);

ItemStack man = new ItemStack(ManganeseIngot);

ItemStack map = new ItemStack(ManganesePickaxe);

ItemStack maa = new ItemStack(ManganeseAxe);

ItemStack mas = new ItemStack(ManganeseShovel);

ItemStack mah = new ItemStack(ManganeseHoe);

ItemStack msw = new ItemStack(ManganeseSword);

ItemStack bmn = new ItemStack(ManganeseBlock);

 

GameRegistry.addRecipe(new ItemStack (EmeraldSword), "e", "e", "s",

's', stick, 'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldPickaxe), "eee", " s ", " s ",

's', stick, 'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldAxe), "ee ", "es ", " s ",

's', stick, 'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldShovel), " e ", " s ", " s ",

's', stick, 'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldHoe), "ee ", " s ", " s ",

's', stick, 'e', ema);

GameRegistry.addRecipe(new ItemStack (Amethyst), "eqe", "qeq", "eqe",

'q', quartz, 'e', ema);

GameRegistry.addRecipe(new ItemStack (AmethystSword), "a", "a", "s",

'a', ame, 's', stick);

GameRegistry.addRecipe(new ItemStack (AmethystPickaxe), "aaa", " s ", " s ",

'a', ame, 's', stick);

GameRegistry.addRecipe(new ItemStack (AmethystAxe), "aa ", "as ", " s ",

'a', ame, 's', stick);

GameRegistry.addRecipe(new ItemStack (AmethystShovel)," a ", " s ", " s ",

'a', ame, 's', stick);

GameRegistry.addRecipe(new ItemStack (AmethystHoe), "aa ", " s ", " s ",

'a', ame, 's', stick);

GameRegistry.addRecipe(new ItemStack (AmethystBlock), "aaa", "aaa", "aaa",

'a', ame);

GameRegistry.addRecipe(new ItemStack(ManganeseSword), "m", "m", "s",

'm', man, 's', stick);

GameRegistry.addRecipe(new ItemStack(ManganesePickaxe), "mmm", " s ", " s ",

'm', man, 's', stick);

GameRegistry.addRecipe(new ItemStack(ManganeseAxe), "mm ", "ms ", " s ",

'm', man, 's', stick);

GameRegistry.addRecipe(new ItemStack(ManganeseShovel), " m ", " s ", " s ",

'm', man, 's', stick);

GameRegistry.addRecipe(new ItemStack(ManganeseHoe), "mm ", " s ", " s ",

'm', man, 's', stick);

GameRegistry.addRecipe(new ItemStack (EmeraldHelm), "eee", "e e", "  ",

'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldHelm), "  ", "eee", "e e",

'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldChest), "e e", "eee", "eee",

'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldLegs), "eee", "e e", "e e",

'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldBoots), "e e", "e e", "  ",

'e', ema);

GameRegistry.addRecipe(new ItemStack (EmeraldBoots), "  ", "e e", "e e",

'e', ema);

GameRegistry.addRecipe(new ItemStack (ManganeseBlock), "iii", "iii", "iii",

'i', man);

 

GameRegistry.addShapelessRecipe(new ItemStack(Amethyst, 9), new Object[]{

new ItemStack(AmethystBlock)

});

}{;

GameRegistry.addShapelessRecipe(new ItemStack (ManganeseIngot, 9), new Object[]{

new ItemStack(ManganeseBlock)

}

 

);

FurnaceRecipes.smelting().addSmelting(ManganeseOre.blockID, 0, new ItemStack(ManganeseIngot), 0.1F);

 

 

 

}

}

 

 

 

Combiner class

 

package mods.DennisMod.COMMON;

 

import java.util.Random;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockContainer;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.entity.EntityLiving;

import net.minecraft.entity.item.EntityItem;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.inventory.Container;

import net.minecraft.inventory.IInventory;

import net.minecraft.item.ItemStack;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.tileentity.TileEntity;

import net.minecraft.util.Icon;

import net.minecraft.util.MathHelper;

import net.minecraft.world.World;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class Combiner extends BlockContainer

{

    /**

    * Is the random generator used by furnace to drop the inventory contents in random directions.

    */

    private final Random furnaceRand = new Random();

 

    /** True if this is an active furnace, false if idle */

    private final boolean isActive;

 

    /**

    * This flag is used to prevent the furnace inventory to be dropped upon block removal, is used internally when the

    * furnace block changes from idle to active and vice-versa.

    */

    private static boolean keepFurnaceInventory = false;

    @SideOnly(Side.CLIENT)

    private Icon field_94458_cO;

    @SideOnly(Side.CLIENT)

    private Icon field_94459_cP;

 

    protected Combiner(int par1, boolean par2)

    {

        super(par1, Material.rock);

        this.isActive = par2;

    }

 

    /**

    * Returns the ID of the items to drop on destruction.

    */

    public int idDropped(int par1, Random par2Random, int par3)

    {

        return MoGems.CombinerIdle.blockID;

    }

 

    /**

    * Called whenever the block is added into the world. Args: world, x, y, z

    */

    public void onBlockAdded(World par1World, int par2, int par3, int par4)

    {

        super.onBlockAdded(par1World, par2, par3, par4);

        this.setDefaultDirection(par1World, par2, par3, par4);

    }

 

    /**

    * set a blocks direction

    */

    private void setDefaultDirection(World par1World, int par2, int par3, int par4)

    {

        if (!par1World.isRemote)

        {

            int l = par1World.getBlockId(par2, par3, par4 - 1);

            int i1 = par1World.getBlockId(par2, par3, par4 + 1);

            int j1 = par1World.getBlockId(par2 - 1, par3, par4);

            int k1 = par1World.getBlockId(par2 + 1, par3, par4);

            byte b0 = 3;

 

            if (Block.opaqueCubeLookup[l] && !Block.opaqueCubeLookup[i1])

            {

                b0 = 3;

            }

 

            if (Block.opaqueCubeLookup[i1] && !Block.opaqueCubeLookup[l])

            {

                b0 = 2;

            }

 

            if (Block.opaqueCubeLookup[j1] && !Block.opaqueCubeLookup[k1])

            {

                b0 = 5;

            }

 

            if (Block.opaqueCubeLookup[k1] && !Block.opaqueCubeLookup[j1])

            {

                b0 = 4;

            }

 

            par1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 2);

        }

    }

 

    @SideOnly(Side.CLIENT)

 

    /**

    * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata

    */

    public Icon getBlockTextureFromSideAndMetadata(int par1, int par2)

    {

        return par1 == 1 ? this.field_94458_cO : (par1 == 0 ? this.field_94458_cO : (par1 != par2 ? this.blockIcon : this.field_94459_cP));

    }

 

    @SideOnly(Side.CLIENT)

 

    /**

    * When this method is called, your block should register all the icons it needs with the given IconRegister. This

    * is the only chance you get to register icons.

    */

    public void registerIcons(IconRegister par1IconRegister)

    {

        this.blockIcon = par1IconRegister.registerIcon("furnace_side");

        this.field_94459_cP = par1IconRegister.registerIcon(this.isActive ? "furnace_front_lit" : "furnace_front");

        this.field_94458_cO = par1IconRegister.registerIcon("furnace_top");

    }

 

    /**

    * Called upon block activation (right click on the block.)

    */

@Override

public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float f, float g, float t) {

TileEntity tile_entity = world.getBlockTileEntity(x, y, z);

 

if (tile_entity == null || player.isSneaking()) {

 

return false;

}

 

player.openGui(MoGems.instance, 0, world, x, y, z);

 

return true;

}

 

    /**

    * Update which block ID the furnace is using depending on whether or not it is burning

    */

    public static void updateFurnaceBlockState(boolean par0, World par1World, int par2, int par3, int par4)

    {

        int l = par1World.getBlockMetadata(par2, par3, par4);

        TileEntity tileentity = par1World.getBlockTileEntity(par2, par3, par4);

        keepFurnaceInventory = true;

 

        if (par0)

        {

            par1World.setBlock(par2, par3, par4, MoGems.CombinerLit.blockID);

        }

        else

        {

            par1World.setBlock(par2, par3, par4, MoGems.CombinerIdle.blockID);

        }

 

        keepFurnaceInventory = false;

        par1World.setBlockMetadataWithNotify(par2, par3, par4, l, 2);

 

        if (tileentity != null)

        {

            tileentity.validate();

            par1World.setBlockTileEntity(par2, par3, par4, tileentity);

        }

    }

 

    @SideOnly(Side.CLIENT)

 

    /**

    * A randomly called display update to be able to add particles or other items for display

    */

    public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)

    {

        if (this.isActive)

        {

            int l = par1World.getBlockMetadata(par2, par3, par4);

            float f = (float)par2 + 0.5F;

            float f1 = (float)par3 + 0.0F + par5Random.nextFloat() * 6.0F / 16.0F;

            float f2 = (float)par4 + 0.5F;

            float f3 = 0.52F;

            float f4 = par5Random.nextFloat() * 0.6F - 0.3F;

 

            if (l == 4)

            {

                par1World.spawnParticle("smoke", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);

                par1World.spawnParticle("flame", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);

            }

            else if (l == 5)

            {

                par1World.spawnParticle("smoke", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);

                par1World.spawnParticle("flame", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D);

            }

            else if (l == 2)

            {

                par1World.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D);

                par1World.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D);

            }

            else if (l == 3)

            {

                par1World.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D);

                par1World.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D);

            }

        }

    }

 

    /**

    * Returns a new instance of a block's tile entity class. Called on placing the block.

    */

    public TileEntity createNewTileEntity(World par1World)

    {

        return new TileEntityCombiner();

    }

 

    /**

    * Called when the block is placed in the world.

    */

    public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack)

    {

        int l = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;

 

        if (l == 0)

        {

            par1World.setBlockMetadataWithNotify(par2, par3, par4, 2, 2);

        }

 

        if (l == 1)

        {

            par1World.setBlockMetadataWithNotify(par2, par3, par4, 5, 2);

        }

 

        if (l == 2)

        {

            par1World.setBlockMetadataWithNotify(par2, par3, par4, 3, 2);

        }

 

        if (l == 3)

        {

            par1World.setBlockMetadataWithNotify(par2, par3, par4, 4, 2);

        }

 

        if (par6ItemStack.hasDisplayName())

        {

            ((TileEntityCombiner)par1World.getBlockTileEntity(par2, par3, par4)).func_94129_a(par6ItemStack.getDisplayName());

        }

    }

 

    /**

    * ejects contained items into the world, and notifies neighbours of an update, as appropriate

    */

    public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)

    {

        if (!keepFurnaceInventory)

        {

        TileEntityCombiner tileentityfurnace = (TileEntityCombiner)par1World.getBlockTileEntity(par2, par3, par4);

 

            if (tileentityfurnace != null)

            {

                for (int j1 = 0; j1 < tileentityfurnace.getSizeInventory(); ++j1)

                {

                    ItemStack itemstack = tileentityfurnace.getStackInSlot(j1);

 

                    if (itemstack != null)

                    {

                        float f = this.furnaceRand.nextFloat() * 0.8F + 0.1F;

                        float f1 = this.furnaceRand.nextFloat() * 0.8F + 0.1F;

                        float f2 = this.furnaceRand.nextFloat() * 0.8F + 0.1F;

 

                        while (itemstack.stackSize > 0)

                        {

                            int k1 = this.furnaceRand.nextInt(21) + 10;

 

                            if (k1 > itemstack.stackSize)

                            {

                                k1 = itemstack.stackSize;

                            }

 

                            itemstack.stackSize -= k1;

                            EntityItem entityitem = new EntityItem(par1World, (double)((float)par2 + f), (double)((float)par3 + f1), (double)((float)par4 + f2), new ItemStack(itemstack.itemID, k1, itemstack.getItemDamage()));

 

                            if (itemstack.hasTagCompound())

                            {

                                entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());

                            }

 

                            float f3 = 0.05F;

                            entityitem.motionX = (double)((float)this.furnaceRand.nextGaussian() * f3);

                            entityitem.motionY = (double)((float)this.furnaceRand.nextGaussian() * f3 + 0.2F);

                            entityitem.motionZ = (double)((float)this.furnaceRand.nextGaussian() * f3);

                            par1World.spawnEntityInWorld(entityitem);

                        }

                    }

                }

 

                par1World.func_96440_m(par2, par3, par4, par5);

            }

        }

 

        super.breakBlock(par1World, par2, par3, par4, par5, par6);

    }

 

    /**

    * If this returns true, then comparators facing away from this block will use the value from

    * getComparatorInputOverride instead of the actual redstone signal strength.

    */

    public boolean hasComparatorInputOverride()

    {

        return true;

    }

 

    /**

    * If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal

    * strength when this block inputs to a comparator.

    */

    public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5)

    {

        return Container.func_94526_b((IInventory)par1World.getBlockTileEntity(par2, par3, par4));

    }

}

 

 

 

CombinerRecipes class

 

package mods.DennisMod.COMMON;

 

import java.util.Arrays;

import java.util.HashMap;

import java.util.List;

import java.util.Map;

import net.minecraft.block.Block;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

 

public class CombinerRecipes

{

    private static final CombinerRecipes smeltingBase = new CombinerRecipes();

 

    /** The list of smelting results. */

    private Map smeltingList = new HashMap();

    private Map experienceList = new HashMap();

    private HashMap<List<Integer>, ItemStack> metaSmeltingList = new HashMap<List<Integer>, ItemStack>();

    private HashMap<List<Integer>, Float> metaExperience = new HashMap<List<Integer>, Float>();

 

    /**

    * Used to call methods addSmelting and getSmeltingResult.

    */

    public static final CombinerRecipes smelting()

    {

        return smeltingBase;

    }

 

    private CombinerRecipes()

    {

        this.addSmelting(Block.oreIron.blockID, new ItemStack(Item.ingotIron), 0.7F);

     

    }

 

    /**

    * Adds a smelting recipe.

    */

    public void addSmelting(int par1, ItemStack par2ItemStack, float par3)

    {

        this.smeltingList.put(Integer.valueOf(par1), par2ItemStack);

        this.experienceList.put(Integer.valueOf(par2ItemStack.itemID), Float.valueOf(par3));

    }

 

    /**

    * Returns the smelting result of an item.

    * Deprecated in favor of a metadata sensitive version

    */

    @Deprecated

    public ItemStack getSmeltingResult(int par1)

    {

        return (ItemStack)this.smeltingList.get(Integer.valueOf(par1));

    }

 

    public Map getSmeltingList()

    {

        return this.smeltingList;

    }

 

    @Deprecated //In favor of ItemStack sensitive version

    public float getExperience(int par1)

    {

        return this.experienceList.containsKey(Integer.valueOf(par1)) ? ((Float)this.experienceList.get(Integer.valueOf(par1))).floatValue() : 0.0F;

    }

 

    /**

    * A metadata sensitive version of adding a furnace recipe.

    */

    public void addSmelting(int itemID, int metadata, ItemStack itemstack, float experience)

    {

        metaSmeltingList.put(Arrays.asList(itemID, metadata), itemstack);

        metaExperience.put(Arrays.asList(itemID, metadata), experience);

    }

 

    /**

    * Used to get the resulting ItemStack form a source ItemStack

    * @param item The Source ItemStack

    * @return The result ItemStack

    */

    public ItemStack getSmeltingResult(ItemStack item)

    {

        if (item == null)

        {

            return null;

        }

 

        ItemStack ret = (ItemStack)metaSmeltingList.get(Arrays.asList(item.itemID, item.getItemDamage()));

 

        if (ret != null)

        {

            return ret;

        }

 

        return (ItemStack)smeltingList.get(Integer.valueOf(item.itemID));

    }

 

    /**

    * Grabs the amount of base experience for this item to give when pulled from the furnace slot.

    */

    public float getExperience(ItemStack item)

    {

        if (item == null || item.getItem() == null)

        {

            return 0;

        }

 

        float ret = item.getItem().getSmeltingExperience(item);

 

        if (ret < 0 && metaExperience.containsKey(Arrays.asList(item.itemID, item.getItemDamage())))

        {

            ret = metaExperience.get(Arrays.asList(item.itemID, item.getItemDamage()));

        }

 

        if (ret < 0 && experienceList.containsKey(item.itemID))

        {

            ret = ((Float)experienceList.get(item.itemID)).floatValue();

        }

 

        return (ret < 0 ? 0 : ret);

    }

 

    public Map<List<Integer>, ItemStack> getMetaSmeltingList()

    {

        return metaSmeltingList;

    }

}

 

 

 

ContainerCombiner class

 

package mods.DennisMod.COMMON;

 

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.entity.player.InventoryPlayer;

import net.minecraft.inventory.Container;

import net.minecraft.inventory.ICrafting;

import net.minecraft.inventory.Slot;

 

import net.minecraft.item.ItemStack;

 

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class ContainerCombiner extends Container

{

    private TileEntityCombiner furnace;

    private int lastCookTime = 0;

    private int lastBurnTime = 0;

    private int lastItemBurnTime = 0;

 

    public ContainerCombiner(InventoryPlayer par1InventoryPlayer, TileEntityCombiner par2TileEntityCombiner)

    {

        this.furnace = par2TileEntityCombiner;

        this.addSlotToContainer(new Slot(par2TileEntityCombiner, 0, 56, 17));

        this.addSlotToContainer(new Slot(par2TileEntityCombiner, 1, 56, 53));

        this.addSlotToContainer(new SlotCombiner(par1InventoryPlayer.player, par2TileEntityCombiner, 2, 116, 35));

        int i;

 

        for (i = 0; i < 3; ++i)

        {

            for (int j = 0; j < 9; ++j)

            {

                this.addSlotToContainer(new Slot(par1InventoryPlayer, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));

            }

        }

 

        for (i = 0; i < 9; ++i)

        {

            this.addSlotToContainer(new Slot(par1InventoryPlayer, i, 8 + i * 18, 142));

        }

    }

 

    public void addCraftingToCrafters(ICrafting par1ICrafting)

    {

        super.addCraftingToCrafters(par1ICrafting);

        par1ICrafting.sendProgressBarUpdate(this, 0, this.furnace.furnaceCookTime);

        par1ICrafting.sendProgressBarUpdate(this, 1, this.furnace.furnaceBurnTime);

        par1ICrafting.sendProgressBarUpdate(this, 2, this.furnace.currentItemBurnTime);

    }

 

    /**

    * Looks for changes made in the container, sends them to every listener.

    */

    public void detectAndSendChanges()

    {

        super.detectAndSendChanges();

 

        for (int i = 0; i < this.crafters.size(); ++i)

        {

            ICrafting icrafting = (ICrafting)this.crafters.get(i);

 

            if (this.lastCookTime != this.furnace.furnaceCookTime)

            {

                icrafting.sendProgressBarUpdate(this, 0, this.furnace.furnaceCookTime);

            }

 

            if (this.lastBurnTime != this.furnace.furnaceBurnTime)

            {

                icrafting.sendProgressBarUpdate(this, 1, this.furnace.furnaceBurnTime);

            }

 

            if (this.lastItemBurnTime != this.furnace.currentItemBurnTime)

            {

                icrafting.sendProgressBarUpdate(this, 2, this.furnace.currentItemBurnTime);

            }

        }

 

        this.lastCookTime = this.furnace.furnaceCookTime;

        this.lastBurnTime = this.furnace.furnaceBurnTime;

        this.lastItemBurnTime = this.furnace.currentItemBurnTime;

    }

 

    @SideOnly(Side.CLIENT)

    public void updateProgressBar(int par1, int par2)

    {

        if (par1 == 0)

        {

            this.furnace.furnaceCookTime = par2;

        }

 

        if (par1 == 1)

        {

            this.furnace.furnaceBurnTime = par2;

        }

 

        if (par1 == 2)

        {

            this.furnace.currentItemBurnTime = par2;

        }

    }

 

    public boolean canInteractWith(EntityPlayer par1EntityPlayer)

    {

        return this.furnace.isUseableByPlayer(par1EntityPlayer);

    }

 

    /**

    * Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.

    */

    public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)

    {

        ItemStack itemstack = null;

        Slot slot = (Slot)this.inventorySlots.get(par2);

 

        if (slot != null && slot.getHasStack())

        {

            ItemStack itemstack1 = slot.getStack();

            itemstack = itemstack1.copy();

 

            if (par2 == 2)

            {

                if (!this.mergeItemStack(itemstack1, 3, 39, true))

                {

                    return null;

                }

 

                slot.onSlotChange(itemstack1, itemstack);

            }

            else if (par2 != 1 && par2 != 0)

            {

                if (CombinerRecipes.smelting().getSmeltingResult(itemstack1) != null)

                {

                    if (!this.mergeItemStack(itemstack1, 0, 1, false))

                    {

                        return null;

                    }

                }

                else if (TileEntityCombiner.isItemFuel(itemstack1))

                {

                    if (!this.mergeItemStack(itemstack1, 1, 2, false))

                    {

                        return null;

                    }

                }

                else if (par2 >= 3 && par2 < 30)

                {

                    if (!this.mergeItemStack(itemstack1, 30, 39, false))

                    {

                        return null;

                    }

                }

                else if (par2 >= 30 && par2 < 39 && !this.mergeItemStack(itemstack1, 3, 30, false))

                {

                    return null;

                }

            }

            else if (!this.mergeItemStack(itemstack1, 3, 39, false))

            {

                return null;

            }

 

            if (itemstack1.stackSize == 0)

            {

                slot.putStack((ItemStack)null);

            }

            else

            {

                slot.onSlotChanged();

            }

 

            if (itemstack1.stackSize == itemstack.stackSize)

            {

                return null;

            }

 

            slot.onPickupFromSlot(par1EntityPlayer, itemstack1);

        }

 

        return itemstack;

    }

}

 

 

 

GUICombiner class

 

package mods.DennisMod.COMMON;

 

import net.minecraft.client.gui.inventory.GuiContainer;

import net.minecraft.entity.player.InventoryPlayer;

 

import net.minecraft.util.StatCollector;

 

import org.lwjgl.opengl.GL11;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

@SideOnly(Side.CLIENT)

public class GUICombiner extends GuiContainer

{

    private TileEntityCombiner furnaceInventory;

 

    public GUICombiner(InventoryPlayer par1InventoryPlayer, TileEntityCombiner par2TileEntityCombiner)

    {

        super(new ContainerCombiner(par1InventoryPlayer, par2TileEntityCombiner));

        this.furnaceInventory = par2TileEntityCombiner;

    }

 

    /**

    * Draw the foreground layer for the GuiContainer (everything in front of the items)

    */

    protected void drawGuiContainerForegroundLayer(int par1, int par2)

    {

        String s = this.furnaceInventory.isInvNameLocalized() ? this.furnaceInventory.getInvName() : StatCollector.translateToLocal(this.furnaceInventory.getInvName());

        this.fontRenderer.drawString(s, this.xSize / 2 - this.fontRenderer.getStringWidth(s) / 2, 6, 4210752);

        this.fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 4210752);

    }

 

    /**

    * Draw the background layer for the GuiContainer (everything behind the items)

    */

    protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)

    {

        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);

        this.mc.renderEngine.bindTexture("/gui/furnace.png");

        int k = (this.width - this.xSize) / 2;

        int l = (this.height - this.ySize) / 2;

        this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);

        int i1;

 

        if (this.furnaceInventory.isBurning())

        {

            i1 = this.furnaceInventory.getBurnTimeRemainingScaled(12);

            this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 2);

        }

 

        i1 = this.furnaceInventory.getCookProgressScaled(24);

        this.drawTexturedModalRect(k + 79, l + 34, 176, 14, i1 + 1, 16);

    }

}

 

 

 

GuiHandler class

 

package mods.DennisMod.COMMON;

 

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.tileentity.TileEntity;

import net.minecraft.world.World;

import cpw.mods.fml.common.network.IGuiHandler;

 

public class GuiHandler implements IGuiHandler{

 

@Override

public Object getServerGuiElement(int ID, EntityPlayer player, World world,

int x, int y, int z) {

TileEntity tile_entity = world.getBlockTileEntity(x, y, z);

 

if (tile_entity instanceof TileEntityCombiner) {

return new ContainerCombiner(player.inventory,(TileEntityCombiner) tile_entity);

}

 

return null;

}

 

 

@Override

public Object  getClientGuiElement(int ID, EntityPlayer player, World world,

int x, int y, int z) {

TileEntity tile_entity = world.getBlockTileEntity(x, y, z);

if (tile_entity instanceof TileEntityCombiner) {

return new GUICombiner(player.inventory,(TileEntityCombiner) tile_entity);

}

 

return null;

}

 

}

 

 

 

SlotCombiner class

 

package mods.DennisMod.COMMON;

 

import net.minecraft.entity.item.EntityXPOrb;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.inventory.IInventory;

import net.minecraft.inventory.Slot;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

 

import net.minecraft.stats.AchievementList;

import net.minecraft.util.MathHelper;

import cpw.mods.fml.common.registry.GameRegistry;

 

public class SlotCombiner extends Slot

{

    /** The player that is using the GUI where this slot resides. */

    private EntityPlayer thePlayer;

    private int field_75228_b;

 

    public SlotCombiner(EntityPlayer par1EntityPlayer, IInventory par2IInventory, int par3, int par4, int par5)

    {

        super(par2IInventory, par3, par4, par5);

        this.thePlayer = par1EntityPlayer;

    }

 

    /**

    * Check if the stack is a valid item for this slot. Always true beside for the armor slots.

    */

    public boolean isItemValid(ItemStack par1ItemStack)

    {

        return false;

    }

 

    /**

    * Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new

    * stack.

    */

    public ItemStack decrStackSize(int par1)

    {

        if (this.getHasStack())

        {

            this.field_75228_b += Math.min(par1, this.getStack().stackSize);

        }

 

        return super.decrStackSize(par1);

    }

 

    public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)

    {

        this.onCrafting(par2ItemStack);

        super.onPickupFromSlot(par1EntityPlayer, par2ItemStack);

    }

 

    /**

    * the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood. Typically increases an

    * internal count then calls onCrafting(item).

    */

    protected void onCrafting(ItemStack par1ItemStack, int par2)

    {

        this.field_75228_b += par2;

        this.onCrafting(par1ItemStack);

    }

 

    /**

    * the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.

    */

    protected void onCrafting(ItemStack par1ItemStack)

    {

        par1ItemStack.onCrafting(this.thePlayer.worldObj, this.thePlayer, this.field_75228_b);

 

        if (!this.thePlayer.worldObj.isRemote)

        {

            int i = this.field_75228_b;

            float f = CombinerRecipes.smelting().getExperience(par1ItemStack);

            int j;

 

            if (f == 0.0F)

            {

                i = 0;

            }

            else if (f < 1.0F)

            {

                j = MathHelper.floor_float((float)i * f);

 

                if (j < MathHelper.ceiling_float_int((float)i * f) && (float)Math.random() < (float)i * f - (float)j)

                {

                    ++j;

                }

 

                i = j;

            }

 

            while (i > 0)

            {

                j = EntityXPOrb.getXPSplit(i);

                i -= j;

                this.thePlayer.worldObj.spawnEntityInWorld(new EntityXPOrb(this.thePlayer.worldObj, this.thePlayer.posX, this.thePlayer.posY + 0.5D, this.thePlayer.posZ + 0.5D, j));

            }

        }

 

        this.field_75228_b = 0;

        GameRegistry.onItemSmelted(thePlayer, par1ItemStack);

 

        if (par1ItemStack.itemID == Item.ingotIron.itemID)

        {

            this.thePlayer.addStat(AchievementList.acquireIron, 1);

        }

 

        if (par1ItemStack.itemID == Item.fishCooked.itemID)

        {

            this.thePlayer.addStat(AchievementList.cookFish, 1);

        }

    }

}

 

 

 

TileEntityCombiner class

 

package mods.DennisMod.COMMON;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.inventory.ISidedInventory;

import net.minecraft.item.Item;

import net.minecraft.item.ItemBlock;

import net.minecraft.item.ItemHoe;

import net.minecraft.item.ItemStack;

import net.minecraft.item.ItemSword;

import net.minecraft.item.ItemTool;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.nbt.NBTTagList;

import net.minecraft.tileentity.TileEntity;

import net.minecraftforge.common.ForgeDirection;

import net.minecraftforge.common.ForgeDummyContainer;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class TileEntityCombiner extends TileEntity implements ISidedInventory, net.minecraftforge.common.ISidedInventory

{

    private static final int[] field_102010_d = new int[] {0};

    private static final int[] field_102011_e = new int[] {2, 1};

    private static final int[] field_102009_f = new int[] {1};

 

    /**

    * The ItemStacks that hold the items currently being used in the furnace

    */

    private ItemStack[] furnaceItemStacks = new ItemStack[3];

 

    /** The number of ticks that the furnace will keep burning */

    public int furnaceBurnTime = 0;

 

    /**

    * The number of ticks that a fresh copy of the currently-burning item would keep the furnace burning for

    */

    public int currentItemBurnTime = 0;

 

    /** The number of ticks that the current item has been cooking for */

    public int furnaceCookTime = 0;

    private String field_94130_e;

 

    /**

    * Returns the number of slots in the inventory.

    */

    public int getSizeInventory()

    {

        return this.furnaceItemStacks.length;

    }

 

    /**

    * Returns the stack in slot i

    */

    public ItemStack getStackInSlot(int par1)

    {

        return this.furnaceItemStacks[par1];

    }

 

    /**

    * Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a

    * new stack.

    */

    public ItemStack decrStackSize(int par1, int par2)

    {

        if (this.furnaceItemStacks[par1] != null)

        {

            ItemStack itemstack;

 

            if (this.furnaceItemStacks[par1].stackSize <= par2)

            {

                itemstack = this.furnaceItemStacks[par1];

                this.furnaceItemStacks[par1] = null;

                return itemstack;

            }

            else

            {

                itemstack = this.furnaceItemStacks[par1].splitStack(par2);

 

                if (this.furnaceItemStacks[par1].stackSize == 0)

                {

                    this.furnaceItemStacks[par1] = null;

                }

 

                return itemstack;

            }

        }

        else

        {

            return null;

        }

    }

 

    /**

    * When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -

    * like when you close a workbench GUI.

    */

    public ItemStack getStackInSlotOnClosing(int par1)

    {

        if (this.furnaceItemStacks[par1] != null)

        {

            ItemStack itemstack = this.furnaceItemStacks[par1];

            this.furnaceItemStacks[par1] = null;

            return itemstack;

        }

        else

        {

            return null;

        }

    }

 

    /**

    * Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).

    */

    public void setInventorySlotContents(int par1, ItemStack par2ItemStack)

    {

        this.furnaceItemStacks[par1] = par2ItemStack;

 

        if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())

        {

            par2ItemStack.stackSize = this.getInventoryStackLimit();

        }

    }

 

    /**

    * Returns the name of the inventory.

    */

    public String getInvName()

    {

        return this.isInvNameLocalized() ? this.field_94130_e : "Combiner";

    }

 

    /**

    * If this returns false, the inventory name will be used as an unlocalized name, and translated into the player's

    * language. Otherwise it will be used directly.

    */

    public boolean isInvNameLocalized()

    {

        return this.field_94130_e != null && this.field_94130_e.length() > 0;

    }

 

    public void func_94129_a(String par1Str)

    {

        this.field_94130_e = par1Str;

    }

 

    /**

    * Reads a tile entity from NBT.

    */

    public void readFromNBT(NBTTagCompound par1NBTTagCompound)

    {

        super.readFromNBT(par1NBTTagCompound);

        NBTTagList nbttaglist = par1NBTTagCompound.getTagList("Items");

        this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];

 

        for (int i = 0; i < nbttaglist.tagCount(); ++i)

        {

            NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttaglist.tagAt(i);

            byte b0 = nbttagcompound1.getByte("Slot");

 

            if (b0 >= 0 && b0 < this.furnaceItemStacks.length)

            {

                this.furnaceItemStacks[b0] = ItemStack.loadItemStackFromNBT(nbttagcompound1);

            }

        }

 

        this.furnaceBurnTime = par1NBTTagCompound.getShort("BurnTime");

        this.furnaceCookTime = par1NBTTagCompound.getShort("CookTime");

        this.currentItemBurnTime = getItemBurnTime(this.furnaceItemStacks[1]);

 

        if (par1NBTTagCompound.hasKey("Combiner"))

        {

            this.field_94130_e = par1NBTTagCompound.getString("Combiner");

        }

    }

 

    /**

    * Writes a tile entity to NBT.

    */

    public void writeToNBT(NBTTagCompound par1NBTTagCompound)

    {

        super.writeToNBT(par1NBTTagCompound);

        par1NBTTagCompound.setShort("BurnTime", (short)this.furnaceBurnTime);

        par1NBTTagCompound.setShort("CookTime", (short)this.furnaceCookTime);

        NBTTagList nbttaglist = new NBTTagList();

 

        for (int i = 0; i < this.furnaceItemStacks.length; ++i)

        {

            if (this.furnaceItemStacks != null)

            {

                NBTTagCompound nbttagcompound1 = new NBTTagCompound();

                nbttagcompound1.setByte("Slot", (byte)i);

                this.furnaceItemStacks.writeToNBT(nbttagcompound1);

                nbttaglist.appendTag(nbttagcompound1);

            }

        }

 

        par1NBTTagCompound.setTag("Items", nbttaglist);

 

        if (this.isInvNameLocalized())

        {

            par1NBTTagCompound.setString("Combiner", this.field_94130_e);

        }

    }

 

    /**

    * Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. *Isn't

    * this more of a set than a get?*

    */

    public int getInventoryStackLimit()

    {

        return 64;

    }

 

    @SideOnly(Side.CLIENT)

 

    /**

    * Returns an integer between 0 and the passed value representing how close the current item is to being completely

    * cooked

    */

    public int getCookProgressScaled(int par1)

    {

        return this.furnaceCookTime * par1 / 200;

    }

 

    @SideOnly(Side.CLIENT)

 

    /**

    * Returns an integer between 0 and the passed value representing how much burn time is left on the current fuel

    * item, where 0 means that the item is exhausted and the passed value means that the item is fresh

    */

    public int getBurnTimeRemainingScaled(int par1)

    {

        if (this.currentItemBurnTime == 0)

        {

            this.currentItemBurnTime = 200;

        }

 

        return this.furnaceBurnTime * par1 / this.currentItemBurnTime;

    }

 

    /**

    * Returns true if the furnace is currently burning

    */

    public boolean isBurning()

    {

        return this.furnaceBurnTime > 0;

    }

 

    /**

    * Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count

    * ticks and creates a new spawn inside its implementation.

    */

    public void updateEntity()

    {

        boolean flag = this.furnaceBurnTime > 0;

        boolean flag1 = false;

 

        if (this.furnaceBurnTime > 0)

        {

            --this.furnaceBurnTime;

        }

 

        if (!this.worldObj.isRemote)

        {

            if (this.furnaceBurnTime == 0 && this.canSmelt())

            {

                this.currentItemBurnTime = this.furnaceBurnTime = getItemBurnTime(this.furnaceItemStacks[1]);

 

                if (this.furnaceBurnTime > 0)

                {

                    flag1 = true;

 

                    if (this.furnaceItemStacks[1] != null)

                    {

                        --this.furnaceItemStacks[1].stackSize;

 

                        if (this.furnaceItemStacks[1].stackSize == 0)

                        {

                            this.furnaceItemStacks[1] = this.furnaceItemStacks[1].getItem().getContainerItemStack(furnaceItemStacks[1]);

                        }

                    }

                }

            }

 

            if (this.isBurning() && this.canSmelt())

            {

                ++this.furnaceCookTime;

 

                if (this.furnaceCookTime == 200)

                {

                    this.furnaceCookTime = 0;

                    this.smeltItem();

                    flag1 = true;

                }

            }

            else

            {

                this.furnaceCookTime = 0;

            }

 

            if (flag != this.furnaceBurnTime > 0)

            {

                flag1 = true;

                Combiner.updateFurnaceBlockState(this.furnaceBurnTime > 0, this.worldObj, this.xCoord, this.yCoord, this.zCoord);

            }

        }

 

        if (flag1)

        {

            this.onInventoryChanged();

        }

    }

 

    /**

    * Returns true if the furnace can smelt an item, i.e. has a source item, destination stack isn't full, etc.

    */

    private boolean canSmelt()

    {

        if (this.furnaceItemStacks[0] == null)

        {

            return false;

        }

        else

        {

            ItemStack itemstack = CombinerRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);

 

            if (itemstack == null)

            {

                return false;

            }

 

            if (this.furnaceItemStacks[2] == null)

            {

                return true;

            }

 

            if (!this.furnaceItemStacks[2].isItemEqual(itemstack))

            {

                return false;

            }

 

            int result = furnaceItemStacks[2].stackSize + itemstack.stackSize;

            return (result <= getInventoryStackLimit() && result <= itemstack.getMaxStackSize());

        }

    }

 

    /**

    * Turn one item from the furnace source stack into the appropriate smelted item in the furnace result stack

    */

    public void smeltItem()

    {

        if (this.canSmelt())

        {

            ItemStack itemstack = CombinerRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);

 

            if (this.furnaceItemStacks[2] == null)

            {

                this.furnaceItemStacks[2] = itemstack.copy();

            }

            else if (this.furnaceItemStacks[2].isItemEqual(itemstack))

            {

                furnaceItemStacks[2].stackSize += itemstack.stackSize;

            }

 

            --this.furnaceItemStacks[0].stackSize;

 

            if (this.furnaceItemStacks[0].stackSize <= 0)

            {

                this.furnaceItemStacks[0] = null;

            }

        }

    }

 

    /**

    * Returns the number of ticks that the supplied fuel item will keep the furnace burning, or 0 if the item isn't

    * fuel

    */

    public static int getItemBurnTime(ItemStack par0ItemStack)

    {

        if (par0ItemStack == null)

        {

            return 0;

        }

        else

        {

            int i = par0ItemStack.getItem().itemID;

            Item item = par0ItemStack.getItem();

 

            if (par0ItemStack.getItem() instanceof ItemBlock && Block.blocksList != null)

            {

                Block block = Block.blocksList;

 

                if (block == Block.woodSingleSlab)

                {

                    return 150;

                }

 

                if (block.blockMaterial == Material.wood)

                {

                    return 300;

                }

            }

 

            if (item instanceof ItemTool && ((ItemTool) item).getToolMaterialName().equals("WOOD"))

            {

                return 200;

            }

 

            if (item instanceof ItemSword && ((ItemSword) item).getToolMaterialName().equals("WOOD"))

            {

                return 200;

            }

 

            if (item instanceof ItemHoe && ((ItemHoe) item).func_77842_f().equals("WOOD"))

            {

                return 200;

            }

 

            if (i == Item.stick.itemID)

            {

                return 100;

            }

 

            if (i == Item.coal.itemID)

            {

                return 1600;

            }

 

            if (i == Item.bucketLava.itemID)

            {

                return 20000;

            }

 

            if (i == Block.sapling.blockID)

            {

                return 100;

            }

 

            if (i == Item.blazeRod.itemID)

            {

                return 2400;

            }

 

            return GameRegistry.getFuelValue(par0ItemStack);

        }

    }

 

    /**

    * Return true if item is a fuel source (getItemBurnTime() > 0).

    */

    public static boolean isItemFuel(ItemStack par0ItemStack)

    {

        return getItemBurnTime(par0ItemStack) > 0;

    }

 

    /**

    * Do not make give this method the name canInteractWith because it clashes with Container

    */

    public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)

    {

        return this.worldObj.getBlockTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : par1EntityPlayer.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D;

    }

 

    public void openChest() {}

 

    public void closeChest() {}

 

    /**

    * Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.

    */

    public boolean isStackValidForSlot(int par1, ItemStack par2ItemStack)

    {

        return par1 == 2 ? false : (par1 == 1 ? isItemFuel(par2ItemStack) : true);

    }

 

    /**

    * Get the size of the side inventory.

    */

    public int[] getSizeInventorySide(int par1)

    {

        return par1 == 0 ? field_102011_e : (par1 == 1 ? field_102010_d : field_102009_f);

    }

 

    public boolean func_102007_a(int par1, ItemStack par2ItemStack, int par3)

    {

        return this.isStackValidForSlot(par1, par2ItemStack);

    }

 

    public boolean func_102008_b(int par1, ItemStack par2ItemStack, int par3)

    {

        return par3 != 0 || par1 != 1 || par2ItemStack.itemID == Item.bucketEmpty.itemID;

    }

 

    /***********************************************************************************

    * This function is here for compatibilities sake, Modders should Check for

    * Sided before ContainerWorldly, Vanilla Minecraft does not follow the sided standard

    * that Modding has for a while.

    *

    * In vanilla:

    *

    *  Top: Ores

    *  Sides: Fuel

    *  Bottom: Output

    *

    * Standard Modding:

    *  Top: Ores

    *  Sides: Output

    *  Bottom: Fuel

    *

    * The Modding one is designed after the GUI, the vanilla one is designed because its

    * intended use is for the hopper, which logically would take things in from the top.

    *

    * This will possibly be removed in future updates, and make vanilla the definitive

    * standard.

    */

 

    @Override

    public int getStartInventorySide(ForgeDirection side)

    {

        if (ForgeDummyContainer.legacyFurnaceSides)

        {

            if (side == ForgeDirection.DOWN)

            {

                return 1;

            }

 

            if (side == ForgeDirection.UP)

            {

                return 0;

            }

 

            return 2;

        }

        else

        {

            if (side == ForgeDirection.DOWN)

            {

                return 2;

            }

 

            if (side == ForgeDirection.UP)

            {

                return 0;

            }

 

            return 1;

        }

    }

 

    @Override

    public int getSizeInventorySide(ForgeDirection side)

    {

        return 1;

    }

}

 

 

 

ModPacketHandler class

 

package mods.DennisMod.COMMON;

 

import java.io.ByteArrayInputStream;

import java.io.DataInputStream;

import java.io.IOException;

 

import net.minecraft.network.INetworkManager;

import net.minecraft.network.packet.Packet250CustomPayload;

import cpw.mods.fml.common.network.IPacketHandler;

import cpw.mods.fml.common.network.Player;

 

public class ModPacketHandler implements IPacketHandler{

 

@Override

public void onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player player) {

if(packet.channel.equals("MoGems")){

handlePacket(packet);

}

 

}

 

public void handlePacket(Packet250CustomPayload packet){

DataInputStream inputStream = new DataInputStream(new ByteArrayInputStream(packet.data));

 

int randomInt1;

int randomInt2;

 

try{

randomInt1 = inputStream.readInt();

randomInt2 = inputStream.readInt();

}catch(IOException e){

e.printStackTrace();

return;

}

 

System.out.println(randomInt1 + "" + randomInt2);

}

 

}

 

 

Link to comment
Share on other sites

Forget ModPacketHandler class, and I edited something in there to what it should be called, but then I get an error:

 

 

ForgeModLoader-client-0:

 

2013-05-14 17:29:29 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.43.675 for Minecraft 1.5.1 loading

2013-05-14 17:29:29 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_21, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7

2013-05-14 17:29:29 [FINE] [ForgeModLoader] Java classpath at launch is C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\eclipse\Minecraft\bin;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\jinput.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\lwjgl_util.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\lwjgl.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\minecraft.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\argo-3.2-src.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\bcprov-debug-jdk15on-148.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\asm-debug-all-4.1.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\guava-14.0-rc3.jar;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\scala-library.jar

2013-05-14 17:29:29 [FINE] [ForgeModLoader] Java library path at launch is C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\natives;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\natives;C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\natives

2013-05-14 17:29:29 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] All core mods are successfully located

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Discovering coremods

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Found library file argo-small-3.2.jar present and correct in lib dir

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Found library file guava-14.0-rc3.jar present and correct in lib dir

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Found library file asm-all-4.1.jar present and correct in lib dir

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-148.jar present and correct in lib dir

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Found library file deobfuscation_data_1.5.1.zip present and correct in lib dir

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Found library file scala-library.jar present and correct in lib dir

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Running coremod plugins

2013-05-14 17:29:29 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin

2013-05-14 17:29:30 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully

2013-05-14 17:29:30 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin

2013-05-14 17:29:30 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully

2013-05-14 17:29:30 [FINEST] [ForgeModLoader] Validating minecraft

2013-05-14 17:29:30 [FINEST] [ForgeModLoader] Minecraft validated, launching...

2013-05-14 17:29:32 [iNFO] [sTDOUT] 229 recipes

2013-05-14 17:29:32 [iNFO] [sTDOUT] 27 achievements

2013-05-14 17:29:32 [iNFO] [Minecraft-Client] Setting user: Player31

2013-05-14 17:29:32 [iNFO] [sTDOUT] (Session ID is -)

2013-05-14 17:29:32 [iNFO] [sTDERR] Client asked for parameter: server

2013-05-14 17:29:33 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2

2013-05-14 17:29:33 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-05-14 17:29:33 [iNFO] [sTDOUT] MinecraftForge v7.7.1.675 Initialized

2013-05-14 17:29:33 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.675 Initialized

2013-05-14 17:29:33 [iNFO] [sTDOUT] Replaced 85 ore recipies

2013-05-14 17:29:33 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-05-14 17:29:33 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\config\logging.properties

2013-05-14 17:29:33 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Found a minecraft related directory at C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\eclipse\Minecraft\bin, examining for mod candidates

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\jinput.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\lwjgl_util.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\lwjgl.jar

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\bin\minecraft.jar, examining for mod candidates

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\argo-3.2-src.jar, examining for mod candidates

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\bcprov-debug-jdk15on-148.jar, examining for mod candidates

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\asm-debug-all-4.1.jar, examining for mod candidates

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\guava-14.0-rc3.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\lib\scala-library.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\lib\argo-small-3.2.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\lib\guava-14.0-rc3.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\lib\asm-all-4.1.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\lib\bcprov-jdk15on-148.jar

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\lib\deobfuscation_data_1.5.1.zip

2013-05-14 17:29:33 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\lib\scala-library.jar

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully

2013-05-14 17:29:33 [iNFO] [ForgeModLoader] Searching C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\mods for mods

2013-05-14 17:29:33 [FINE] [ForgeModLoader] Examining directory bin for potential mods

2013-05-14 17:29:33 [FINE] [ForgeModLoader] No mcmod.info file found in directory bin

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.client

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.client.modloader

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.client.registry

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.asm

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.asm.transformers

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.asm.transformers.deobf

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.discovery

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.discovery.asm

2013-05-14 17:29:33 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.event

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.functions

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.modloader

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.network

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.registry

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.toposort

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.versioning

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.relauncher

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.server

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package ibxm

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods.DennisMod

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods.DennisMod.client

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods.DennisMod.COMMON

2013-05-14 17:29:34 [FINE] [ForgeModLoader] Identified an FMLMod type mod mods.DennisMod.COMMON.MoGems

2013-05-14 17:29:34 [FINEST] [MoGems] Parsed dependency info : [] [] []

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods.DennisMod.textures

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods.DennisMod.textures.armor

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods.DennisMod.textures.blocks

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package mods.DennisMod.textures.items

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.block

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.block.material

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.audio

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.entity

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.entity.render

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.gui

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.gui.achievement

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.gui.inventory

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.mco

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.model

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.multiplayer

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.particle

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.renderer

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.renderer.culling

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.renderer.entity

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.renderer.texture

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.renderer.tileentity

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.settings

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.stats

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client.texturepacks

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.command

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.crash

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.creativetab

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.dispenser

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.enchantment

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.ai

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.boss

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.effect

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.item

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.monster

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.passive

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.player

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.entity.projectile

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.inventory

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.item

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.item.crafting

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.logging

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.nbt

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.network

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.network.packet

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.network.rcon

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.pathfinding

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.potion

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.profiler

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.scoreboard

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.server

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.server.dedicated

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.server.gui

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.server.integrated

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.server.management

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.src

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.stats

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.tileentity

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.util

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.village

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.biome

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.chunk

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.chunk.storage

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.demo

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.gen

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.gen.feature

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.gen.layer

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.gen.structure

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.world.storage

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.classloading

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client.event

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client.event.sound

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client.model

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client.model.obj

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.common

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.brewing

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.item

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.living

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.minecart

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.player

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.terraingen

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.world

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.liquids

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.oredict

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.transformers

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package paulscode

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package paulscode.sound

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package paulscode.sound.codecs

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package textures

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package textures.armor

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package textures.blocks

2013-05-14 17:29:34 [FINEST] [ForgeModLoader] Recursing into package textures.items

2013-05-14 17:29:34 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods

2013-05-14 17:29:34 [FINE] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file

2013-05-14 17:29:34 [FINE] [ForgeModLoader] Examining file argo-3.2-src.jar for potential mods

2013-05-14 17:29:34 [FINE] [ForgeModLoader] The mod container argo-3.2-src.jar appears to be missing an mcmod.info file

2013-05-14 17:29:34 [FINE] [ForgeModLoader] Examining file bcprov-debug-jdk15on-148.jar for potential mods

2013-05-14 17:29:34 [FINE] [ForgeModLoader] The mod container bcprov-debug-jdk15on-148.jar appears to be missing an mcmod.info file

2013-05-14 17:29:35 [FINE] [ForgeModLoader] Examining file asm-debug-all-4.1.jar for potential mods

2013-05-14 17:29:35 [FINE] [ForgeModLoader] The mod container asm-debug-all-4.1.jar appears to be missing an mcmod.info file

2013-05-14 17:29:35 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-05-14 17:29:35 [FINER] [ForgeModLoader] Received a system property request ''

2013-05-14 17:29:35 [FINER] [ForgeModLoader] System property request managing the state of 0 mods

2013-05-14 17:29:35 [FINE] [ForgeModLoader] After merging, found state information for 0 mods

2013-05-14 17:29:35 [FINE] [ForgeModLoader] Reloading logging properties from C:\Users\Dennis\Downloads\Minecraft\Mod\forge\mcp\jars\config\logging.properties

2013-05-14 17:29:35 [FINE] [ForgeModLoader] Reloaded logging properties

2013-05-14 17:29:35 [FINE] [mcp] Mod Logging channel mcp configured at default level.

2013-05-14 17:29:35 [iNFO] [mcp] Activating mod mcp

2013-05-14 17:29:35 [FINE] [FML] Mod Logging channel FML configured at default level.

2013-05-14 17:29:35 [iNFO] [FML] Activating mod FML

2013-05-14 17:29:35 [FINE] [Forge] Mod Logging channel Forge configured at default level.

2013-05-14 17:29:35 [iNFO] [Forge] Activating mod Forge

2013-05-14 17:29:35 [FINE] [MoGems] Enabling mod MoGems

2013-05-14 17:29:35 [FINE] [MoGems] Mod Logging channel MoGems configured at default level.

2013-05-14 17:29:35 [iNFO] [MoGems] Activating mod MoGems

2013-05-14 17:29:35 [FINER] [ForgeModLoader] Verifying mod requirements are satisfied

2013-05-14 17:29:35 [FINER] [ForgeModLoader] All mod requirements are satisfied

2013-05-14 17:29:35 [FINER] [ForgeModLoader] Sorting mods into an ordered list

2013-05-14 17:29:35 [FINER] [ForgeModLoader] Mod sorting completed successfully

2013-05-14 17:29:35 [FINE] [ForgeModLoader] Mod sorting data

2013-05-14 17:29:35 [FINE] [ForgeModLoader] MoGems(Mo' Gems and Ingots:0.3.1): bin ()

2013-05-14 17:29:35 [FINEST] [mcp] Sending event FMLConstructionEvent to mod mcp

2013-05-14 17:29:35 [FINEST] [mcp] Sent event FMLConstructionEvent to mod mcp

2013-05-14 17:29:35 [FINEST] [FML] Sending event FMLConstructionEvent to mod FML

2013-05-14 17:29:35 [FINEST] [FML] Sent event FMLConstructionEvent to mod FML

2013-05-14 17:29:35 [FINEST] [Forge] Sending event FMLConstructionEvent to mod Forge

2013-05-14 17:29:35 [FINEST] [Forge] Sent event FMLConstructionEvent to mod Forge

2013-05-14 17:29:35 [FINEST] [MoGems] Sending event FMLConstructionEvent to mod MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemSword(6576) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemPickaxe(6577) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemAxe(6578) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemSpade(6579) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemHoe(6580) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemArmor(6593) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemArmor(6594) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemArmor(6595) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemArmor(6596) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemSword(6582) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemPickaxe(6583) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemAxe(6584) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemSpade(6585) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemHoe(6586) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item mods.DennisMod.COMMON.Amethyst(6581) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item mods.DennisMod.COMMON.ManganeseIngot(6587) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemSword(6588) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemPickaxe(6589) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemAxe(6590) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemSpade(6591) owned by MoGems

2013-05-14 17:29:35 [FINE] [fml.ItemTracker] Adding item net.minecraft.item.ItemHoe(6592) owned by MoGems

2013-05-14 17:29:35 [sEVERE] [MoGems] The mod MoGems appears to have an invalid method annotation PreInit. This annotation can only apply to methods with argument types [class cpw.mods.fml.common.event.FMLPreInitializationEvent] -it will not be called

2013-05-14 17:29:35 [FINEST] [ForgeModLoader] Testing mod MoGems to verify it accepts its own version in a remote connection

2013-05-14 17:29:35 [FINEST] [ForgeModLoader] The mod MoGems accepts its own version (0.3.1)

2013-05-14 17:29:35 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into MoGems

2013-05-14 17:29:35 [FINEST] [MoGems] Sent event FMLConstructionEvent to mod MoGems

2013-05-14 17:29:35 [FINE] [ForgeModLoader] Mod signature data

2013-05-14 17:29:35 [FINE] [ForgeModLoader] mcp(Minecraft Coder Pack:7.44): minecraft.jar (NO VALID CERTIFICATE FOUND)

2013-05-14 17:29:35 [FINE] [ForgeModLoader] FML(Forge Mod Loader:5.1.43.675): coremods (NO VALID CERTIFICATE FOUND)

2013-05-14 17:29:35 [FINE] [ForgeModLoader] Forge(Minecraft Forge:7.7.1.675): coremods (NO VALID CERTIFICATE FOUND)

2013-05-14 17:29:35 [FINE] [ForgeModLoader] MoGems(Mo' Gems and Ingots:0.3.1): bin (NO VALID CERTIFICATE FOUND)

2013-05-14 17:29:35 [FINEST] [mcp] Sending event FMLPreInitializationEvent to mod mcp

2013-05-14 17:29:35 [FINEST] [mcp] Sent event FMLPreInitializationEvent to mod mcp

2013-05-14 17:29:35 [FINEST] [FML] Sending event FMLPreInitializationEvent to mod FML

2013-05-14 17:29:35 [FINEST] [FML] Sent event FMLPreInitializationEvent to mod FML

2013-05-14 17:29:35 [FINEST] [Forge] Sending event FMLPreInitializationEvent to mod Forge

2013-05-14 17:29:35 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-05-14 17:29:35 [FINEST] [Forge] Sent event FMLPreInitializationEvent to mod Forge

2013-05-14 17:29:35 [FINEST] [MoGems] Sending event FMLPreInitializationEvent to mod MoGems

2013-05-14 17:29:35 [FINEST] [MoGems] Sent event FMLPreInitializationEvent to mod MoGems

2013-05-14 17:29:36 [iNFO] [sTDOUT]

2013-05-14 17:29:36 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-05-14 17:29:36 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-05-14 17:29:36 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-05-14 17:29:36 [iNFO] [sTDOUT] OpenAL initialized.

2013-05-14 17:29:36 [iNFO] [sTDOUT]

2013-05-14 17:29:37 [iNFO] [sTDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image

2013-05-14 17:29:37 [iNFO] [sTDERR] at java.lang.Class.getField(Unknown Source)

2013-05-14 17:29:37 [iNFO] [sTDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:134)

2013-05-14 17:29:37 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74)

2013-05-14 17:29:37 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:157)

2013-05-14 17:29:37 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520)

2013-05-14 17:29:37 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:442)

2013-05-14 17:29:37 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

2013-05-14 17:29:37 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733)

2013-05-14 17:29:37 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-05-14 17:29:37 [iNFO] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled

2013-05-14 17:29:37 [iNFO] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available

2013-05-14 17:29:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt

2013-05-14 17:29:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt

2013-05-14 17:29:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt

2013-05-14 17:29:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt

2013-05-14 17:29:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt

2013-05-14 17:29:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt

2013-05-14 17:29:37 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt

2013-05-14 17:29:38 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt

2013-05-14 17:29:38 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt

2013-05-14 17:29:38 [FINEST] [mcp] Sending event FMLInitializationEvent to mod mcp

2013-05-14 17:29:38 [FINEST] [mcp] Sent event FMLInitializationEvent to mod mcp

2013-05-14 17:29:38 [FINEST] [FML] Sending event FMLInitializationEvent to mod FML

2013-05-14 17:29:38 [FINEST] [FML] Sent event FMLInitializationEvent to mod FML

2013-05-14 17:29:38 [FINEST] [Forge] Sending event FMLInitializationEvent to mod Forge

2013-05-14 17:29:38 [FINEST] [Forge] Sent event FMLInitializationEvent to mod Forge

2013-05-14 17:29:38 [FINEST] [MoGems] Sending event FMLInitializationEvent to mod MoGems

2013-05-14 17:29:38 [FINEST] [MoGems] Sent event FMLInitializationEvent to mod MoGems

2013-05-14 17:29:38 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

2013-05-14 17:29:38 [sEVERE] [ForgeModLoader]

mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML{5.1.43.675} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge{7.7.1.675} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

MoGems{0.3.1} [Mo' Gems and Ingots] (bin) Unloaded->Constructed->Pre-initialized->Errored

2013-05-14 17:29:38 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-05-14 17:29:38 [sEVERE] [ForgeModLoader] Caught exception from MoGems

java.lang.ArrayIndexOutOfBoundsException: 7040

at net.minecraft.block.Block.<init>(Block.java:338)

at net.minecraft.block.BlockContainer.<init>(BlockContainer.java:11)

at mods.DennisMod.COMMON.Combiner.<init>(Combiner.java:45)

at mods.DennisMod.COMMON.MoGems.load(MoGems.java:107)

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:518)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:169)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:96)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:722)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:209)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:445)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:733)

at java.lang.Thread.run(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 7040

2013-05-14 17:29:38 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:338)

2013-05-14 17:29:38 [iNFO] [sTDERR] at net.minecraft.block.BlockContainer.<init>(BlockContainer.java:11)

2013-05-14 17:29:38 [iNFO] [sTDERR] at mods.DennisMod.COMMON.Combiner.<init>(Combiner.java:45)

2013-05-14 17:29:38 [iNFO] [sTDERR] at mods.DennisMod.COMMON.MoGems.load(MoGems.java:107)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:518)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-05-14 17:29:38 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:169)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-05-14 17:29:38 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-05-14 17:29:38 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:96)

2013-05-14 17:29:38 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:722)

2013-05-14 17:29:38 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:209)

2013-05-14 17:29:38 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:445)

2013-05-14 17:29:38 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

2013-05-14 17:29:38 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733)

2013-05-14 17:29:38 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

 

 

 

other crash log

 

---- Minecraft Crash Report ----

// Why is it breaking :(

 

Time: 14-5-13 17:29

Description: Failed to start game

 

java.lang.ArrayIndexOutOfBoundsException: 7040

at net.minecraft.block.Block.<init>(Block.java:338)

at net.minecraft.block.BlockContainer.<init>(BlockContainer.java:11)

at mods.DennisMod.COMMON.Combiner.<init>(Combiner.java:45)

at mods.DennisMod.COMMON.MoGems.load(MoGems.java:107)

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:518)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:169)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:96)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:722)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:209)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:445)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:733)

at java.lang.Thread.run(Unknown Source)

 

 

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

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Windows 8 (amd64) version 6.2

Java Version: 1.7.0_21, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 834764488 bytes (796 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.44 FML v5.1.43.675 Minecraft Forge 7.7.1.675 4 mods loaded, 4 mods active

mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML{5.1.43.675} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge{7.7.1.675} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

MoGems{0.3.1} [Mo' Gems and Ingots] (bin) Unloaded->Constructed->Pre-initialized->Errored

LWJGL: 2.4.2

OpenGL: Intel® HD Graphics 4000 GL version 4.0.0 - Build 9.17.10.2849, Intel

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

Link to comment
Share on other sites

Okay, so I've got it in game but the block has only the textures of furnace_side all over it and if I try to add a GUI it doesn't work -> just says texture missing :/

Oh, and I am creating a multiple input furnace, but I don't know how to get the recipes for that

Link to comment
Share on other sites

Theres a thread on this forum that really goes through it quite deep, almost as far to get multiple inputs to work. I have been trying to get such thing workign aswell. Just search for "Input furnace" on this forum and you will find more information about it. Also you might find my thread in there aswell.

Link to comment
Share on other sites

Theres a thread on this forum that really goes through it quite deep, almost as far to get multiple inputs to work. I have been trying to get such thing workign aswell. Just search for "Input furnace" on this forum and you will find more information about it. Also you might find my thread in there aswell.

And what about the texture and gui problem?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have downloaded forge version 1.20.4 and I have Java 17 installed but my .jar will not open and the error log text file below is created     JVM info: Oracle Corporation - 17.0.10 - 17.0.10+11-LTS-240 java.net.preferIPv4Stack=true Current Time: 27/02/2024 19:43:19 Host: files.minecraftforge.net [51.79.83.165, 2607:5300:203:65a5:0:0:0:0] Host: maven.minecraftforge.net [51.79.83.165, 2607:5300:203:65a5:0:0:0:0] Host: libraries.minecraft.net [13.107.246.64, 13.107.213.64, 2620:1ec:46:0:0:0:0:64, 2620:1ec:bdf:0:0:0:0:64] Host: launchermeta.mojang.com [13.107.213.64, 13.107.246.64, 2620:1ec:bdf:0:0:0:0:64, 2620:1ec:46:0:0:0:0:64] Host: piston-meta.mojang.com [13.107.213.64, 13.107.246.64, 2620:1ec:46:0:0:0:0:64, 2620:1ec:bdf:0:0:0:0:64] java.net.UnknownHostException: No such host is known (authserver.mojang.com)     at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)     at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933)     at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1543)     at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)     at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1532)     at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1384)     at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1305)     at net.minecraftforge.installer.DownloadUtils.getIps(DownloadUtils.java:290)     at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:120) Exception in thread "main"  java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "net.minecraftforge.installer.DownloadUtils.getIps(String)" is null     at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:120)  
    • we tried both versions and both cant run on her laptop for some reason idk what to do  
    • Okay so we tried both versions and both cant run on her pc for some reason!  
    • Well. Make sure you installed a correct jdk for your forge mdk version. Make sure your JAVA_HOME and %PATH% environment-variables are setup correctly. (If you're on windows)   I downloaded an example forge mdk for my version and extracted the contents to a folder I'm working in Using Eclipse, I opened Eclipse and imported an existing gradle Project (with its root directory in the folder directory which I previously extracted my contents to). Waited for Eclipse to do its thing After it having finished, I ran genEclipseRuns, setupDecompWorkspace and setupDevWorkspace (Gradle Tasks > your mod name here > forgegradle)    If it still didn't work (and you're using Eclipse) run cleanEclipse and, in a command prompt  Also If I recall correctly, someone, somewhere said that the way you setup your workspace changes depending on your Minecraft Version. I did this in 1.8.9.
    • https://mclo.gs/ZlRMU4G Still crash, help 
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.