Posted November 26, 201311 yr 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
November 26, 201311 yr Author you would like me to remove this part ] public static int startEntityId = 300; public static int getUniqueEntityId() {
November 26, 201311 yr 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.
November 26, 201311 yr 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
November 26, 201311 yr ...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.
November 27, 201311 yr 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.