메소드 |
설명 |
|
__construct ( ClassLoader $autoloader, ThreadedLogger $logger, string $filePath, string $dataPath, string $pluginPath ) |
|
|
__debugInfo ( ) |
|
|
addOnlinePlayer ( Player $player ) |
|
|
addOp ( string $name ) |
|
|
addPlayer ( $identifier, Player $player ) |
|
|
addRecipe ( pocketmine\inventory\Recipe $recipe ) |
|
|
addWhitelist ( string $name ) |
|
|
batchPackets ( array $players, array $packets, boolean $forceSync = false ) |
Broadcasts a list of packets in a batch to a list of players |
|
broadcast ( string $message, string $permissions ) : integer |
|
|
broadcastMessage ( string $message, Player[] | null $recipients = null ) : integer |
|
|
broadcastPacket ( array $players, DataPacket $packet ) |
Broadcasts a Minecraft packet to a list of players |
|
broadcastPacketsCallback ( $data, array $identifiers ) |
|
|
broadcastPopup ( string $popup, Player[] | null $recipients = null ) : integer |
|
|
broadcastTip ( string $tip, Player[] | null $recipients = null ) : integer |
|
|
checkConsole ( ) |
|
|
crashDump ( ) |
|
|
disablePlugins ( ) |
|
|
dispatchCommand ( pocketmine\command\CommandSender $sender, string $commandLine ) : boolean |
Executes a command from a CommandSender |
|
doAutoSave ( ) |
|
|
enablePlugin ( pocketmine\plugin\Plugin $plugin ) |
|
|
enablePlugins ( integer $type ) |
|
|
exceptionHandler ( Throwable $e, $trace = null ) |
|
|
forceShutdown ( ) |
|
|
generateLevel ( string $name, integer $seed = null, string $generator = null, array $options = [] ) : boolean |
Generates a new level if it does not exists |
|
getAllowFlight ( ) : boolean |
|
|
getAllowInvCheats ( ) : boolean |
|
|
getApiVersion ( ) : string |
|
|
getAutoSave ( ) : boolean |
|
|
getCodename ( ) : string |
|
|
getCommandAliases ( ) : string[] |
|
|
getCommandMap ( ) : SimpleCommandMap |
|
|
getConfigBoolean ( string $variable, boolean $defaultValue = false ) : boolean |
|
|
getConfigInt ( string $variable, integer $defaultValue ) : integer |
|
|
getConfigString ( string $variable, string $defaultValue = "" ) : string |
|
|
getCraftingManager ( ) : CraftingManager |
|
|
getCrashDumpPath ( ) : string |
|
|
getDataPath ( ) : string |
|
|
getDefaultGamemode ( ) : integer |
|
|
getDefaultLevel ( ) : Level |
|
|
getDifficulty ( ) : integer |
|
|
getDifficultyFromString ( string $str ) : integer |
|
|
getEntityMetadata ( ) : EntityMetadataStore |
|
|
getFilePath ( ) : string |
|
|
getForceGamemode ( ) : boolean |
|
|
getGamemode ( ) : integer |
|
|
getGamemodeFromString ( string $str ) : integer |
Parses a string and returns a gamemode integer, -1 if not found |
|
getGamemodeString ( integer $mode ) : string |
Returns the gamemode text name |
|
getGenerateStructures ( ) : boolean |
|
|
getIPBans ( ) : BanList |
|
|
getInstance ( ) : Server |
|
|
getIp ( ) : string |
|
|
getLanguage ( ) : BaseLang |
|
|
getLevel ( integer $levelId ) : Level |
|
|
getLevelByName ( $name ) : Level |
|
|
getLevelMetadata ( ) : LevelMetadataStore |
|
|
getLevelType ( ) : string |
|
|
getLevels ( ) : Level[] |
|
|
getLoader ( ) : ClassLoader |
|
|
getLogger ( ) : AttachableThreadedLogger |
|
|
getMaxPlayers ( ) : integer |
|
|
getMemoryManager ( ) : MemoryManager |
|
|
getMotd ( ) : string |
|
|
getName ( ) : string |
|
|
getNameBans ( ) : BanList |
|
|
getNetwork ( ) : Network |
|
|
getOfflinePlayer ( string $name ) : OfflinePlayer | Player |
|
|
getOfflinePlayerData ( string $name ) : CompoundTag |
|
|
getOnlinePlayers ( ) : Player[] |
|
|
getOps ( ) : Config |
|
|
getPlayer ( string $name ) : Player |
|
|
getPlayerExact ( string $name ) : Player |
|
|
getPlayerMetadata ( ) : PlayerMetadataStore |
|
|
getPluginCommand ( string $name ) : pocketmine\command\PluginIdentifiableCommand |
|
|
getPluginManager ( ) : PluginManager |
|
|
getPluginPath ( ) : string |
|
|
getPocketMineBuild ( ) : string |
|
|
getPocketMineVersion ( ) : string |
|
|
getPort ( ) : integer |
|
|
getProperty ( string $variable, mixed $defaultValue = null ) : mixed |
|
|
getQueryInformation ( ) |
|
|
getScheduler ( ) : ServerScheduler |
|
|
getServerUniqueId ( ) |
|
|
getSpawnRadius ( ) : integer |
|
|
getTick ( ) : integer |
|
|
getTickUsage ( ) : float |
Returns the TPS usage/load in % |
|
getTickUsageAverage ( ) : float |
Returns the TPS usage/load average in % |
|
getTicksPerSecond ( ) : float |
Returns the last server TPS measure |
|
getTicksPerSecondAverage ( ) : float |
Returns the last server TPS average measure |
|
getUpdater ( ) : AutoUpdater |
|
|
getVersion ( ) : string |
|
|
getViewDistance ( ) : integer |
|
|
getWhitelisted ( ) : Config |
|
|
handlePacket ( string $address, integer $port, string $payload ) |
|
|
handleSignal ( $signo ) |
|
|
hasWhitelist ( ) : boolean |
|
|
isHardcore ( ) : boolean |
|
|
isLanguageForced ( ) : boolean |
|
|
isLevelGenerated ( string $name ) : boolean |
|
|
isLevelLoaded ( string $name ) : boolean |
|
|
isOp ( string $name ) : boolean |
|
|
isRunning ( ) : boolean |
|
|
isWhitelisted ( string $name ) : boolean |
|
|
loadLevel ( string $name ) : boolean |
Loads a level from the data directory |
|
loadPlugin ( pocketmine\plugin\Plugin $plugin ) |
|
|
matchPlayer ( string $partialName ) : Player[] |
|
|
microSleep ( integer $microseconds ) |
|
|
onPlayerLogin ( Player $player ) |
|
|
reload ( ) |
|
|
reloadWhitelist ( ) |
|
|
removeOnlinePlayer ( Player $player ) |
|
|
removeOp ( string $name ) |
|
|
removePlayer ( Player $player ) |
|
|
removePlayerListData ( UUID $uuid, array $players = null ) |
|
|
removeWhitelist ( string $name ) |
|
|
saveOfflinePlayerData ( string $name, CompoundTag $nbtTag, boolean $async = false ) |
|
|
sendFullPlayerListData ( Player $p ) |
|
|
sendRecipeList ( Player $p ) |
|
|
sendUsage ( $type = SendUsageTask::TYPE_STATUS ) |
|
|
setAutoSave ( boolean $value ) |
|
|
setConfigBool ( string $variable, boolean $value ) |
|
|
setConfigInt ( string $variable, integer $value ) |
|
|
setConfigString ( string $variable, string $value ) |
|
|
setDefaultLevel ( Level $level ) |
Sets the default level to a different level
This won't change the level-name property,
it only affects the server on runtime |
|
setshutdownreason ( $reason ) |
|
|
shouldSavePlayerData ( ) : boolean |
|
|
shutdown ( ) |
Shutdowns the server correctly |
|
start ( ) |
Starts the PocketMine-MP server and starts processing ticks and packets |
|
unloadLevel ( Level $level, boolean $forceUnload = false ) : boolean |
|
|
updatePlayerListData ( UUID $uuid, $entityId, $name, $skinId, $skinData, array $players = null ) |
|
|