mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Merge branch 'master' into mcpe-1.2
This commit is contained in:
commit
643e10037c
@ -119,7 +119,7 @@ class Block extends Position implements BlockIds, Metadatable{
|
|||||||
self::registerBlock(new Gold());
|
self::registerBlock(new Gold());
|
||||||
self::registerBlock(new Iron());
|
self::registerBlock(new Iron());
|
||||||
self::registerBlock(new DoubleStoneSlab());
|
self::registerBlock(new DoubleStoneSlab());
|
||||||
self::registerBlock(new Slab());
|
self::registerBlock(new StoneSlab());
|
||||||
self::registerBlock(new Bricks());
|
self::registerBlock(new Bricks());
|
||||||
self::registerBlock(new TNT());
|
self::registerBlock(new TNT());
|
||||||
self::registerBlock(new Bookshelf());
|
self::registerBlock(new Bookshelf());
|
||||||
|
@ -174,7 +174,7 @@ interface BlockIds{
|
|||||||
const TRAPPED_CHEST = 146;
|
const TRAPPED_CHEST = 146;
|
||||||
const LIGHT_WEIGHTED_PRESSURE_PLATE = 147;
|
const LIGHT_WEIGHTED_PRESSURE_PLATE = 147;
|
||||||
const HEAVY_WEIGHTED_PRESSURE_PLATE = 148;
|
const HEAVY_WEIGHTED_PRESSURE_PLATE = 148;
|
||||||
const COMPATATOR_BLOCK = 149, UNPOWERED_COMPARATOR = 149;
|
const COMPARATOR_BLOCK = 149, UNPOWERED_COMPARATOR = 149;
|
||||||
const POWERED_COMPARATOR = 150;
|
const POWERED_COMPARATOR = 150;
|
||||||
const DAYLIGHT_DETECTOR = 151, DAYLIGHT_SENSOR = 151;
|
const DAYLIGHT_DETECTOR = 151, DAYLIGHT_SENSOR = 151;
|
||||||
const REDSTONE_BLOCK = 152;
|
const REDSTONE_BLOCK = 152;
|
||||||
|
@ -23,7 +23,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
use pocketmine\item\Item;
|
|
||||||
use pocketmine\level\Level;
|
use pocketmine\level\Level;
|
||||||
|
|
||||||
class GlowingRedstoneOre extends RedstoneOre{
|
class GlowingRedstoneOre extends RedstoneOre{
|
||||||
|
@ -26,7 +26,7 @@ namespace pocketmine\block;
|
|||||||
use pocketmine\item\Item;
|
use pocketmine\item\Item;
|
||||||
use pocketmine\item\Tool;
|
use pocketmine\item\Tool;
|
||||||
|
|
||||||
class Slab extends WoodenSlab{
|
class StoneSlab extends WoodenSlab{
|
||||||
const STONE = 0;
|
const STONE = 0;
|
||||||
const SANDSTONE = 1;
|
const SANDSTONE = 1;
|
||||||
const WOODEN = 2;
|
const WOODEN = 2;
|
@ -35,10 +35,15 @@ use pocketmine\utils\TextFormat;
|
|||||||
class RCON{
|
class RCON{
|
||||||
/** @var Server */
|
/** @var Server */
|
||||||
private $server;
|
private $server;
|
||||||
|
/** @var resource */
|
||||||
private $socket;
|
private $socket;
|
||||||
|
/** @var string */
|
||||||
private $password;
|
private $password;
|
||||||
|
/** @var int */
|
||||||
|
private $threads;
|
||||||
/** @var RCONInstance[] */
|
/** @var RCONInstance[] */
|
||||||
private $workers = [];
|
private $workers = [];
|
||||||
|
/** @var int */
|
||||||
private $clientsPerThread;
|
private $clientsPerThread;
|
||||||
|
|
||||||
public function __construct(Server $server, string $password, int $port = 19132, string $interface = "0.0.0.0", int $threads = 1, int $clientsPerThread = 50){
|
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
|
* Manages PocketMine-MP version strings, and compares them
|
||||||
*/
|
*/
|
||||||
class VersionString{
|
class VersionString{
|
||||||
|
/** @var int */
|
||||||
|
private $generation;
|
||||||
|
/** @var int */
|
||||||
private $major;
|
private $major;
|
||||||
private $build;
|
/** @var int */
|
||||||
private $minor;
|
private $minor;
|
||||||
|
/** @var int */
|
||||||
|
private $build;
|
||||||
|
/** @var bool */
|
||||||
private $development = false;
|
private $development = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -58,7 +64,7 @@ class VersionString{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getNumber() : int{
|
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{
|
public function getGeneration() : int{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user