Jump to content

!1.19.2-43.3.13 Cant get my tab code to not syntax no matter everything i've tried


Recommended Posts

import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;


public class sbcTab {
    public static final CreativeModeTab SBCTAB = new CreativeModeTab("StayBackCretin!") {
        @Override
        public ItemStack makeIcon() {
            return null;
        }
    };
}

Everything I've tried so far has been met with nothing, currently in this code the (@Overide) is causing this error to show : 'Method does not override method from its superclass' but after removing it, trying other things I've always been met with the other one : 'Required type: Builder   Provided: String' or sometimes even both in my attempts, someone help please

Link to comment
Share on other sites

OK Holy WOW, so the leading problem can be multiple things but my experience is really just stupid, the version I was using wasn't the issue, so... when you load a file as an intelij project it creates an .idea folder and if that isn't in the same folder as the build.gradle file it wont let you go in and change the project build sdk to match the one you need and as default there isnt one it dosent just default, needless to say problem solved

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.



×
×
  • Create New...

Important Information

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