strip extra blank lines (php-cs-fixer)

This commit is contained in:
Dylan K. Taylor 2020-01-22 15:14:10 +00:00
parent 8d7a364b29
commit 055b13a6cf
149 changed files with 0 additions and 188 deletions

View File

@ -435,7 +435,6 @@ class MemoryManager{
fwrite($obData, "$hash@$className: " . json_encode($info, JSON_UNESCAPED_SLASHES) . "\n"); fwrite($obData, "$hash@$className: " . json_encode($info, JSON_UNESCAPED_SLASHES) . "\n");
} }
}while($continue); }while($continue);
$logger->info("Wrote " . count($objects) . " objects"); $logger->info("Wrote " . count($objects) . " objects");

View File

@ -1328,7 +1328,6 @@ class Server{
return true; return true;
} }
$sender->sendMessage($this->getLanguage()->translateString(TextFormat::RED . "%commands.generic.notFound")); $sender->sendMessage($this->getLanguage()->translateString(TextFormat::RED . "%commands.generic.notFound"));
return false; return false;
@ -1580,7 +1579,6 @@ class Server{
$this->uniquePlayers = []; $this->uniquePlayers = [];
} }
/** /**
* @return Language * @return Language
*/ */

View File

@ -30,7 +30,6 @@ if(defined('pocketmine\_VERSION_INFO_INCLUDED')){
} }
const _VERSION_INFO_INCLUDED = true; const _VERSION_INFO_INCLUDED = true;
const NAME = "PocketMine-MP"; const NAME = "PocketMine-MP";
const BASE_VERSION = "4.0.0"; const BASE_VERSION = "4.0.0";
const IS_DEVELOPMENT_BUILD = true; const IS_DEVELOPMENT_BUILD = true;

View File

@ -333,7 +333,6 @@ class Block{
return false; return false;
} }
public function addVelocityToEntity(Entity $entity, Vector3 $vector) : void{ public function addVelocityToEntity(Entity $entity, Vector3 $vector) : void{
} }

View File

