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

I have this class for my core mod here:

 

 

[b]p[/b]ackage mrmewniverse.core;

import java.util.Arrays;

import net.minecraftforge.event.ForgeSubscribe;
import cpw.mods.fml.common.DummyModContainer;
import cpw.mods.fml.common.LoadController;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLServerStartingEvent;

public class CoreModContainer extends DummyModContainer {

    public CoreModContainer() {
        // The equivalent to mod metadata
        ModMetadata metadata = new ModMetadata();
        metadata.authorList = Arrays.asList(new String[] {
            "MrMewniverse"
        });
        metadata.description = "A test Core mod that will be further developed.";
        metadata.modId = CoreReference.MOD_ID;
        metadata.version = CoreReference.VERSION;
        metadata.name = CoreReference.NAME;
    }

    public boolean registerBus(net.minecraftforge.event.EventBus par1EventBus, LoadController par2LoadController) {
        par1EventBus.register(this);
        return true;
    }

    @ForgeSubscribe
    public void onServerStarting(FMLServerStartingEvent event) {
        event.getServer().worldServerForDimension(0).spawnHostileMobs = false;
    }
}

 

 

 

And the bolded letter p is underlined and has this error:

"The type com.google.common.eventbus.EventBus cannot be resolved. It is indirectly referenced from required .class files"

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

This is the exact same error I have. (I must have missed it before posting my thread)

 

It seems to be included in the ItemSword class, and since my vanilla version of MC (with Forge, MCP and FML) loads fine, it must be there.

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.