mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
PHP7 to master
This commit is contained in:
@ -37,7 +37,6 @@ abstract class DataPacket extends BinaryStream{
|
||||
const NETWORK_ID = 0;
|
||||
|
||||
public $isEncoded = false;
|
||||
private $channel = 0;
|
||||
|
||||
public function pid(){
|
||||
return $this::NETWORK_ID;
|
||||
@ -52,18 +51,6 @@ abstract class DataPacket extends BinaryStream{
|
||||
$this->offset = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This adds extra overhead on the network, so its usage is now discouraged. It was a test for the viability of this.
|
||||
*/
|
||||
public function setChannel($channel){
|
||||
$this->channel = (int) $channel;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getChannel(){
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
public function clean(){
|
||||
$this->buffer = null;
|
||||
$this->isEncoded = false;
|
||||
|
@ -30,7 +30,7 @@ interface Info{
|
||||
/**
|
||||
* Actual Minecraft: PE protocol version
|
||||
*/
|
||||
const CURRENT_PROTOCOL = 39;
|
||||
const CURRENT_PROTOCOL = 45;
|
||||
|
||||
const LOGIN_PACKET = 0x8f;
|
||||
const PLAY_STATUS_PACKET = 0x90;
|
||||
@ -79,14 +79,20 @@ interface Info{
|
||||
const CRAFTING_EVENT_PACKET = 0xbb;
|
||||
const ADVENTURE_SETTINGS_PACKET = 0xbc;
|
||||
const BLOCK_ENTITY_DATA_PACKET = 0xbd;
|
||||
//const PLAYER_INPUT_PACKET = 0xbe;
|
||||
// const PLAYER_INPUT_PACKET = 0xbe;
|
||||
const FULL_CHUNK_DATA_PACKET = 0xbf;
|
||||
const SET_DIFFICULTY_PACKET = 0xc0;
|
||||
//const CHANGE_DIMENSION_PACKET = 0xc1;
|
||||
// const CHANGE_DIMENSION_PACKET = 0xc1;
|
||||
const SET_PLAYER_GAMETYPE_PACKET = 0xc2;
|
||||
const PLAYER_LIST_PACKET = 0xc3;
|
||||
//const TELEMETRY_EVENT_PACKET = 0xc4;
|
||||
//const SPAWN_EXPERIENCE_ORB_PACKET = 0xc5
|
||||
// const TELEMETRY_EVENT_PACKET = 0xc4;
|
||||
// const SPAWN_EXPERIENCE_ORB_PACKET = 0xc5
|
||||
// const CLIENTBOUND_MAP_ITEM_DATA_PACKET = 0xc6;
|
||||
// const MAP_INFO_REQUEST_PACKET = 0xc7;
|
||||
// const REQUEST_CHUNK_RADIUS_PACKET = 0xc8;
|
||||
// const CHUNK_RADIUS_UPDATE_PACKET = 0xc9;
|
||||
// const ITEM_FRAME_DROP_ITEM_PACKET = 0xca;
|
||||
// const REPLACE_SELECTED_ITEM_PACKET = 0xcb;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user