PocketMine
pocketmine Namespace Reference

Namespaces

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

Data Structures

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

Functions

 detect_system_timezone ()
 
 parse_offset ($offset)
 
if(isset($opts["enable-profiler"])) kill ($pid)
 
 getReferenceCount ($value, $includeCurrent=true)
 
 getTrace ($start=1, $trace=null)
 
 cleanPath ($path)
 

Variables

const VERSION = "1.6dev"
 
const API_VERSION = "1.13.1"
 
const CODENAME = "[REDACTED]"
 
const MINECRAFT_VERSION = "v0.13.2 alpha"
 
const MINECRAFT_VERSION_NETWORK = "0.13.2"
 
if(\Phar::running(true)!=="") else
 
if(!extension_loaded("pthreads")) if(!class_exists("ClassLoader", false)) $autoloader = new CompatibleClassLoader()
 
const START_TIME microtime(true)
 
 $opts = getopt("", ["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 Terminal::hasFormattingCodes()
 
 $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)
 
foreach(ThreadManager::getInstance() ->getAll() as $id=> $thread) $killer = new ServerKiller(8)
 

Detailed Description

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

Function Documentation

pocketmine\getReferenceCount (   $value,
  $includeCurrent = true 
)
Parameters
object$value
bool$includeCurrent
Returns
int
pocketmine\parse_offset (   $offset)
Parameters
string$offsetIn the format of +09:00, +02:00, -04:00 etc.
Returns
string

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")) else
Initial value:
{
@define("pocketmine\\PATH", \getcwd() . DIRECTORY_SEPARATOR)