Posted May 14, 201411 yr I will start with this: I know next to nothing about memory usage in java, other than tile entities use more memory than blocks which aren't even actual instances of an object, but just an id for each location. I need a way of getting the locations of all my blocks, in only a certain world. What would be the best way of doing this, making tile entities for each block, or having a list of a new object that stores a world and coordinates?
May 14, 201411 yr The most important thing about TileEntities is that not that they take more memory (of course, yes they do, I'll get to that later), but that they are ticking every single game tick, which can really affect the TPS when you're having a lot of them around. You can disable that though by setting canUpdate in your TileEntity class to false. That's a really useful tip actually. I can see a lot of uses of non-updating (or selectively updating) tile entities. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.