Move Location to Entity namespace

This commit is contained in:
Dylan K. Taylor 2019-08-05 17:20:48 +01:00
parent 927e05d038
commit 358fea9645
4 changed files with 6 additions and 3 deletions

View File

@ -692,6 +692,7 @@ This version features substantial changes to the network system, improving coher
- `ChunkLoader->onChunkLoaded()` -> `ChunkListener->onChunkLoaded()`
- `ChunkLoader->onChunkPopulated()` -> `ChunkListener->onChunkPopulated()`
- `ChunkLoader->onChunkUnloaded()` -> `ChunkListener->onChunkUnloaded()`
- `Location` has been moved to `pocketmine\entity\Location`.
#### Particles
- `pocketmine\world\particle\Particle` no longer extends `pocketmine\math\Vector3`, and has been converted to an interface.

View File

@ -59,7 +59,7 @@ use pocketmine\Server;
use pocketmine\timings\Timings;
use pocketmine\timings\TimingsHandler;
use pocketmine\world\format\Chunk;
use pocketmine\world\Location;
use pocketmine\entity\Location;
use pocketmine\world\Position;
use pocketmine\world\World;
use function abs;

View File

@ -21,9 +21,11 @@
declare(strict_types=1);
namespace pocketmine\world;
namespace pocketmine\entity;
use pocketmine\math\Vector3;
use pocketmine\world\Position;
use pocketmine\world\World;
class Location extends Position{

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\player\Player;
use pocketmine\world\Location;
use pocketmine\entity\Location;
class PlayerMoveEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;