Support 0.7.6

This commit is contained in:
Administrator 2025-03-13 19:23:05 +08:00
parent 3580b884d8
commit 3d8bb7df05
40 changed files with 1377 additions and 12 deletions

View file

@ -1,13 +1,18 @@
<?php
class PlayerInputPacket extends RakNetDataPacket{
public $moveStrafe, $moveForward, $isJumping, $isSneaking;
public function encode()
{
public function encode(){
}
public function pid()
{
public function pid(){
if($this->PROTOCOL < ProtocolInfo12::CURRENT_PROTOCOL_12){
return ProtocolInfo9::PLAYER_INPUT_PACKET;
}elseif($this->PROTOCOL < ProtocolInfo::CURRENT_PROTOCOL){
return ProtocolInfo12::PLAYER_INPUT_PACKET;
}
return ProtocolInfo::PLAYER_INPUT_PACKET;
}