Bukkit/Spigot
800679913f
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.
By: Wesley Wolfe <weswolf@aol.com>
2013-12-11 03:16:14 -06:00
Bukkit/Spigot
db05700052
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.
By: Wesley Wolfe <weswolf@aol.com>
2013-10-09 01:56:35 -05:00
Bukkit/Spigot
fa6a95bc3f
[Bleeding] Optimized locToBlock. Addresses BUKKIT-815
...
By: Wesley Wolfe <weswolf@aol.com>
2012-02-29 16:07:47 -06:00
Bukkit/Spigot
8bc2cf4969
[Bleeding] Cleanup clone methods.
...
By: Wesley Wolfe <weswolf@aol.com>
2012-02-14 01:49:06 -06:00
Bukkit/Spigot
d03379a043
Further fix to Location.
...
By: Tahg <tahgtahv@gmail.com>
2012-01-10 00:20:03 -05:00
Bukkit/Spigot
0bc50733b5
Revert "Improved some debug in Location."
...
This reverts commit 0569e71b26ffc88a5b752ce1217c3ba33e6586e9.
By: EvilSeph <evilseph@gmail.com>
2012-01-09 23:55:43 -05:00
Bukkit/Spigot
21e1a5b725
Improved some debug in Location.
...
By: Tahg <tahgtahv@gmail.com>
2012-01-09 23:44:46 -05:00
Bukkit/Spigot
0d95472921
improved some debug in Location
...
By: Tahg <tahgtahv@gmail.com>
2011-12-27 06:05:24 -05:00
Bukkit/Spigot
aaab1cba23
Generic cleanup of warnings, whitespace and style.
...
By: Erik Broes <erikbroes@grum.nl>
2011-12-25 16:02:30 +01:00
Bukkit/Spigot
602f06a913
Adds Location.getChunk()
...
By: Kevin <kingersoll@gmail.com>
2011-12-11 21:13:45 -08:00
Bukkit/Spigot
ad38184dc2
Added add/subtract by Vector methods to Location, thanks to erisdiscord
...
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-11 02:04:40 +01:00
Bukkit/Spigot
a8e72bdb91
Many javadoc fixes thanks to Celtic Minstrel
...
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-09-25 02:56:40 +01:00
Bukkit/Spigot
ae629bb348
Fix toString in Location to be readable
...
By: Erik Broes <erikbroes@grum.nl>
2011-09-18 11:48:00 +02:00
Bukkit/Spigot
c5408f1030
Generic cleanup
...
By: Erik Broes <erikbroes@grum.nl>
2011-06-12 01:18:17 +02:00
Bukkit/Spigot
1e4c2bd7b1
Made Location less annoying to use. Too bad Location can't simply inherit Vector at this point without breaking things.
...
By: sk89q <the.sk89q@gmail.com>
2011-06-09 23:50:10 -07:00
Bukkit/Spigot
e8e27a86f4
added playSound methods to the World interface and a utility method to Location
...
By: sunkid <sunkid@iminurnetz.com>
2011-06-09 12:32:55 -07:00
Bukkit/Spigot
855f4133b6
Whitespace + general cleanup
...
By: Erik Broes <erikbroes@grum.nl>
2011-05-14 23:22:54 +02:00
Bukkit/Spigot
bb755bb9a2
Added a few null pointer checks and performed minor touchups (tried improving a few equals, clone and hashCode methods).
...
By: VictorD <victor.danell@gmail.com>
2011-03-05 12:27:51 +01:00
Bukkit/Spigot
54e0c4db29
Added easy locToBlock in Location
...
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-25 09:51:52 +00:00
Bukkit/Spigot
6203fc2652
(Relatively) minor javadoc cleanup
...
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-19 22:47:23 +00:00
Bukkit/Spigot
5ba9ae942a
Added target block ray trace functionality.
...
By: Raphfrk <raphfrk@gmail.com>
2011-02-13 17:03:57 +00:00
Bukkit/Spigot
d7633fa07b
Added a whole buncha overloads for Location in World
...
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-18 16:34:49 +00:00
Bukkit/Spigot
9adb4e4d92
Location.getBlock() helper method
...
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-18 16:28:42 +00:00
Bukkit/Spigot
474817bf11
General cleanup (deprecated+whitespace)
...
By: Erik Broes <erikbroes@grum.nl>
2011-02-02 00:02:08 +01:00
Bukkit/Spigot
650e0749d1
Moved org.bukkit.Vector to org.bukkit.util.
...
By: sk89q <the.sk89q@gmail.com>
2011-01-15 13:43:09 -08:00
Bukkit/Spigot
75aa4ef4c5
Made Location.clone() public.
...
By: sk89q <the.sk89q@gmail.com>
2011-01-08 12:39:54 -08:00
Bukkit/Spigot
61b42932b1
Improved Vector and Location with some utility methods, optimized Vector.isInSphere().
...
By: sk89q <the.sk89q@gmail.com>
2011-01-02 10:42:13 -08:00
Bukkit/Spigot
7da3223201
Added Vector class.
...
By: sk89q <the.sk89q@gmail.com>
2011-01-02 16:23:56 +08:00
Bukkit/Spigot
a0fc0979f7
Transition to Maven
...
By: Erik Broes <erikbroes@grum.nl>
2011-01-01 11:23:14 +01:00