Moved Player-related classes to pocketmine\player namespace

This commit is contained in:
Dylan K. Taylor
2019-06-18 18:51:36 +01:00
parent e82a40b2ba
commit 2559f5ec2b
173 changed files with 184 additions and 179 deletions

View File

@ -27,7 +27,7 @@ use pocketmine\block\Block;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player destroys a block somewhere in the world.

View File

@ -27,7 +27,7 @@ use pocketmine\block\Block;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player places a block

View File

@ -27,7 +27,7 @@ use pocketmine\block\Sign;
use pocketmine\block\utils\SignText;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a sign's text is changed by a player.

View File

@ -29,7 +29,7 @@ use pocketmine\event\Event;
use pocketmine\inventory\CraftingRecipe;
use pocketmine\inventory\transaction\CraftingTransaction;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
class CraftItemEvent extends Event implements Cancellable{
use CancellableTrait;

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\inventory;
use pocketmine\inventory\Inventory;
use pocketmine\Player;
use pocketmine\player\Player;
class InventoryCloseEvent extends InventoryEvent{
/** @var Player */

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\inventory;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\inventory\Inventory;
use pocketmine\Player;
use pocketmine\player\Player;
class InventoryOpenEvent extends InventoryEvent implements Cancellable{
use CancellableTrait;

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player is awarded an achievement

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player does an animation

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\block\Block;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerBedEnterEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\block\Block;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerBedLeaveEvent extends PlayerEvent{
/** @var Block */

View File

@ -27,7 +27,7 @@ use pocketmine\block\Block;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player middle-clicks on a block to get an item in creative mode.

View File

@ -27,7 +27,7 @@ use pocketmine\block\Block;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* @allowHandle

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\entity\Skin;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player changes their skin in-game.

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\permission\PermissionManager;
use pocketmine\Player;
use pocketmine\player\Player;
use pocketmine\Server;
/**

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player runs a command or chats, early in the process

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Event;
use pocketmine\network\mcpe\NetworkSession;
use pocketmine\network\NetworkInterface;
use pocketmine\Player;
use pocketmine\player\Player;
use function is_a;
/**

View File

@ -26,8 +26,8 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\event\Event;
use pocketmine\IPlayer;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\player\IPlayer;
use pocketmine\Server;
/**

View File

@ -32,7 +32,7 @@ use pocketmine\event\entity\EntityDeathEvent;
use pocketmine\item\Item;
use pocketmine\lang\TextContainer;
use pocketmine\lang\TranslationContainer;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerDeathEvent extends EntityDeathEvent{
/** @var Player */

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player tries to drop an item from its hotbar

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\WritableBookBase;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerEditBookEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;

View File

@ -27,7 +27,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\event\Event;
use pocketmine\Player;
use pocketmine\player\Player;
abstract class PlayerEvent extends Event{
/** @var Player */

View File

@ -25,8 +25,8 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\GameMode;
use pocketmine\Player;
use pocketmine\player\GameMode;
use pocketmine\player\Player;
/**
* Called when a player has its gamemode changed

View File

@ -28,7 +28,7 @@ use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\math\Vector3;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player interacts or touches a block (including air?)

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player eats something

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerItemHeldEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;

View File

@ -27,7 +27,7 @@ use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\math\Vector3;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player uses its held item, for example when throwing a projectile.

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\lang\TextContainer;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when the player spawns in the world after logging in, when they first see the terrain.

View File

@ -23,7 +23,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player jumps

View File

@ -26,7 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\lang\TextContainer;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player leaves the server

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called after the player has successfully authenticated, before it spawns. The player is on the loading screen when

View File

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

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\event\Event;
use pocketmine\PlayerInfo;
use pocketmine\player\PlayerInfo;
use function array_keys;
/**

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\lang\TranslationContainer;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player leaves the server

View File

@ -23,8 +23,8 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\player\Player;
use pocketmine\world\Position;
use pocketmine\Player;
/**
* Called when a player is respawned

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerToggleFlightEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;

View File

@ -25,7 +25,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\Player;
use pocketmine\player\Player;
class PlayerTransferEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;

View File

@ -27,7 +27,7 @@ namespace pocketmine\event\player\cheat;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\math\Vector3;
use pocketmine\Player;
use pocketmine\player\Player;
/**
* Called when a player attempts to perform movement cheats such as clipping through blocks.

View File

@ -23,7 +23,7 @@ declare(strict_types=1);
namespace pocketmine\event\server;
use pocketmine\Player;
use pocketmine\player\Player;
use pocketmine\plugin\Plugin;
use pocketmine\Server;
use pocketmine\utils\Binary;