Свойство | Тип | Описание | |
---|---|---|---|
$BATCH_THRESHOLD |
Метод | Описание | |
---|---|---|
__construct ( |
||
addStatistics ( $upload, $download ) | ||
blockAddress ( string $address, integer $timeout = 300 ) | Blocks an IP address from the main interface. Setting timeout to -1 will block it forever | |
getDownload ( ) | ||
getInterfaces ( ) : pocketmine\network\SourceInterface[] | ||
getName ( ) | ||
getPacket ( $id ) : |
||
getServer ( ) | ||
getUpload ( ) | ||
processBatch ( |
||
processInterfaces ( ) | ||
registerInterface ( pocketmine\network\SourceInterface $interface ) | ||
registerPacket ( integer $id, |
||
resetStatistics ( ) | ||
sendPacket ( string $address, integer $port, string $payload ) | ||
setName ( string $name ) | Sets the server name shown on each interface Query | |
unblockAddress ( string $address ) | Unblocks an IP address from the main interface. | |
unregisterInterface ( pocketmine\network\SourceInterface $interface ) | ||
updateName ( ) |
Метод | Описание | |
---|---|---|
registerPackets ( ) |
public blockAddress ( string $address, integer $timeout = 300 ) | ||
$address | string | |
$timeout | integer |
public getInterfaces ( ) : pocketmine\network\SourceInterface[] | ||
Результат | pocketmine\network\SourceInterface[] |
public getPacket ( $id ) : |
||
$id | ||
Результат |
public processBatch ( |
||
$packet | ||
$p |
public registerInterface ( pocketmine\network\SourceInterface $interface ) | ||
$interface | pocketmine\network\SourceInterface |
public registerPacket ( integer $id, |
||
$id | integer | 0-255 |
$class |
public unblockAddress ( string $address ) | ||
$address | string |
public unregisterInterface ( pocketmine\network\SourceInterface $interface ) | ||
$interface | pocketmine\network\SourceInterface |