@ -307,8 +307,6 @@ class BlockFactory{
self::register(new SeaPickle(new BID(Ids::SEA_PICKLE), "Sea Pickle")); self::register(new SeaPickle(new BID(Ids::SEA_PICKLE), "Sea Pickle"));
self::register(new Skull(new BID(Ids::MOB_HEAD_BLOCK, 0, null, TileSkull::class), "Mob Head")); self::register(new Skull(new BID(Ids::MOB_HEAD_BLOCK, 0, null, TileSkull::class), "Mob Head"));
self::register(new Snow(new BID(Ids::SNOW), "Snow Block")); self::register(new Snow(new BID(Ids::SNOW), "Snow Block"));
self::register(new SnowLayer(new BID(Ids::SNOW_LAYER), "Snow Layer")); self::register(new SnowLayer(new BID(Ids::SNOW_LAYER), "Snow Layer"));
self::register(new SoulSand(new BID(Ids::SOUL_SAND), "Soul Sand")); self::register(new SoulSand(new BID(Ids::SOUL_SAND), "Soul Sand"));
@ -399,7 +397,6 @@ class BlockFactory{
self::register(new WeightedPressurePlateLight(new BID(Ids::LIGHT_WEIGHTED_PRESSURE_PLATE), "Weighted Pressure Plate Light")); self::register(new WeightedPressurePlateLight(new BID(Ids::LIGHT_WEIGHTED_PRESSURE_PLATE), "Weighted Pressure Plate Light"));
self::register(new Wheat(new BID(Ids::WHEAT_BLOCK), "Wheat Block")); self::register(new Wheat(new BID(Ids::WHEAT_BLOCK), "Wheat Block"));
//region ugly treetype -> blockID mapping tables //region ugly treetype -> blockID mapping tables
$woodenStairIds = [ $woodenStairIds = [
TreeType::OAK()->id() => Ids::OAK_STAIRS, TreeType::OAK()->id() => Ids::OAK_STAIRS,

View File

@ -61,7 +61,6 @@ abstract class Crops extends Flowable{
return false; return false;
} }
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{ public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
if($this->age < 7 and $item instanceof Fertilizer){ if($this->age < 7 and $item instanceof Fertilizer){
$block = clone $this; $block = clone $this;

View File

@ -32,7 +32,6 @@ use pocketmine\player\Player;
use pocketmine\world\BlockTransaction; use pocketmine\world\BlockTransaction;
use pocketmine\world\sound\DoorSound; use pocketmine\world\sound\DoorSound;
class Door extends Transparent{ class Door extends Transparent{
/** @var int */ /** @var int */
protected $facing = Facing::NORTH; protected $facing = Facing::NORTH;
@ -46,7 +45,6 @@ class Door extends Transparent{
/** @var bool */ /** @var bool */
protected $powered = false; protected $powered = false;
protected function writeStateToMeta() : int{ protected function writeStateToMeta() : int{
if($this->top){ if($this->top){
return BlockLegacyMetadata::DOOR_FLAG_TOP | return BlockLegacyMetadata::DOOR_FLAG_TOP |

View File

@ -1,6 +1,5 @@
<?php <?php
/* /*
* *
* ____ _ _ __ __ _ __ __ ____ * ____ _ _ __ __ _ __ __ ____

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\ToolTier; use pocketmine\item\ToolTier;
class GlowingObsidian extends Opaque{ class GlowingObsidian extends Opaque{

View File

@ -67,7 +67,6 @@ class Leaves extends Transparent{
return true; return true;
} }
protected function findLog(Vector3 $pos, array &$visited = [], int $distance = 0) : bool{ protected function findLog(Vector3 $pos, array &$visited = [], int $distance = 0) : bool{
$index = World::blockHash($pos->x, $pos->y, $pos->z); $index = World::blockHash($pos->x, $pos->y, $pos->z);
if(isset($visited[$index])){ if(isset($visited[$index])){

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\block\utils\BlockDataSerializer; use pocketmine\block\utils\BlockDataSerializer;
use pocketmine\event\block\BlockGrowEvent; use pocketmine\event\block\BlockGrowEvent;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class Sponge extends Opaque{ class Sponge extends Opaque{
/** @var bool */ /** @var bool */

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class Transparent extends Block{ class Transparent extends Block{
public function isTransparent() : bool{ public function isTransparent() : bool{

View File

@ -51,7 +51,6 @@ class BrewingStand extends Spawnable implements Container, Nameable{
/** @var int */ /** @var int */
private $remainingFuelTime = 0; private $remainingFuelTime = 0;
public function __construct(World $world, Vector3 $pos){ public function __construct(World $world, Vector3 $pos){
parent::__construct($world, $pos); parent::__construct($world, $pos);
$this->inventory = new BrewingStandInventory($this->pos); $this->inventory = new BrewingStandInventory($this->pos);

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\command; namespace pocketmine\command;
interface CommandExecutor{ interface CommandExecutor{
/** /**

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\command; namespace pocketmine\command;
interface CommandMap{ interface CommandMap{
/** /**
@ -39,5 +38,4 @@ interface CommandMap{
public function getCommand(string $name) : ?Command; public function getCommand(string $name) : ?Command;
} }

View File

@ -133,7 +133,6 @@ class SimpleCommandMap implements CommandMap{
]); ]);
} }
public function registerAll(string $fallbackPrefix, array $commands) : void{ public function registerAll(string $fallbackPrefix, array $commands) : void{
foreach($commands as $command){ foreach($commands as $command){
$this->register($fallbackPrefix, $command); $this->register($fallbackPrefix, $command);
@ -288,7 +287,6 @@ class SimpleCommandMap implements CommandMap{
$commandName = ""; $commandName = "";
$command = $this->matchCommand($commandName, $args); $command = $this->matchCommand($commandName, $args);
if($command === null){ if($command === null){
$bad[] = $commandString; $bad[] = $commandString;
}elseif($commandName === $alias){ }elseif($commandName === $alias){

View File

@ -119,7 +119,6 @@ class EffectCommand extends VanillaCommand{
self::broadcastCommandMessage($sender, new TranslationContainer("%commands.effect.success", [$effect->getName(), $instance->getAmplifier(), $player->getDisplayName(), $instance->getDuration() / 20])); self::broadcastCommandMessage($sender, new TranslationContainer("%commands.effect.success", [$effect->getName(), $instance->getAmplifier(), $player->getDisplayName(), $instance->getDuration() / 20]));
} }
return true; return true;
} }
} }

View File

@ -88,7 +88,6 @@ class EnchantCommand extends VanillaCommand{
$item->addEnchantment(new EnchantmentInstance($enchantment, $level)); $item->addEnchantment(new EnchantmentInstance($enchantment, $level));
$player->getInventory()->setItemInHand($item); $player->getInventory()->setItemInHand($item);
self::broadcastCommandMessage($sender, new TranslationContainer("%commands.enchant.success", [$player->getName()])); self::broadcastCommandMessage($sender, new TranslationContainer("%commands.enchant.success", [$player->getName()]));
return true; return true;
} }

View File

@ -68,7 +68,6 @@ class KickCommand extends VanillaCommand{
$sender->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.generic.player.notFound")); $sender->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.generic.player.notFound"));
} }
return true; return true;
} }
} }

View File

@ -121,7 +121,6 @@ class ParticleCommand extends VanillaCommand{
return true; return true;
} }
$sender->sendMessage(new TranslationContainer("commands.particle.success", [$name, $count])); $sender->sendMessage(new TranslationContainer("commands.particle.success", [$name, $count]));
$random = new Random((int) (microtime(true) * 1000) + mt_rand()); $random = new Random((int) (microtime(true) * 1000) + mt_rand());

View File

@ -85,7 +85,6 @@ class TimeCommand extends VanillaCommand{
return true; return true;
} }
if(count($args) < 2){ if(count($args) < 2){
throw new InvalidCommandSyntaxException(); throw new InvalidCommandSyntaxException();
} }

View File

@ -21,10 +21,8 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\command\defaults; namespace pocketmine\command\defaults;
use pocketmine\command\CommandSender; use pocketmine\command\CommandSender;
use pocketmine\command\utils\InvalidCommandSyntaxException; use pocketmine\command\utils\InvalidCommandSyntaxException;
use pocketmine\player\Player; use pocketmine\player\Player;

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity; namespace pocketmine\entity;
interface Ageable{ interface Ageable{
public function isBaby() : bool; public function isBaby() : bool;
} }

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity; namespace pocketmine\entity;
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags; use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags;
abstract class Animal extends Living implements Ageable{ abstract class Animal extends Living implements Ageable{

View File

@ -988,7 +988,6 @@ abstract class Entity{
return true; return true;
} }
$this->timings->startTiming(); $this->timings->startTiming();
if($this->hasMovementUpdate()){ if($this->hasMovementUpdate()){
@ -1017,7 +1016,6 @@ abstract class Entity{
$hasUpdate = $this->entityBaseTick($tickDiff); $hasUpdate = $this->entityBaseTick($tickDiff);
Timings::$timerEntityBaseTick->stopTiming(); Timings::$timerEntityBaseTick->stopTiming();
$this->timings->stopTiming(); $this->timings->stopTiming();
//if($this->isStatic()) //if($this->isStatic())
@ -1188,7 +1186,6 @@ abstract class Entity{
$moveBB->offset(0, 0, $dz); $moveBB->offset(0, 0, $dz);
if($this->stepHeight > 0 and $fallingFlag and ($movX != $dx or $movZ != $dz)){ if($this->stepHeight > 0 and $fallingFlag and ($movX != $dx or $movZ != $dz)){
$cx = $dx; $cx = $dx;
$cy = $dy; $cy = $dy;

View File

@ -231,7 +231,6 @@ final class EntityFactory{
throw new \InvalidArgumentException("Entity $class is not registered"); throw new \InvalidArgumentException("Entity $class is not registered");
} }
/** /**
* Helper function which creates minimal NBT needed to spawn an entity. * Helper function which creates minimal NBT needed to spawn an entity.
*/ */

View File

@ -227,7 +227,6 @@ class ExperienceManager{
$this->totalXp = $amount; $this->totalXp = $amount;
} }
/** /**
* Returns whether the human can pickup XP orbs (checks cooldown time) * Returns whether the human can pickup XP orbs (checks cooldown time)
*/ */

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity; namespace pocketmine\entity;
interface Explosive{ interface Explosive{
public function explode() : void; public function explode() : void;

View File

@ -203,7 +203,6 @@ abstract class Living extends Entity{
return $nbt; return $nbt;
} }
public function hasLineOfSight(Entity $entity) : bool{ public function hasLineOfSight(Entity $entity) : bool{
//TODO: head height //TODO: head height
return true; return true;

View File

@ -79,7 +79,6 @@ class Squid extends WaterAnimal{
return new Vector3(mt_rand(-1000, 1000) / 1000, mt_rand(-500, 500) / 1000, mt_rand(-1000, 1000) / 1000); return new Vector3(mt_rand(-1000, 1000) / 1000, mt_rand(-500, 500) / 1000, mt_rand(-1000, 1000) / 1000);
} }
protected function entityBaseTick(int $tickDiff = 1) : bool{ protected function entityBaseTick(int $tickDiff = 1) : bool{
if($this->closed){ if($this->closed){
return false; return false;

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity\effect; namespace pocketmine\entity\effect;
use pocketmine\utils\Color; use pocketmine\utils\Color;
use pocketmine\utils\RegistryTrait; use pocketmine\utils\RegistryTrait;
use function assert; use function assert;

View File

@ -80,7 +80,6 @@ class ItemEntity extends Entity{
$this->owner = $nbt->getString("Owner", $this->owner); $this->owner = $nbt->getString("Owner", $this->owner);
$this->thrower = $nbt->getString("Thrower", $this->thrower); $this->thrower = $nbt->getString("Thrower", $this->thrower);
$itemTag = $nbt->getCompoundTag("Item"); $itemTag = $nbt->getCompoundTag("Item");
if($itemTag === null){ if($itemTag === null){
throw new \UnexpectedValueException("Invalid " . get_class($this) . " entity: expected \"Item\" NBT tag not found"); throw new \UnexpectedValueException("Invalid " . get_class($this) . " entity: expected \"Item\" NBT tag not found");
@ -91,7 +90,6 @@ class ItemEntity extends Entity{
throw new \UnexpectedValueException("Item for " . get_class($this) . " is invalid"); throw new \UnexpectedValueException("Item for " . get_class($this) . " is invalid");
} }
(new ItemSpawnEvent($this))->call(); (new ItemSpawnEvent($this))->call();
} }

View File

@ -86,7 +86,6 @@ class PaintingMotive{
/** @var int */ /** @var int */
protected $height; protected $height;
public function __construct(int $width, int $height, string $name){ public function __construct(int $width, int $height, string $name){
$this->name = $name; $this->name = $name;
$this->width = $width; $this->width = $width;

View File

@ -51,7 +51,6 @@ class PrimedTNT extends Entity implements Explosive{
public $canCollide = false; public $canCollide = false;
public function attack(EntityDamageEvent $source) : void{ public function attack(EntityDamageEvent $source) : void{
if($source->getCause() === EntityDamageEvent::CAUSE_VOID){ if($source->getCause() === EntityDamageEvent::CAUSE_VOID){
parent::attack($source); parent::attack($source);
@ -66,7 +65,6 @@ class PrimedTNT extends Entity implements Explosive{
$this->getWorld()->addSound($this->location, new IgniteSound()); $this->getWorld()->addSound($this->location, new IgniteSound());
} }
public function canCollideWith(Entity $entity) : bool{ public function canCollideWith(Entity $entity) : bool{
return false; return false;
} }

View File

@ -261,7 +261,6 @@ abstract class Projectile extends Entity{
$this->checkChunks(); $this->checkChunks();
$this->checkBlockCollision(); $this->checkBlockCollision();
Timings::$entityMoveTimer->stopTiming(); Timings::$entityMoveTimer->stopTiming();
} }

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity\projectile; namespace pocketmine\entity\projectile;
interface ProjectileSource{ interface ProjectileSource{
} }

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\event; namespace pocketmine\event;
/** /**
* Events that can be cancelled must use the interface Cancellable * Events that can be cancelled must use the interface Cancellable
*/ */

View File

@ -87,7 +87,6 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
$this->instaBreak = $instaBreak; $this->instaBreak = $instaBreak;
} }
/** /**
* @return Item[] * @return Item[]
*/ */

View File

@ -21,7 +21,6 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\event\plugin; namespace pocketmine\event\plugin;
class PluginDisableEvent extends PluginEvent{ class PluginDisableEvent extends PluginEvent{

View File

@ -21,7 +21,6 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\event\plugin; namespace pocketmine\event\plugin;
class PluginEnableEvent extends PluginEvent{ class PluginEnableEvent extends PluginEvent{

View File

@ -25,7 +25,6 @@ namespace pocketmine\event\server;
use pocketmine\utils\Process; use pocketmine\utils\Process;
/** /**
* Called when the server is in a low-memory state as defined by the properties * Called when the server is in a low-memory state as defined by the properties
* Plugins should free caches or other non-essential data. * Plugins should free caches or other non-essential data.

View File

@ -21,7 +21,6 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\event\world; namespace pocketmine\event\world;
use pocketmine\world\format\Chunk; use pocketmine\world\format\Chunk;

View File

@ -21,7 +21,6 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\event\world; namespace pocketmine\event\world;
use pocketmine\world\format\Chunk; use pocketmine\world\format\Chunk;

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
class Apple extends Food{ class Apple extends Food{
public function getFoodRestore() : int{ public function getFoodRestore() : int{

View File

@ -21,7 +21,6 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
use pocketmine\block\Block; use pocketmine\block\Block;

View File

@ -115,7 +115,6 @@ class Banner extends Item{
); );
} }
$tag->setTag(self::TAG_PATTERNS, $patterns); $tag->setTag(self::TAG_PATTERNS, $patterns);
}else{ }else{
$tag->removeTag(self::TAG_PATTERNS); $tag->removeTag(self::TAG_PATTERNS);

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
class BeetrootSoup extends Food{ class BeetrootSoup extends Food{
public function getMaxStackSize() : int{ public function getMaxStackSize() : int{

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
class Bowl extends Item{ class Bowl extends Item{
//TODO: check fuel //TODO: check fuel

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
class Coal extends Item{ class Coal extends Item{
public function getFuelTime() : int{ public function getFuelTime() : int{

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
use pocketmine\item\enchantment\Enchantment; use pocketmine\item\enchantment\Enchantment;
use pocketmine\item\enchantment\EnchantmentInstance; use pocketmine\item\enchantment\EnchantmentInstance;

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
class Stick extends Item{ class Stick extends Item{
public function getFuelTime() : int{ public function getFuelTime() : int{

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item; namespace pocketmine\item;
use pocketmine\utils\EnumTrait; use pocketmine\utils\EnumTrait;
/** /**

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item\enchantment; namespace pocketmine\item\enchantment;
class EnchantmentEntry{ class EnchantmentEntry{
/** @var Enchantment[] */ /** @var Enchantment[] */

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\item\enchantment; namespace pocketmine\item\enchantment;
class EnchantmentList{ class EnchantmentList{
/** @var \SplFixedArray|EnchantmentEntry[] */ /** @var \SplFixedArray|EnchantmentEntry[] */

View File

@ -50,7 +50,6 @@ class LoginPacketHandler extends PacketHandler{
/** @var NetworkSession */ /** @var NetworkSession */
private $session; private $session;
public function __construct(Server $server, NetworkSession $session){ public function __construct(Server $server, NetworkSession $session){
$this->session = $session; $this->session = $session;
$this->server = $server; $this->server = $server;

View File

@ -57,7 +57,6 @@ class ResourcePacksPacketHandler extends PacketHandler{
/** @var bool[][] uuid => [chunk index => hasSent] */ /** @var bool[][] uuid => [chunk index => hasSent] */
private $downloadedChunks = []; private $downloadedChunks = [];
public function __construct(NetworkSession $session, ResourcePackManager $resourcePackManager){ public function __construct(NetworkSession $session, ResourcePackManager $resourcePackManager){
$this->session = $session; $this->session = $session;
$this->resourcePackManager = $resourcePackManager; $this->resourcePackManager = $resourcePackManager;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class ActorFallPacket extends DataPacket implements ServerboundPacket{ class ActorFallPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use pocketmine\network\mcpe\protocol\types\PlayerPermissions; use pocketmine\network\mcpe\protocol\types\PlayerPermissions;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class AnimatePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{ class AnimatePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{

View File

@ -39,7 +39,6 @@ use function dechex;
class AvailableCommandsPacket extends DataPacket implements ClientboundPacket{ class AvailableCommandsPacket extends DataPacket implements ClientboundPacket{
public const NETWORK_ID = ProtocolInfo::AVAILABLE_COMMANDS_PACKET; public const NETWORK_ID = ProtocolInfo::AVAILABLE_COMMANDS_PACKET;
/** /**
* This flag is set on all types EXCEPT the POSTFIX type. Not completely sure what this is for, but it is required * This flag is set on all types EXCEPT the POSTFIX type. Not completely sure what this is for, but it is required
* for the argtype to work correctly. VALID seems as good a name as any. * for the argtype to work correctly. VALID seems as good a name as any.

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class BlockActorDataPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{ class BlockActorDataPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class BlockPickRequestPacket extends DataPacket implements ServerboundPacket{ class BlockPickRequestPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class BossEventPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{ class BossEventPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class ChunkRadiusUpdatedPacket extends DataPacket implements ClientboundPacket{ class ChunkRadiusUpdatedPacket extends DataPacket implements ClientboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class ClientToServerHandshakePacket extends DataPacket implements ServerboundPacket{ class ClientToServerHandshakePacket extends DataPacket implements ServerboundPacket{

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\BadPacketException; use pocketmine\network\BadPacketException;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use pocketmine\network\mcpe\protocol\types\DimensionIds; use pocketmine\network\mcpe\protocol\types\DimensionIds;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class CommandBlockUpdatePacket extends DataPacket implements ServerboundPacket{ class CommandBlockUpdatePacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class ContainerClosePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{ class ContainerClosePacket extends DataPacket implements ClientboundPacket, ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class ContainerSetDataPacket extends DataPacket implements ClientboundPacket{ class ContainerSetDataPacket extends DataPacket implements ClientboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\crafting\FurnaceRecipe; use pocketmine\crafting\FurnaceRecipe;
use pocketmine\crafting\ShapedRecipe; use pocketmine\crafting\ShapedRecipe;
use pocketmine\crafting\ShapelessRecipe; use pocketmine\crafting\ShapelessRecipe;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class DisconnectPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{ class DisconnectPacket extends DataPacket implements ClientboundPacket, ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class HurtArmorPacket extends DataPacket implements ClientboundPacket{ class HurtArmorPacket extends DataPacket implements ClientboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class InteractPacket extends DataPacket implements ServerboundPacket{ class InteractPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use Particle\Validator\Validator; use Particle\Validator\Validator;
use pocketmine\network\BadPacketException; use pocketmine\network\BadPacketException;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class MapInfoRequestPacket extends DataPacket implements ServerboundPacket{ class MapInfoRequestPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class MobEffectPacket extends DataPacket implements ClientboundPacket{ class MobEffectPacket extends DataPacket implements ClientboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class PlaySoundPacket extends DataPacket implements ClientboundPacket{ class PlaySoundPacket extends DataPacket implements ClientboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class PlayStatusPacket extends DataPacket implements ClientboundPacket{ class PlayStatusPacket extends DataPacket implements ClientboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class PlayerActionPacket extends DataPacket implements ServerboundPacket{ class PlayerActionPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class PlayerInputPacket extends DataPacket implements ServerboundPacket{ class PlayerInputPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use pocketmine\network\mcpe\protocol\types\PlayerListEntry; use pocketmine\network\mcpe\protocol\types\PlayerListEntry;
use function count; use function count;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class RemoveActorPacket extends DataPacket implements ClientboundPacket{ class RemoveActorPacket extends DataPacket implements ClientboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class RequestChunkRadiusPacket extends DataPacket implements ServerboundPacket{ class RequestChunkRadiusPacket extends DataPacket implements ServerboundPacket{

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use function strlen; use function strlen;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class ResourcePackChunkRequestPacket extends DataPacket implements ServerboundPacket{ class ResourcePackChunkRequestPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use function count; use function count;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackType; use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackType;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackStackEntry; use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackStackEntry;
use function count; use function count;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackInfoEntry; use pocketmine\network\mcpe\protocol\types\resourcepacks\ResourcePackInfoEntry;
use function count; use function count;

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;

View File

@ -21,12 +21,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol; namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class RiderJumpPacket extends DataPacket implements ServerboundPacket{ class RiderJumpPacket extends DataPacket implements ServerboundPacket{

View File

@ -25,7 +25,6 @@ namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h> #include <rules/DataPacket.h>
use pocketmine\network\mcpe\handler\PacketHandler; use pocketmine\network\mcpe\handler\PacketHandler;
class ServerToClientHandshakePacket extends DataPacket implements ClientboundPacket{ class ServerToClientHandshakePacket extends DataPacket implements ClientboundPacket{

Some files were not shown because too many files have changed in this diff Show More