mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Some inspection fixes
This commit is contained in:
parent
9a0b3a6e22
commit
c4d8c28338
@ -23,7 +23,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\block;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\level\Level;
|
||||
|
||||
class GlowingRedstoneOre extends RedstoneOre{
|
||||
|
@ -35,10 +35,15 @@ use pocketmine\utils\TextFormat;
|
||||
class RCON{
|
||||
/** @var Server */
|
||||
private $server;
|
||||
/** @var resource */
|
||||
private $socket;
|
||||
/** @var string */
|
||||
private $password;
|
||||
/** @var int */
|
||||
private $threads;
|
||||
/** @var RCONInstance[] */
|
||||
private $workers = [];
|
||||
/** @var int */
|
||||
private $clientsPerThread;
|
||||
|
||||
public function __construct(Server $server, string $password, int $port = 19132, string $interface = "0.0.0.0", int $threads = 1, int $clientsPerThread = 50){
|
||||
|
@ -28,9 +28,15 @@ namespace pocketmine\utils;
|
||||
* Manages PocketMine-MP version strings, and compares them
|
||||
*/
|
||||
class VersionString{
|
||||
/** @var int */
|
||||
private $generation;
|
||||
/** @var int */
|
||||
private $major;
|
||||
private $build;
|
||||
/** @var int */
|
||||
private $minor;
|
||||
/** @var int */
|
||||
private $build;
|
||||
/** @var bool */
|
||||
private $development = false;
|
||||
|
||||
/**
|
||||
@ -58,7 +64,7 @@ class VersionString{
|
||||
}
|
||||
|
||||
public function getNumber() : int{
|
||||
return (int) (($this->generation << 9) + ($this->major << 5) + $this->minor);
|
||||
return (($this->generation << 9) + ($this->major << 5) + $this->minor);
|
||||
}
|
||||
|
||||
public function getGeneration() : int{
|
||||
|
Loading…
x
Reference in New Issue
Block a user