Jump to content

invalid method annotation PreInit error


KillerOfPie

Recommended Posts

It black screens right after the mojang logo and i cant find out whats happening

 

here is the error report mcp gave me

 

 

 

2012-09-18 19:10:14 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.196.366 for Minecraft client:1.3.2, server:1.3.2 loading

2012-09-18 19:10:19 [iNFO] [sTDOUT] 27 achievements

2012-09-18 19:10:19 [iNFO] [sTDOUT] 195 recipes

2012-09-18 19:10:20 [iNFO] [sTDOUT] Setting user: Player828, -

2012-09-18 19:10:20 [iNFO] [sTDERR] Client asked for parameter: server

2012-09-18 19:10:20 [iNFO] [sTDOUT] LWJGL Version: 2.4.2

2012-09-18 19:10:23 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

2012-09-18 19:10:23 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

2012-09-18 19:10:24 [iNFO] [ForgeModLoader] Searching C:\Documents and Settings\Nathan1\Desktop\Gordocraft(Files)\mcp72\jars\mods for mods

2012-09-18 19:10:34 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 3 mods to load

2012-09-18 19:10:34 [sEVERE] [ForgeModLoader] The mod OmniaCraft 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

2012-09-18 19:10:34 [iNFO] [sTDERR] Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError

2012-09-18 19:10:34 [iNFO] [sTDERR] at java.lang.Class.forName0(Native Method)

2012-09-18 19:10:34 [iNFO] [sTDERR] at java.lang.Class.forName(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:51)

2012-09-18 19:10:34 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:348)

2012-09-18 19:10:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2012-09-18 19:10:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2012-09-18 19:10:34 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:124)

2012-09-18 19:10:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2012-09-18 19:10:34 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2012-09-18 19:10:34 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2012-09-18 19:10:34 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81)

2012-09-18 19:10:34 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:458)

2012-09-18 19:10:34 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:144)

2012-09-18 19:10:34 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:405)

2012-09-18 19:10:34 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:737)

2012-09-18 19:10:34 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2012-09-18 19:10:34 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

2012-09-18 19:10:34 [iNFO] [sTDERR] at OmniaCraft.CommonProxy.<clinit>(CommonProxy.java:19)

2012-09-18 19:10:34 [iNFO] [sTDERR] ... 29 more

2012-09-18 19:59:35 [iNFO] [sTDERR] Someone is closing me!

 

 

 

Link to comment
Share on other sites

heres the code for the base file...i see nothing wrong with it and ive tried it before and it worked

 

 

package OmniaCraft;

 

import cpw.mods.fml.common.Mod;

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

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

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.event.FMLPostInitializationEvent;

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

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

 

@Mod(modid = "OmniaCraft" ,name = "OmniaCraft", version = "0.0.01")

@NetworkMod(clientSideRequired = true, serverSideRequired = false, versionBounds = "[0.0.01]")

 

public class BaseOmniaCraft

{

    @SidedProxy

    (clientSide = "OmniaCraft.ClientProxy", serverSide = "OmniaCraft.CommonProxy")

 

    public static CommonProxy proxy;

   

 

    public class OmniaCraft

    {

         

    }

   

    @Init

    public void LoadFrom(FMLInitializationEvent event)

    {

            proxy.registerRenderInformation();

            ClientProxy.registerRenderInformation();

    }

 

    @PreInit

    public void PreLoad(FMLPreInitializationEvent event)

    {

         

    }     

   

    @PostInit

    public void PostLoad(FMLPostInitializationEvent event)

    {

   

    }

   

}

 

 

 

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.