mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Some protocol changes for 1.1.0.0
This commit is contained in:
@ -28,16 +28,20 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class InventoryActionPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::INVENTORY_ACTION_PACKET;
|
||||
|
||||
public $unknown;
|
||||
public $uvarint0;
|
||||
public $item;
|
||||
public $varint1;
|
||||
public $varint2;
|
||||
|
||||
public function decode(){
|
||||
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
$this->putUnsignedVarInt($this->unknown);
|
||||
$this->putUnsignedVarInt($this->uvarint0);
|
||||
$this->putSlot($this->item);
|
||||
$this->putVarInt($this->varint1);
|
||||
$this->putVarInt($this->varint2);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Reference in New Issue
Block a user