Posted September 2, 20169 yr So I see at some code in Minecraft, for example when a bucket picks up water or lava, that it uses flag 11 for the updates. What does 11 actually do there? I though flag 7 was the higher one.
September 2, 20169 yr 11 would be flags 1 + 2 + 8. I've never figured out what Flag 8 does. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
September 2, 20169 yr RenderGlobal#notifyBlockUpdate passes the boolean value of flag 8 to RenderChunk#setNeedsUpdate . I don't fully understand the world rendering code, but this appears to signal that the RenderChunk should be rebuilt from the current world data. 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.
September 2, 20169 yr flag 8 seems to be used in RenderGlobal.notifyBlockUpdate() which passes true as a parameter to RenderGlobal.markBlocksForUpdate() if flag 8 is set. markBlocksForUpdate() passes that flag as a parameter to the ViewFrustrum#markBlocksForUpdate() method which passes it as the only parameter to renderChunk#setNeedsUpdate(). So basically it tags the entire chunk for a rendering update it seems. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
September 2, 20169 yr Author Thanks a lot I thought the only flags possible were 1, 2 and 4, didn't realized there was flag 8 also.
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.