Posted January 12, 201510 yr 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.
January 13, 201510 yr 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.