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

Hi! I try to create a coremod but, when I start minecraft I have this error message:

Mod pickandcraft has been disabled through configuration

I have though add registerBus but i have still this error. Moreover I can't add Override anotation because "The method registerBus(EventBus, LoadController) of type SkinDummyContainer must override or implement a supertype method".

I have look and the method registerBus is in DummyContainer!

My IFMLLoadingPlugin is referencing the true ModContainer.

 

package fr.lefgolas.pickandcraft;

 

import java.util.Arrays;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import cpw.mods.fml.common.DummyModContainer;

import cpw.mods.fml.common.LoadController;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.ModMetadata;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.eventhandler.EventBus;

import cpw.mods.fml.common.registry.GameRegistry;

 

 

public class SkinDummyContainer extends DummyModContainer {

 

public SkinDummyContainer() {

super(new ModMetadata());

ModMetadata meta = getMetadata();

meta.modId = "skincustom";

meta.name = "Skin Custom";

meta.version = "1.0"; //String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);

meta.credits = "gargan";

meta.authorList = Arrays.asList("gargan");

meta.description = "Créer votre skin et uploader le ici: http://publicite-influence.olympe.in/";

meta.url = "http://publicite-influence.olympe.in/";

meta.updateUrl = "";

meta.screenshots = new String[0];

meta.logoFile = "";

 

}

 

@Instance("SkinCustom")

public static SkinDummyContainer instance;

 

public static Block blockEvan;

 

@EventHandler

public void preInit(FMLPreInitializationEvent event)

{

 

}

 

@EventHandler

public void init(FMLInitializationEvent event)

{

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event)

{

 

}

 

@Override

public boolean registerBus(EventBus bus, LoadController controller) {

bus.register(this);

return true;

}

   

}

 

 

  • Author

Thank you very much! I hesitated when I wrote imports, but I thought that was good EventBus Forge

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.