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.

[SOVLED][1.8] WorldRenderer: ... of type WorldRenderer error: cannot find symbol

Featured Replies

Posted

Hi.

 

I'm updating a TileEntitySpecialRenderer to 1.8 but I keep getting this error on all calls from the WorldRenderer even though it's clearly defined, intialized and accessible to the entire method:

 

error:

error: cannot find symbol
wr.setColorOpaque_F(1f, 1f, 1f);
symbol: method setColorOpaque_F(1f, 1f, 1f)
location: variable wr of type WorldRenderer

 

(same with setBrightness() method)

 

code:

public void renderTileEntityAt(TileEntity tileEntity, double posX, double posY, double posZ, float scale, int p_180535_9_) {
                 World world = tileEntity.getWorld();

	// bind the overlay resource texture
	Minecraft.getMinecraft().renderEngine.bindTexture(getOreTexture());

	// set up GL
	GL11.glPushMatrix();
	GL11.glTranslated(x, y, z);
	GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
	GL11.glEnable(GL11.GL_ALPHA_TEST);
	GL11.glDisable(GL11.GL_LIGHTING);

	Tessellator t = Tessellator.getInstance();
	WorldRenderer wr = t.getWorldRenderer();

	// set the the alpha settings
	// these three enable opacity of whole image - not sure that that is what i want
	GL11.glEnable(GL11.GL_BLEND);
	GL11.glDepthMask(false);
	GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);		

	wr.setColorOpaque_F(1f, 1f, 1f);
...

 

Any ideas? Eclipse isn't showing anything wrong. I deleted my build folder to ensure nothing is being cached, cleaned the project, even switch from forge 1.8/1281 to forge 1.8/1285.

 

 

  • Author

Solved.  This was cause by the fact that I hadn't updated my build.gradle file properly.  The key lines being:

assetDir = "eclipse" // forge to update to this
mappings = "snapshot_nodoc_20141130" // hadn't added this

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.