Dispenser Posted March 6, 2015 Posted March 6, 2015 Yeah, I am getting an error on "registerRenderThings" in the Modfile. It's marked red. Proxystuff in Modfile: @SidedProxy(clientSide = "com.zeugs.mod.proxy.Clientproxy", serverSide = "com.zeugs.mod.proxy.Commonproxy") public static CommonProxy zeugsProxy; zeugsProxy.registerRenderThings(); Error: Syntax error on token "registerRenderThings", Identifier expected after this token CommonProxy: package com.zeugs.mod.proxy; public class CommonProxy { public void registerRenderThings() { } public void registerTileEntitySpecialRenderer() { } } ClientProxy: package com.zeugs.mod.proxy; public class ClientProxy extends CommonProxy{ public void registerRenderThings() { } public void registerTileEntitySpecialRenderer() { } } Thanks for the help. Quote
Draco18s Posted March 6, 2015 Posted March 6, 2015 Try not-calling the method outside of a method. Quote 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.
Dispenser Posted March 6, 2015 Author Posted March 6, 2015 Try not-calling the method outside of a method. Then how should I do it? I looked up a tutorial and they did it just like this too. Quote
Draco18s Posted March 6, 2015 Posted March 6, 2015 @EventHandler public void postInit(FMLPostInitializationEvent event) { proxy.registerEvents(); proxy.registerRenderers(); } ? Quote 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.
shadowfacts Posted March 6, 2015 Posted March 6, 2015 In @SidedProxy you say the CommonProxy class is called "Commonproxy", without a capital "p". In the class name the p is capitalized. Same for the client proxy. Quote Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
Recommended Posts
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.