Jump to content

[1.12.2] Problems with GuiContainer inheritance


Acaeris

Recommended Posts

Hi,

 

I'm getting failures when I run a build of my mod saying that "GuiPedestal is not abstract and does not override abstract method drawGuiContainerBackgroundLayer(float, int, int) in GuiContainer". However, GuiPedestal is extending RebuildGuiContainer which extends GuiContainer and RebuildGuiContainer already has an override for that function. IntelliJ can see this and does not display any error in either class.

 

public GuiPedestal extends RebuildGuiContainer {
  // No drawGuiContainerBackgroundLayer function
}
public RebuildGuiContainer extends GuiContainer {
  @Override
  protected void drawGuiContainerBackgroundLayer(float partialTick, int x, int y) {
    // Does basic background drawing for all mod Guis here.
  }
}

 

I can't work out how Gradle is happily seeing that GuiPedestal is a distant child of GuiContainer but not seeing that RebuildGuiContainer has already implemented the abstract method.

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.

Announcements



×
×
  • Create New...

Important Information

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