|
PocketMine
|
Public Member Functions | |
| __construct (Server $server) | |
| addStatistics ($upload, $download) | |
| getUpload () | |
| getDownload () | |
| resetStatistics () | |
| getInterfaces () | |
| processInterfaces () | |
| registerInterface (SourceInterface $interface) | |
| unregisterInterface (SourceInterface $interface) | |
| setName ($name) | |
| getName () | |
| updateName () | |
| registerPacket ($id, $class) | |
| getServer () | |
| processBatch (BatchPacket $packet, Player $p) | |
| sendPacket ($address, $port, $payload) | |
| blockAddress ($address, $timeout=300) | |
Data Fields | |
| const | CHANNEL_NONE = 0 |
| const | CHANNEL_PRIORITY = 1 |
| const | CHANNEL_WORLD_CHUNKS = 2 |
| const | CHANNEL_MOVEMENT = 3 |
| const | CHANNEL_BLOCKS = 4 |
| const | CHANNEL_WORLD_EVENTS = 5 |
| const | CHANNEL_ENTITY_SPAWNING = 6 |
| const | CHANNEL_TEXT = 7 |
| const | CHANNEL_END = 31 |
Static Public Attributes | |
| static | $BATCH_THRESHOLD = 512 |
| blockAddress | ( | $address, | |
$timeout = 300 |
|||
| ) |
Blocks an IP address from the main interface. Setting timeout to -1 will block it forever
| string | $address | |
| int | $timeout |
| getInterfaces | ( | ) |
| registerInterface | ( | SourceInterface | $interface | ) |
| SourceInterface | $interface |
| registerPacket | ( | $id, | |
| $class | |||
| ) |
| int | $id | 0-255 |
| DataPacket | $class |
| sendPacket | ( | $address, | |
| $port, | |||
| $payload | |||
| ) |
| string | $address | |
| int | $port | |
| string | $payload |
| setName | ( | $name | ) |
Sets the server name shown on each interface Query
| string | $name |
| unregisterInterface | ( | SourceInterface | $interface | ) |
| SourceInterface | $interface |
| const CHANNEL_BLOCKS = 4 |
| const CHANNEL_END = 31 |
| const CHANNEL_ENTITY_SPAWNING = 6 |
| const CHANNEL_MOVEMENT = 3 |
| const CHANNEL_NONE = 0 |
| const CHANNEL_PRIORITY = 1 |
| const CHANNEL_TEXT = 7 |
| const CHANNEL_WORLD_CHUNKS = 2 |
| const CHANNEL_WORLD_EVENTS = 5 |