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

When I run my mod, everything goes smoothly until I create a world and I get on the world. Then come up the Warnings: Texture /tutorial/generic/block.png not preloaded, will cause render glitches!

Warning Texture /tutorial/generic/furnace.png not preloaded, will cause render glitches!

 

Here is also a picture of it on the screen: https://www.dropbox.com/s/qi12sgziezbh670/Minecraft%20Preloading%20Error.png?m

 

Now I have everything preloaded and such in my client proxy. Here it is:

package tutorialtest;

import cpw.mods.fml.client.registry.RenderingRegistry;
import net.minecraftforge.client.MinecraftForgeClient;

public class ClientProxy extends CommonProxy {

public static String BLOCKS_PNG = "/tutorial/generic/block.png";
public static String ITEMS_PNG = "/tutorial/generic/items.png";
public static String FURNACE_PNG = "/tutorial/generic/furnace.png";

public static void registerRenderThings() {

MinecraftForgeClient.preloadTexture(BLOCKS_PNG);
MinecraftForgeClient.preloadTexture(ITEMS_PNG);
MinecraftForgeClient.preloadTexture(FURNACE_PNG);
}


public int addArmor(String armor) {
return RenderingRegistry.addNewArmourRendererPrefix(armor);
}
}

 

And just in case you need in since my ClientProxy is extending my CommonProxy here is the CommonProxy:

package tutorialtest;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;

public class CommonProxy implements IGuiHandler {

public static void registerRenderThings() {

}

@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
return null;
}

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
return null;
}
}

 

Im not sure if my CommonProxy is doing the wrong thing since my ClientProxy is connected to it or what. Everything I have in there should make it not say the error. If you know the error please help! Ive been getting this error for a while and my ore's are not generating and I have random furnaces generating in the wild. Not sure what the problem is! Hope you can help!

proxy implementing gui handler? looks weird. use override annotation where it should be (like on registerRenderThings in client proxy), also I don't think that registerRenderThings should be static.

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

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.