Jump to content

Mob not registering in mainclass plz help :)


ClarmonkGaming

Recommended Posts

 

I am using forge 1.6.4

and eclipse keplar

@Mod(modid = "HedgeHogs", name = "HedgeHogs", version = "0.1 Alpha")

public class HedgeHogs {

 

= = When class starts and when class ends

this is my class

==============================================================================================

public HedgeHogs() {

 

 

EntityRegistry.registerGlobalEntityID(EntityHedgeHogPassive.class, "HedegHog", 1);

EntityRegistry.addSpawn(EntityHedgeHogPassive.class, 15, 3, 20, EnumCreatureType.monster);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityHedgeHogPassive.class, 0xfffffff, 0x0033FF);

 

 

 

 

public static int startEntityId = 300;

public static int getUniqueEntityId() {

do {

startEntityId++;

}

while(EntityList.getStringFromID(startEntityId) != null);

return startEntityId++;

}

 

 

 

 

}

 

 

}

==============================================================================================

My first error that I get is on this line

 

public static int startEntityId = 300;

 

the error says  Illegal modifier for parameter startEntityId; only final is permitted

 

my second error I get is on the line

 

public static int getUniqueEntityId() {

 

the error says Multiple markers at this line

 

- Syntax error, insert "enum Identifier" to complete

EnumHeaderName

- Syntax error, insert "EnumBody" to complete BlockStatement

- Syntax error on token "int", @ expected

 

Please help me with my problem

 

                                                                            Sincerely,

                                                                        ClarmonkGaming

 

Link to comment
Share on other sites

you would like me to remove this part

 

Yes, because it is wholly unnecessary.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

new problem

================================================================================================

startEntityId++;

}

while(EntityList.getStringFromID(startEntityId) != null);

return startEntityId++;

}

 

 

 

 

}

 

 

 

 

}

==============================================================================================

 

i get my errors here

 

startEntityId++; the error on this line says startEntityId cannot be resolved to a variable

} the error on this line says Syntax error on token "}", { expected

 

 

thank you for helping me

 

 

Link to comment
Share on other sites

...Because you took out the first line of the function without taking out the rest of the function.

 

Go learn Java

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.