Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

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


gottsch
 Share

Recommended Posts

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.

 

 

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.