a2543ff80d
Position: add getLevelNonNull()
...
this allows assuming that a position has a valid world in places where it's never expected to not be valid. Since this is the vast majority of usages, it eliminates a lot of possible null-pointer warnings given by static analysers.
TODO: Consider whether we can make Position->getLevel/World use this behaviour out of the box in the next major version.
2020-04-14 11:08:37 +01:00
9f44adf04a
pass 2, manual removal of incorrect non-nullable @param for nullable native types
2020-01-21 15:44:34 +00:00
c4793241f5
Mass removal of useless @param/@return PHPDoc annotations, pass 1
2020-01-21 15:10:18 +00:00
d1e56c4611
Location: add missing return types for getYaw() and getPitch()
2020-01-14 15:34:40 +00:00
77f7595e0e
Location::__construct() accepts floats for x,y,z
2019-12-12 16:16:16 +00:00
825d4f9702
Location cleanup ( #1380 )
...
There's no sense rewriting code that the parent constructor already implements.
2017-09-12 12:18:35 +01:00
741394dab1
Typehinted up entity API
...
Did you guys think ALPHA7 changes were done?!
Sone stuff still needs some work, most notably data-properties can't be typed yet because they are just mushed into a couple of methods.
2017-08-16 19:04:30 +01:00
ecba80fd63
Fixed some trailing whitespace
...
$ shopt -s globstar
$ sed -i 's/[ \t]*$//' src/pocketmine/*/**.php
:P
2017-08-05 21:07:21 +01:00
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
b8a30309bb
Improve checks for Position::equals() and Location::equals() ( #929 )
...
* Add files via upload
* Position::$level can be null.
* Use getLevel() in place of $level
because of WeakPosition.
2017-07-04 20:25:25 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
f0d12a0b30
Implemented asVector3(), asPosition() and asLocation()
...
Squash merge, closes #973
2017-06-07 16:40:45 +08:00
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
175dd0efa6
PhpStorm inspections
...
Fixed some minor bugs and dropped some obsolete code
pocketmine\level\generator namespace is ignored in this commit
2016-12-14 21:49:35 +00:00
24c1e6880d
Added Location::fromObject(Vector3, Level, yaw, pitch)
2015-05-30 12:46:40 +08:00
afa9acf22f
OH-GAWD-WHY
2015-02-05 19:30:52 +09:00
2f8c281a2e
Added Location::__toString()
2015-02-05 18:00:25 +08:00
43a97c407d
New PlayerMoveEvent, improved player movement event firing
2014-10-14 16:10:50 +02:00