mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
project uses tabs instead of spaces(as in CONTRIBUTING.md)
This commit is contained in:
parent
f00318b6ed
commit
62571f26cd
115 changed files with 2291 additions and 2364 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue