Wesley Wolfe
ad1f1c2c75
Add Location.setDirection(Vector). Adds BUKKIT-4862
...
This commit adds an additional method to Location to set the direction of
facing. Included are a set of unit tests that ensure the consistency of
getDirection and setDirection using a set of cardinal directions and
arbituary data points.
Javadocs were also added to pitch and yaw methods that explain the unit
and points of origin.
2013-12-11 03:42:13 -06:00
Wesley Wolfe
0a100eb732
Use simple multiplication for squaring. Fixes BUKKIT-4836
...
This change adds a method to NumberConversions for squaring and
replaces uses of Math.pow(..., 2) with the new method for efficiency
reasons.
2013-10-09 01:56:35 -05:00
Wesley Wolfe
5b3da3a044
[Bleeding] Optimized locToBlock. Addresses BUKKIT-815
2012-02-29 20:13:05 -05:00
Wesley Wolfe
870d10b077
[Bleeding] Cleanup clone methods.
2012-02-20 05:47:03 -05:00
Tahg
b43403e05c
Further fix to Location.
2012-01-10 00:20:43 -05:00
EvilSeph
195bd2bef9
Revert "Improved some debug in Location."
...
This reverts commit 0569e71b26 .
2012-01-09 23:55:43 -05:00
Tahg
0569e71b26
Improved some debug in Location.
2012-01-09 23:44:46 -05:00
Tahg
7f07319472
improved some debug in Location
2012-01-09 01:20:54 -05:00
Erik Broes
dce83b6ce4
Generic cleanup of warnings, whitespace and style.
2011-12-25 16:02:30 +01:00
Kevin
dd0a87901f
Adds Location.getChunk()
2011-12-11 21:13:45 -08:00
Nathan Adams
1791bdeb2a
Added add/subtract by Vector methods to Location, thanks to erisdiscord
2011-10-11 02:04:40 +01:00
Dinnerbone
e6c273e8b0
Many javadoc fixes thanks to Celtic Minstrel
2011-09-25 02:56:40 +01:00
Erik Broes
186db4d956
Fix toString in Location to be readable
2011-09-18 11:48:00 +02:00
Erik Broes
c54ec090c8
Generic cleanup
2011-06-12 12:49:08 +02:00
sk89q
2f06becddc
Made Location less annoying to use. Too bad Location can't simply inherit Vector at this point without breaking things.
2011-06-09 23:50:10 -07:00
sunkid
069df1b6e6
added playSound methods to the World interface and a utility method to Location
2011-06-09 12:32:55 -07:00
Erik Broes
c4d444ce98
Whitespace + general cleanup
2011-05-15 14:06:02 +02:00
VictorD
cd490d826b
Added a few null pointer checks and performed minor touchups (tried improving a few equals, clone and hashCode methods).
2011-03-05 12:27:51 +01:00
Dinnerbone
ba3c41a757
Added easy locToBlock in Location
2011-02-25 09:51:52 +00:00
Dinnerbone
c30e505151
(Relatively) minor javadoc cleanup
2011-02-19 22:49:55 +00:00
Raphfrk
c6d4b1c3c6
Added target block ray trace functionality.
2011-02-18 20:47:59 -05:00
Dinnerbone
024db76644
Added a whole buncha overloads for Location in World
2011-02-18 16:34:49 +00:00
Dinnerbone
46f699e4c9
Location.getBlock() helper method
2011-02-18 16:28:42 +00:00
Erik Broes
8039c05c9f
General cleanup (deprecated+whitespace)
2011-02-02 00:28:41 +01:00
sk89q
e444bad7da
Moved org.bukkit.Vector to org.bukkit.util.
2011-01-15 13:43:09 -08:00
sk89q
61e9e645e8
Made Location.clone() public.
2011-01-08 12:39:54 -08:00
sk89q
de91a2ebdc
Improved Vector and Location with some utility methods, optimized Vector.isInSphere().
2011-01-03 00:44:22 +00:00
sk89q
c3ad31244d
Added Vector class.
2011-01-02 16:59:32 +08:00
Erik Broes
f46d9ada1c
Transition to Maven
2011-01-01 11:23:14 +01:00