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.

[1.7.10][SOLVED] Problem with custom rendered Block after Exporting to.jar

Featured Replies

  • Author

I tested a bit futher and it seems that the debug-mode in eclipse always and the exported .jar file sometimes completely bypassing the

public void renderItem(ItemRenderType type, ItemStack item, Object... data) 

method. And again, if someone as some ideas on whats going on with that: reply please!

  • Author

Oh! My! God! I solved the problem. I don't even need to explain what I did:

 

Here a part of my old main.java:

 

@EventHandler

public void preInit(FMLPreInitializationEvent event){

allobjects();

 

allRegisters();

 

Recipes_Items.allItemRecipes();

 

Recipes_Blocks.allBlockRecipes();

}

 

@EventHandler

public void load(FMLPreInitializationEvent event){

 

}

 

@EventHandler

public void postInit(FMLPreInitializationEvent event){

proxy.registerRenders();

}

 

 

and a part of the main.java as it is now:

 

@EventHandler

public void preInit(FMLPreInitializationEvent event ){

allobjects();

 

allRegisters();

 

Recipes_Items.allItemRecipes();

 

Recipes_Blocks.allBlockRecipes();

}

 

@EventHandler

public void load(FMLInitializationEvent event){

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event){

proxy.registerRenders();

}

 

 

Thanks for the help...

There are no words that would describe how silly I feel at the moment... *faceplam*

Those two look identical.  What did you find? 

Long time Bukkit & Forge Programmer

Happy to try and help

Those two look identical.  What did you find?

The original code had

FMLPreInitializationEvent

as the parameter for all three methods instead of each method having the appropriate event parameter.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Ah, thanks.  I looked at that for a few minutes and my mind just wanted to read what it thought should be there and I couldn't see it.

Long time Bukkit & Forge Programmer

Happy to try and help

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.