summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityTrackerEntry.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2013-04-11 18:08:44 -0500
committerWesley Wolfe <weswolf@aol.com>2013-04-13 00:30:16 -0500
commitce5b97ea831816056d759ef707b6f53f396b16c7 (patch)
tree39cde6a9ce3a320c5cb8255becb04931cd1973c7 /src/main/java/net/minecraft/server/EntityTrackerEntry.java
parent70a778f475aae04cdd8eaa73359f1099b85f86d2 (diff)
downloadcraftbukkit-ce5b97ea831816056d759ef707b6f53f396b16c7.tar
craftbukkit-ce5b97ea831816056d759ef707b6f53f396b16c7.tar.gz
craftbukkit-ce5b97ea831816056d759ef707b6f53f396b16c7.tar.lz
craftbukkit-ce5b97ea831816056d759ef707b6f53f396b16c7.tar.xz
craftbukkit-ce5b97ea831816056d759ef707b6f53f396b16c7.zip
Fetch tile entities from chunks instead of world. Fixes BUKKIT-4055
When looking up tile entities for a chunk to send to a player we currently loop through every tile entity in the world checking if it is within the bounds of the relevant chunk. Instead of doing this we can just use the tile entities list stored in the chunk to avoid this costly searching. As a further optimization, we also modify the generic range-based lookup to use chunks as well. For most lookups this will give a smaller search pool which will result in faster lookups. Thanks to @mikeprimm for the idea and most of the implementation.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityTrackerEntry.java')
0 files changed, 0 insertions, 0 deletions