public function __construct($version = \pocketmine\VERSION)
{
if (is_int($version)) {
$this->minor = $version & 0x1f;
$this->major = $version >> 5 & 0xf;
$this->generation = $version >> 9 & 0xf;
} else {
$this->generation = 0;
$this->major = 0;
$this->minor = 0;
$this->development = true;
$this->build = 0;
}
}