PocketMine
|
Public Member Functions | |
getName () | |
isRunning () | |
getPocketMineVersion () | |
getCodename () | |
getVersion () | |
getApiVersion () | |
getFilePath () | |
getDataPath () | |
getPluginPath () | |
getMaxPlayers () | |
getPort () | |
getViewDistance () | |
getIp () | |
getServerName () | |
getServerUniqueId () | |
getAutoSave () | |
setAutoSave ($value) | |
getLevelType () | |
getGenerateStructures () | |
getGamemode () | |
getForceGamemode () | |
getDifficulty () | |
hasWhitelist () | |
getSpawnRadius () | |
getAllowFlight () | |
isHardcore () | |
getDefaultGamemode () | |
getMotd () | |
getLoader () | |
getLogger () | |
getEntityMetadata () | |
getPlayerMetadata () | |
getLevelMetadata () | |
getUpdater () | |
getPluginManager () | |
getCraftingManager () | |
getScheduler () | |
getTick () | |
getTicksPerSecond () | |
getTicksPerSecondAverage () | |
getTickUsage () | |
getTickUsageAverage () | |
blockAddress ($address, $timeout=300) | |
sendPacket ($address, $port, $payload) | |
getInterfaces () | |
addInterface (SourceInterface $interface) | |
removeInterface (SourceInterface $interface) | |
getCommandMap () | |
getOnlinePlayers () | |
addRecipe (Recipe $recipe) | |
getOfflinePlayer ($name) | |
getOfflinePlayerData ($name) | |
saveOfflinePlayerData ($name, Compound $nbtTag, $async=false) | |
getPlayer ($name) | |
getPlayerExact ($name) | |
matchPlayer ($partialName) | |
removePlayer (Player $player) | |
getLevels () | |
getDefaultLevel () | |
setDefaultLevel ($level) | |
isLevelLoaded ($name) | |
getLevel ($levelId) | |
getLevelByName ($name) | |
unloadLevel (Level $level, $forceUnload=false) | |
loadLevel ($name) | |
isLevelGenerated ($name) | |
getConfigString ($variable, $defaultValue="") | |
getProperty ($variable, $defaultValue=null) | |
setConfigString ($variable, $value) | |
getConfigInt ($variable, $defaultValue=0) | |
setConfigInt ($variable, $value) | |
getConfigBoolean ($variable, $defaultValue=false) | |
setConfigBool ($variable, $value) | |
getPluginCommand ($name) | |
getNameBans () | |
getIPBans () | |
addOp ($name) | |
removeOp ($name) | |
addWhitelist ($name) | |
removeWhitelist ($name) | |
isWhitelisted ($name) | |
isOp ($name) | |
getWhitelisted () | |
getOps () | |
reloadWhitelist () | |
getCommandAliases () | |
__construct (\ClassLoader $autoloader,\ThreadedLogger $logger, $filePath, $dataPath, $pluginPath) | |
batchPackets (array $players, array $packets, $forceSync=false, $channel=0) | |
broadcastPacketsCallback ($data, array $identifiers) | |
enablePlugins ($type) | |
enablePlugin (Plugin $plugin) | |
loadPlugin (Plugin $plugin) | |
disablePlugins () | |
checkConsole () | |
dispatchCommand (CommandSender $sender, $commandLine) | |
reload () | |
shutdown () | |
forceShutdown () | |
getQueryInformation () | |
start () | |
handleSignal ($signo) | |
exceptionHandler (\Exception $e, $trace=null) | |
crashDump () | |
__debugInfo () | |
onPlayerLogin (Player $player) | |
addPlayer ($identifier, Player $player) | |
addOnlinePlayer (Player $player) | |
removeOnlinePlayer (Player $player) | |
updatePlayerListData (UUID $uuid, $entityId, $name, $skinName, $skinData, array $players=null) | |
removePlayerListData (UUID $uuid, array $players=null) | |
sendFullPlayerListData (Player $p) | |
sendRecipeList (Player $p) | |
doAutoSave () | |
sendUsage ($type=SendUsageTask::TYPE_STATUS) | |
getLanguage () | |
isLanguageForced () | |
getNetwork () | |
getMemoryManager () | |
handlePacket ($address, $port, $payload) | |
Static Public Member Functions | |
static | getGamemodeString ($mode) |
static | getGamemodeFromString ($str) |
static | getDifficultyFromString ($str) |
static | getInstance () |
static | broadcastPacket (array $players, DataPacket $packet) |
Data Fields | |
const | BROADCAST_CHANNEL_ADMINISTRATIVE = "pocketmine.broadcast.admin" |
const | BROADCAST_CHANNEL_USERS = "pocketmine.broadcast.user" |
$networkCompressionLevel = 7 | |
The class that manages everything
__construct | ( | \ClassLoader | $autoloader, |
\ThreadedLogger | $logger, | ||
$filePath, | |||
$dataPath, | |||
$pluginPath | |||
) |
\ClassLoader | $autoloader | |
\ThreadedLogger | $logger | |
string | $filePath | |
string | $dataPath | |
string | $pluginPath |
TODO:
addInterface | ( | SourceInterface | $interface | ) |
SourceInterface | $interface |
addOp | ( | $name | ) |
string | $name |
addWhitelist | ( | $name | ) |
string | $name |
batchPackets | ( | array | $players, |
array | $packets, | ||
$forceSync = false , |
|||
$channel = 0 |
|||
) |
Broadcasts a list of packets in a batch to a list of players
Player[] | $players | |
DataPacket[]|string | $packets | |
bool | $forceSync | |
int | $channel |
blockAddress | ( | $address, | |
$timeout = 300 |
|||
) |
$address | ||
int | $timeout |
|
static |
Broadcasts a Minecraft packet to a list of players
Player[] | $players | |
DataPacket | $packet |
dispatchCommand | ( | CommandSender | $sender, |
$commandLine | |||
) |
Executes a command from a CommandSender
CommandSender | $sender | |
string | $commandLine |
enablePlugin | ( | Plugin | $plugin | ) |
Plugin | $plugin |
enablePlugins | ( | $type | ) |
int | $type |
getAllowFlight | ( | ) |
getApiVersion | ( | ) |
getAutoSave | ( | ) |
getCodename | ( | ) |
getCommandAliases | ( | ) |
getCommandMap | ( | ) |
getConfigBoolean | ( | $variable, | |
$defaultValue = false |
|||
) |
string | $variable | |
boolean | $defaultValue |
getConfigInt | ( | $variable, | |
$defaultValue = 0 |
|||
) |
string | $variable | |
int | $defaultValue |
getConfigString | ( | $variable, | |
$defaultValue = "" |
|||
) |
string | $variable | |
string | $defaultValue |
getCraftingManager | ( | ) |
getDataPath | ( | ) |
getDefaultGamemode | ( | ) |
getDefaultLevel | ( | ) |
getDifficulty | ( | ) |
|
static |
string | $str |
getEntityMetadata | ( | ) |
getFilePath | ( | ) |
getForceGamemode | ( | ) |
getGamemode | ( | ) |
|
static |
Parses a string and returns a gamemode integer, -1 if not found
string | $str |
|
static |
Returns the gamemode text name
int | $mode |
getGenerateStructures | ( | ) |
|
static |
getInterfaces | ( | ) |
getIp | ( | ) |
getIPBans | ( | ) |
getLanguage | ( | ) |
getLevel | ( | $levelId | ) |
int | $levelId |
getLevelByName | ( | $name | ) |
$name |
getLevelMetadata | ( | ) |
getLevels | ( | ) |
getLevelType | ( | ) |
getLoader | ( | ) |
getLogger | ( | ) |
getMaxPlayers | ( | ) |
getMemoryManager | ( | ) |
getMotd | ( | ) |
getName | ( | ) |
getNameBans | ( | ) |
getNetwork | ( | ) |
getOfflinePlayer | ( | $name | ) |
string | $name |
getOfflinePlayerData | ( | $name | ) |
string | $name |
getOnlinePlayers | ( | ) |
getOps | ( | ) |
getPlayer | ( | $name | ) |
string | $name |
getPlayerExact | ( | $name | ) |
string | $name |
getPlayerMetadata | ( | ) |
getPluginCommand | ( | $name | ) |
string | $name |
getPluginManager | ( | ) |
getPluginPath | ( | ) |
getPocketMineVersion | ( | ) |
getPort | ( | ) |
getProperty | ( | $variable, | |
$defaultValue = null |
|||
) |
string | $variable | |
mixed | $defaultValue |
getScheduler | ( | ) |
getServerName | ( | ) |
getSpawnRadius | ( | ) |
getTick | ( | ) |
getTicksPerSecond | ( | ) |
Returns the last server TPS measure
getTicksPerSecondAverage | ( | ) |
Returns the last server TPS average measure
getTickUsage | ( | ) |
Returns the TPS usage/load in %
getTickUsageAverage | ( | ) |
Returns the TPS usage/load average in %
getUpdater | ( | ) |
getVersion | ( | ) |
getViewDistance | ( | ) |
getWhitelisted | ( | ) |
handlePacket | ( | $address, | |
$port, | |||
$payload | |||
) |
string | $address | |
int | $port | |
string | $payload | TODO: move this to Network |
hasWhitelist | ( | ) |
isHardcore | ( | ) |
isLanguageForced | ( | ) |
isLevelGenerated | ( | $name | ) |
string | $name |
isLevelLoaded | ( | $name | ) |
string | $name |
isOp | ( | $name | ) |
string | $name |
isRunning | ( | ) |
isWhitelisted | ( | $name | ) |
string | $name |
loadLevel | ( | $name | ) |
Loads a level from the data directory
string | $name |
LevelException |
loadPlugin | ( | Plugin | $plugin | ) |
Plugin | $plugin |
matchPlayer | ( | $partialName | ) |
string | $partialName |
removeInterface | ( | SourceInterface | $interface | ) |
SourceInterface | $interface |
removeOp | ( | $name | ) |
string | $name |
removeWhitelist | ( | $name | ) |
string | $name |
saveOfflinePlayerData | ( | $name, | |
Compound | $nbtTag, | ||
$async = false |
|||
) |
string | $name | |
Compound | $nbtTag | |
bool | $async |
sendPacket | ( | $address, | |
$port, | |||
$payload | |||
) |
$address | |
$port | |
$payload |
setAutoSave | ( | $value | ) |
bool | $value |
setConfigBool | ( | $variable, | |
$value | |||
) |
string | $variable | |
bool | $value |
setConfigInt | ( | $variable, | |
$value | |||
) |
string | $variable | |
int | $value |
setConfigString | ( | $variable, | |
$value | |||
) |
string | $variable | |
string | $value |
setDefaultLevel | ( | $level | ) |
Sets the default level to a different level This won't change the level-name property, it only affects the server on runtime
Level | $level |
shutdown | ( | ) |
Shutdowns the server correctly
start | ( | ) |
Starts the PocketMine-MP server and starts processing ticks and packets
unloadLevel | ( | Level | $level, |
$forceUnload = false |
|||
) |
Level | $level | |
bool | $forceUnload |