Jump to content

Weird error on the p of my package declaration


Mew
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

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

 Share



×
×
  • Create New...

Important Information

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