Dylan K. Taylor
45b02d92d4
Math: Added RayTraceResult, removed dependence on MovingObjectPosition
...
MOP doesn't make any sense anyway.
RayTraceResult is a container which represents the point at which a line hits a bounding box. No dependence on blocks or entities is wanted or needed.
MovingObjectPosition has API changes to allow it to wrap RayTraceResult, but nothing uses MOP anymore anyway.
This would allow modularisation of the pocketmine\\math namespace.
2018-01-12 14:28:41 +00:00
Dylan K. Taylor
c64b9ad63a
MovingObjectPosition: Use asVector3() instead of creating a new vector the hard way
2017-12-26 15:37:00 +00:00
Dylan K. Taylor
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
Dylan K. Taylor
9451dd361e
Fixed some issues in MovingObjectPosition
2017-08-20 17:12:25 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
Shoghi Cervantes
8601405a88
Fixed CPU leak
2014-10-31 21:07:00 +01:00
Shoghi Cervantes
7abf52e615
Implemented Vector3 List and AxisAlignedBB Pool to decrease object allocation
2014-10-27 15:39:20 +01:00
Shoghi Cervantes
bf839e821c
Added proper arrows and damage
2014-08-30 01:22:46 +02:00