Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

[edit: solved]

 

My mod is completed and everything works when I test via `gradlew runClient`. I'm trying to make the first build of it. After fixing multiple issues I've come across one that's left me completely stumped.

When I open the creative tabs, I crash and get the following error:
 

java.lang.AbstractMethodError: Method yuudaari/souls/common/block/BarsEndersteel.getCreativeTabToDisplayOn()Lnet/minecraft/creativetab/CreativeTabs; is abstract
    at yuudaari.souls.common.block.BarsEndersteel.getCreativeTabToDisplayOn(BarsEndersteel.java)
    at yuudaari.souls.common.CreativeTab.func_78018_a(CreativeTab.java:33)
    at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147050_b(GuiContainerCreative.java:500)
    at net.minecraft.client.gui.inventory.GuiContainerCreative.func_146286_b(GuiContainerCreative.java:443)
    at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:543)
    at net.minecraft.client.gui.inventory.GuiContainerCreative.func_146274_d(GuiContainerCreative.java:590)
    at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:501)
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1757)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1096)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)



All of my blocks extend the same base classes which provide their own getCreativeTabToDisplayOn function (because I'm lazy and didn't want to have to write that line on every block i make). I originally had it running setCreativeTab(CreativeTab.INSTANCE); and changed it to this in an effort to fix the problem. It didn't work, obviously.

 

@Override
public CreativeTabs getCreativeTabToDisplayOn() {
    return CreativeTab.INSTANCE;
}

See my creative tab class, which is instantiated statically. 
 
What am I doing wrong?

[edit: solved]
Seems like for some reason abstract works differently from workspace to game, I have no idea why. I use a function marked as abstract because I know that any instances will have the function implemented, but for some reason it's not in the build. No clue.

Edited by Aarilight

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.