Posted May 13, 20205 yr While i was coding a custom tab an error popped and it said "Modifier public not allowed Modifier static not allowed Variable TAB is never used here" can someone pls help me fix it My Code:https://gist.github.com/P4xil/3ac0bafb99faa52a30bccd9c1a486953
May 13, 20205 yr 21 minutes ago, P4xil said: While i was coding a custom tab an error popped and it said "Modifier public not allowed Modifier static not allowed Variable TAB is never used here" can someone pls help me fix it My Code:https://gist.github.com/P4xil/3ac0bafb99faa52a30bccd9c1a486953 You're trying to make it public from inside a private event
May 13, 20205 yr 1 minute ago, P4xil said: how do i fix it? It's worth familiarising yourself with Java accessors. Research Getters and Setters, some people dislike them but they're quick and easy for accessing a private variable and Minecraft's code is full of them.
May 13, 20205 yr @squidlex what on earth are you talking about @P4xil you are making a field inside a method you cant do that
May 13, 20205 yr 15 minutes ago, poopoodice said: just asking isn't itemgroup both sided? I think so. However I am not sure why it exists on the server side though (since in creative the client dictates the inventory). Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
May 13, 20205 yr 1 hour ago, poopoodice said: just asking isn't itemgroup both sided? Irrelevant to the problem. You cannot create public anything inside a method. This has nothing to do with sides. This is a Java syntax problem. 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.
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.