mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Move Location to Entity namespace
This commit is contained in:
parent
927e05d038
commit
358fea9645
@ -692,6 +692,7 @@ This version features substantial changes to the network system, improving coher
|
|||||||
- `ChunkLoader->onChunkLoaded()` -> `ChunkListener->onChunkLoaded()`
|
- `ChunkLoader->onChunkLoaded()` -> `ChunkListener->onChunkLoaded()`
|
||||||
- `ChunkLoader->onChunkPopulated()` -> `ChunkListener->onChunkPopulated()`
|
- `ChunkLoader->onChunkPopulated()` -> `ChunkListener->onChunkPopulated()`
|
||||||
- `ChunkLoader->onChunkUnloaded()` -> `ChunkListener->onChunkUnloaded()`
|
- `ChunkLoader->onChunkUnloaded()` -> `ChunkListener->onChunkUnloaded()`
|
||||||
|
- `Location` has been moved to `pocketmine\entity\Location`.
|
||||||
|
|
||||||
#### Particles
|
#### Particles
|
||||||
- `pocketmine\world\particle\Particle` no longer extends `pocketmine\math\Vector3`, and has been converted to an interface.
|
- `pocketmine\world\particle\Particle` no longer extends `pocketmine\math\Vector3`, and has been converted to an interface.
|
||||||
|
@ -59,7 +59,7 @@ use pocketmine\Server;
|
|||||||
use pocketmine\timings\Timings;
|
use pocketmine\timings\Timings;
|
||||||
use pocketmine\timings\TimingsHandler;
|
use pocketmine\timings\TimingsHandler;
|
||||||
use pocketmine\world\format\Chunk;
|
use pocketmine\world\format\Chunk;
|
||||||
use pocketmine\world\Location;
|
use pocketmine\entity\Location;
|
||||||
use pocketmine\world\Position;
|
use pocketmine\world\Position;
|
||||||
use pocketmine\world\World;
|
use pocketmine\world\World;
|
||||||
use function abs;
|
use function abs;
|
||||||
|
@ -21,9 +21,11 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace pocketmine\world;
|
namespace pocketmine\entity;
|
||||||
|
|
||||||
use pocketmine\math\Vector3;
|
use pocketmine\math\Vector3;
|
||||||
|
use pocketmine\world\Position;
|
||||||
|
use pocketmine\world\World;
|
||||||
|
|
||||||
class Location extends Position{
|
class Location extends Position{
|
||||||
|
|
@ -26,7 +26,7 @@ namespace pocketmine\event\player;
|
|||||||
use pocketmine\event\Cancellable;
|
use pocketmine\event\Cancellable;
|
||||||
use pocketmine\event\CancellableTrait;
|
use pocketmine\event\CancellableTrait;
|
||||||
use pocketmine\player\Player;
|
use pocketmine\player\Player;
|
||||||
use pocketmine\world\Location;
|
use pocketmine\entity\Location;
|
||||||
|
|
||||||
class PlayerMoveEvent extends PlayerEvent implements Cancellable{
|
class PlayerMoveEvent extends PlayerEvent implements Cancellable{
|
||||||
use CancellableTrait;
|
use CancellableTrait;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user