project uses tabs instead of spaces(as in CONTRIBUTING.md)

This commit is contained in:
GameHerobrine 2022-12-26 07:01:28 +03:00
parent f00318b6ed
commit 62571f26cd
115 changed files with 2291 additions and 2364 deletions

View file

@ -1,11 +1,11 @@
<?php
class AnimatePacket extends RakNetDataPacket{
/**
* Minecart Hurt, Swing Hand
*/
const ANIM_1 = 0x1;
/**
* Minecart Hurt, Swing Hand
*/
const ANIM_1 = 0x1;
public $action;
public $eid;

View file

@ -1,23 +1,23 @@
<?php
class PlayerInputPacket extends RakNetDataPacket{
public $unk1, $unk2, $unk3, $unk4;
public function encode()
{
}
public $unk1, $unk2, $unk3, $unk4;
public function encode()
{
}
public function pid()
{
return ProtocolInfo::PLAYER_INPUT_PACKET;
}
public function pid()
{
return ProtocolInfo::PLAYER_INPUT_PACKET;
}
public function decode()
{
$this->unk1 = $this->getFloat();
$this->unk2 = $this->getFloat();
$this->unk3 = $this->getByte();
$this->unk4 = $this->getByte();
}
public function decode()
{
$this->unk1 = $this->getFloat();
$this->unk2 = $this->getFloat();
$this->unk3 = $this->getByte();
$this->unk4 = $this->getByte();
}
}

View file

@ -4,22 +4,22 @@ Lets hope it will work
*/
class SetEntityLinkPacket extends RakNetDataPacket{
const TYPE_REMOVE = 0;
const TYPE_RIDE = 1;
const TYPE_PASSENGER = 2;
const TYPE_REMOVE = 0;
const TYPE_RIDE = 1;
const TYPE_PASSENGER = 2;
public $rider;
public $riding;
public $type;
public function decode() {
public $rider;
public $riding;
public $type;
public function decode() {
}
public function encode() {
$this->reset();
$this->putLong($this->rider);
$this->putLong($this->riding);
$this->putByte($this->type);
}
}
public function encode() {
$this->reset();
$this->putLong($this->rider);
$this->putLong($this->riding);
$this->putByte($this->type);
}
public function pid(){