Files
Rekkit/src/main/java/org/bukkit/craftbukkit
Travis Watkins 846a22304c Provide a faster way to get a location. Adds BUKKIT-3120
Currently when a plugin wants to get the location of something it calls
getLocation() which returns a new Location object. In some scenarios this
can cause enough object creation/destruction churn to be a significant
overhead. For this cases we add a method that updates a provided Location
object so there is no object creation done. This allows well written code
to work on several locations with only a single Location object getting
created.

Providing a more efficient way to set a location was also looked at but
the current solution is the fastest we can provide. You are not required
to create a new Location object every time you want to set something's
location so, with proper design, you can set locations with only a single
Location object being created.
2012-12-07 21:15:05 -06:00
..
2012-09-09 23:19:28 -05:00
2012-03-01 01:12:41 +00:00
2012-09-09 23:19:28 -05:00
2012-09-09 23:19:28 -05:00
2012-01-15 10:54:57 +01:00
2012-09-09 23:19:28 -05:00
2012-01-15 10:54:57 +01:00