Jump to content

Help with crashing


GodOfYeti

Recommended Posts

Heres the crash

 

---- Minecraft Crash Report ----
// Why is it breaking 

Time: 1/25/15 3:04 PM
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:492)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)
Caused by: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
... 35 more


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

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 934893688 bytes (891 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed
Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed
testmod{1.0} [Test Mod] (bin) Unloaded->Errored

 

 

Heres the code

 

Blocks

package com.mcpixelplex.blocks;

import com.mcpixelplex.CreativeTabs.BlessedCreativeTab;
import com.mcpixelplex.lib.RefStrings;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class BBlocks {

public static void mainRegistry(){
	initializeBlock();
	reigsterBlock();
	init();
	addNames();
}

public static Block xpBlock;
public static Block clearGlass;

public static Block testBlock;

public static Block machineBlock;

public static void init() {

}

public static void initializeBlock(){
	xpBlock = new xpBlock(Material.glass).setBlockName("xpBlock").setCreativeTab(BlessedCreativeTab.tabBlocks).setBlockTextureName(RefStrings.MODID + ":test");
	clearGlass = new clearGlass(Material.glass).setBlockName("clearGlass").setCreativeTab(BlessedCreativeTab.tabBlocks).setBlockTextureName(RefStrings.MODID + ":Air");

	testBlock = new testBlock(Material.ground).setBlockName("testBlock").setCreativeTab(BlessedCreativeTab.tabBlocks);

	machineBlock = new machineBlock(Material.iron).setBlockName("machineBlock").setCreativeTab(BlessedCreativeTab.tabBlocks).setHardness(5F).setResistance(10F);

}

public static void reigsterBlock(){
	GameRegistry.registerBlock(xpBlock, xpBlock.getUnlocalizedName());
	GameRegistry.registerBlock(clearGlass, clearGlass.getUnlocalizedName());

	GameRegistry.registerBlock(testBlock, testBlock.getUnlocalizedName());

	GameRegistry.registerBlock(machineBlock, "machineBlock");
}

public static void addNames() {
	LanguageRegistry.addName(machineBlock, "machineBlock");
	}
}

 

 

machineBlock

package com.mcpixelplex.blocks;

import com.mcpixelplex.CreativeTabs.BlessedCreativeTab;
import com.mcpixelplex.lib.RefStrings;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;

public class machineBlock extends Block{

public machineBlock(Material p_i45394_1_) {
	super(p_i45394_1_);
}

@SideOnly(Side.CLIENT)
public static IIcon topIcon;
@SideOnly(Side.CLIENT)
public static IIcon sideIcon;
@SideOnly(Side.CLIENT)
public static IIcon frontIcon;

@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister icon) {
	topIcon = icon.registerIcon(RefStrings.MODID + ":machineBlockTop"); //top
	sideIcon = icon.registerIcon(RefStrings.MODID + ":machineBlockSide"); //side
	frontIcon = icon.registerIcon(RefStrings.MODID + ":machineBlockFront"); //front
}

@Override
public IIcon getIcon(int side, int meta) {
if(side == 0 || side == 1) {
		return topIcon;
	} else if(side == 2) {
		return frontIcon;
	} else {
		return sideIcon;
	}
}

}

Link to comment
Share on other sites

Your @SidedProxy is broken. Show your main mod and your proxy classes.

 

CommonProxy

package com.mcpixelplex.proxy;

public class CommonProxy {

public void initRenderers() {

}

public void initSounds() {

}

}

 

ClientProxy

package com.mcpixelplex.proxy;

public class ClientProxy extends CommonProxy {

@Override
public void initRenderers() {

}

@Override
public void initSounds() {

}

}

 

 

Main

package com.mcpixelplex;

import net.minecraft.item.Item;

import com.mcpixelplex.CreativeTabs.BlessedCreativeTab;
import com.mcpixelplex.Gui.ItemGui;
import com.mcpixelplex.blocks.BBlocks;
import com.mcpixelplex.items.BItems;
import com.mcpixelplex.lib.*;
import com.mcpixelplex.proxy.ClientProxy;
import com.mcpixelplex.proxy.ServerProxy;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = RefStrings.MODID , name = RefStrings.NAME, version = RefStrings.VERSION)
public class Main {

@SidedProxy(clientSide = RefStrings.CLIENTSIDE, serverSide = RefStrings.SERVERSIDE)

public static ServerProxy serverProxy;
public static ClientProxy clientProxy;


@EventHandler
public static void PreLoad(FMLPreInitializationEvent PreEvent){
	BlessedCreativeTab.initializeTabs();

	BItems.mainRegistry();
	BBlocks.mainRegistry();
	CraftingManager.mainRegistry();
	//serverProxy.registerRenderInfo();
	clientProxy.initRenderers();
	clientProxy.initSounds();

}

@EventHandler
public static void load(FMLInitializationEvent event){

}

@EventHandler
public static void PostLoad(FMLPostInitializationEvent PostEvent){

}

}

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.

Announcements



×
×
  • Create New...

Important Information

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