summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntitySnowman.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2012-04-23 09:47:05 -0500
committerEvilSeph <evilseph@gmail.com>2012-04-23 21:52:08 -0400
commitb7376e08651e32addce2ba986d02f6e53e3ecdf2 (patch)
tree96aebe992dad04b205e7f2781bb387d441734f14 /src/main/java/net/minecraft/server/EntitySnowman.java
parente8459c1ff6a8e58f6d7578a99ea164deadc30884 (diff)
downloadcraftbukkit-b7376e08651e32addce2ba986d02f6e53e3ecdf2.tar
craftbukkit-b7376e08651e32addce2ba986d02f6e53e3ecdf2.tar.gz
craftbukkit-b7376e08651e32addce2ba986d02f6e53e3ecdf2.tar.lz
craftbukkit-b7376e08651e32addce2ba986d02f6e53e3ecdf2.tar.xz
craftbukkit-b7376e08651e32addce2ba986d02f6e53e3ecdf2.zip
Avoid doing unnecessary range checks when we're looping from start to end.
Make EntityLiving call AI logic every tick again. Rework PathfinderGoalSelector logic. Adds UnsafeList for use in places where we use ArrayList and know we won't get index out of range errors. Added usage to World's tickEntities, Chunk's entitySlices to speed up searching for entities, and to PathfinderGoalSelector to speed up dealing with AI goals. Reworked logic in PathfinderGoalSelector with help from fullwall. This code no longer uses an extra ArrayList for setting up goals and only updates which goals should be run every other time it is called. Removed only calling PathfinderGoalSelector every other tick from EntityLiving as we now only setup new goals every other tick. This ensures existing goals run every tick to properly update mob movement.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntitySnowman.java')
0 files changed, 0 insertions, 0 deletions