summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/PathfinderGoalSelector.java
Commit message (Collapse)AuthorAgeLines
* Update to Minecraft 1.8Thinkofdeath2014-11-28-153/+0
| | | | For more information please see http://www.spigotmc.org/
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-31/+35
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-2/+2
|
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-0/+18
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-9/+7
|
* Bulk pending cleanup.Wesley Wolfe2012-09-09-14/+14
|
* Use a dynamic pool size for the iterator cacheTravis Watkins2012-08-20-0/+2
| | | | | | | | Many codepaths only end up with one iterator being used at a time and most of the rest only get up to two being used so using a static pool of three is wasteful. This also allows us to efficiently handle cases that exceed 3 iterators in use. Overall this dramatically increases the hit rate and results in less iterators being created.
* Optimize entity AI goal selectorTravis Watkins2012-08-19-20/+27
| | | | | | | | | | | Remove redundant ArrayList to avoid excessive object creation and CPU overhead, the entries are added to the list then immediately iterated through to run so just run them directly. Swap order of some conditionals to perform the more efficient check first as if it fails the list lookup will not be executed. Remove profiling hooks including some rather expensive calls to getSimpleName.
* Add iterator cache to UnsafeList and use it in hotspotsTravis Watkins2012-08-19-3/+7
| | | | | Adds a specialized iterator for the list and a pool of iterators to avoid object churn. Also optimizes the clear() method to reduce object creation.
* Add files from mc-dev for diff visibilityMike Primm2012-08-19-0/+120
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-106/+0
|
* Cleaned up CraftBukkit comments in NMS.Wesley Wolfe2012-07-23-11/+12
| | | | | | | | | | | | | Added newlines at the end of files Fixed improper line endings on some files Matched start - end comments Added some missing comments for diffs Fixed syntax on some spots Minimized some diff Removed some no longer used files Added comment on some required files with no changes Fixed imports of items used once Added imports for items used more than once
* Optimized a little too much. Update goals every tick again to avoid AI oddness.Travis Watkins2012-04-24-6/+2
|
* Avoid doing unnecessary range checks when we're looping from start to end.Travis Watkins2012-04-23-19/+30
| | | | | | | | | | | | | | | | | | 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.
* Optimize AI and EntityLiving tickingTravis Watkins2012-04-21-12/+19
| | | | | | | | Reduce usage of getCubes as it is an expensive call. Remove iterator usage and object creation from PathfinderGoalSelector methods as these are called very often. Update EntityLiving goal selectors less often as this is still quite an expensive task.
* Add PathfinderGoalSelector for diff visibilityTravis Watkins2012-04-21-0/+91