Posted October 28, 201411 yr Hullo, Pursuant of my previous question about messing with Desert Temples, I'm wondering if there's a simple way to iterate through every block in the chunk checking for Chests, instead of manually sorting through every coordinate. Thanks, JavaMatrix You Only Live Once, So Win At Golf. Sorry for my English, I'm American.
October 29, 201411 yr [EDIT] Do what CoolAlias says. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
October 29, 201411 yr Or you can use the list of loaded tile entities (World#loadedTileEntityList) and iterate through that - it is certain to be a much shorter loop than iterating all of the blocks in every chunk. http://i.imgur.com/NdrFdld.png[/img]
October 29, 201411 yr Hi If you for some reason just want the TileEntities in a given chunk, you can use Chunk.chunkTileEntityMap which contains all TileEntities in the chunk, hashed by their ChunkPosition. -TGG
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.