Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

 

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

 

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.

  • Author

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

 

 

...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.

  • Author

i am so sorry you see i am just learning java however thanks for helping me out so that whole statement was unnecessary hwo to my mob going to get an id then 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.