Jump to content

Eclipse doesn't handle imports?


Z@Nka

Recommended Posts

OK, so I'm kind of new to forge (I'm a noob  :-\ ) and my Eclipse doesn't want to import anything. I press ctrl + shift and o, but it doesn't work.

	 @EventHandler
 public void preInit(FMLPreInitializationEvent event)
 {}
 @EventHandler	 
               public void init(FMLInitializationEvent event)
               {}
 @EventHandler
 public void postInit(FMLPostInitializationEvent event)
 {}

I did the usual but  The option i had was to do this:

public class bsurvival<FMLInitializationEvent, FMLPreInitializationEvent, FMLPostInitializationEvent> 

Make a .class or add a parameter to the thing( '' ). I think it might be because i still haven't played with 1.7.2 and I didn't add the libraries correctly.

I would appreciate any help from others. ;) 

If I helped then you help, hit that Thank You button or Applaud.

Link to comment
Share on other sites

This works if your modding 1.6.4. No garentees for 1.7, also This will only work if you have your mod in a separate project.

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

Did you add forge or minecraft as a required project for your mod. If not then right-click on your project. Hover over build path and then click configure build path. Click on the project tab and click add and select minecraft.

 

Good Luck!

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Link to comment
Share on other sites

Ok, first of all, sorry for posting here again and annoying you guys again. If this is a very simple fix or I'm just blind then I'm sorry..... Again.

I'm having random errors (red lines) show up under my code...

         @EventHandler
 public void postInit(FMLPostInitializationEvent event)
 {}

This is one of them. (There is many more) There is a red line under the p in "public".

If I helped then you help, hit that Thank You button or Applaud.

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.



×
×
  • Create New...

Important Information

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