PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine Namespace Reference

Namespaces

 block
 
 command
 
 entity
 
 event
 
 inventory
 
 item
 
 level
 
 math
 
 
 nbt
 
 network
 
 permission
 
 plugin
 
 scheduler
 
 tile
 
 utils
 
 wizard
 

Classes

class  Achievement
 
class  CompatibleClassLoader
 
class  CrashDump
 
interface  IPlayer
 
class  OfflinePlayer
 
class  Player
 
class  Server
 
class  Thread
 
class  ThreadManager
 
class  Worker
 

Functions

if(strpos($default_timezone,"/")===false) detect_system_timezone ()
 
 parse_offset ($offset)
 
if(isset($opts["enable-profiler"])) kill ($pid)
 
 getTrace ($start=1, $trace=null)
 
 cleanPath ($path)
 

Variables

const VERSION = "1.4"
 
const API_VERSION = "1.10.0"
 
const CODENAME = "絶好(Zekkou)ケーキ(Cake)"
 
const MINECRAFT_VERSION = "v0.10.4 alpha"
 
if(\Phar::running(true)!=="") else
 
if(!extension_loaded("pthreads"))
if(!class_exists("ClassLoader",
false)) 
$autoloader = new CompatibleClassLoader()
 
const START_TIME microtime(true)
 
 $opts = getopt("", ["enable-ansi", "disable-ansi", "data:", "plugins:", "no-wizard", "enable-profiler"])
 
const DATA isset($opts["data"]) ? $opts["data"] . DIRECTORY_SEPARATOR : \getcwd() . DIRECTORY_SEPARATOR
 
const PLUGIN_PATH isset($opts["plugins"]) ? $opts["plugins"] . DIRECTORY_SEPARATOR : \getcwd() . DIRECTORY_SEPARATOR . "plugins" . DIRECTORY_SEPARATOR
 
const ANSI (Utils::getOS() !== "win" or isset($opts["enable-ansi"])) and !isset($opts["disable-ansi"])
 
 $logger = new MainLogger(\pocketmine\DATA . "server.log", \pocketmine\ANSI)
 
 $errors = 0
 
if(version_compare("5.6.0",
PHP_VERSION) > 0) if(php_sapi_name()!=="cli")
if(!extension_loaded("sockets")) 
$pthreads_version = phpversion("pthreads")
 
const ENDIANNESS (pack("d", 1) === "\77\360\0\0\0\0\0\0" ? Binary::BIG_ENDIAN : Binary::LITTLE_ENDIAN)
 
const INT32_MASK is_int(0xffffffff) ? 0xffffffff : -1
 
 $server = new Server($autoloader, $logger, \pocketmine\PATH, \pocketmine\DATA, \pocketmine\PLUGIN_PATH)
 

Detailed Description

PocketMine-MP is the Minecraft: PE multiplayer server software Homepage: http://www.pocketmine.net/

Function Documentation

pocketmine\parse_offset (   $offset)
Parameters
string$offsetIn the format of +09:00, +02:00, -04:00 etc.
Returns
string

Definition at line 256 of file PocketMine.php.

Variable Documentation

if (substr_count($pthreads_version,".")< 2) if (version_compare($pthreads_version,"2.0.9")< 0) if (!extension_loaded("uopz")) if (extension_loaded("pocketmine")) if (!extension_loaded("Weakref") and!extension_loaded("weakref")) if (!extension_loaded("curl")) if (!extension_loaded("sqlite3")) if (!extension_loaded("yaml")) if (!extension_loaded("zlib")) if ($errors > 0) if (file_exists(\pocketmine\PATH.".git/refs/heads/master")) pocketmine\else
Initial value:
{
@define("pocketmine\\PATH", \getcwd() . DIRECTORY_SEPARATOR)

Definition at line 87 of file PocketMine.php.