mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Merge branch 'master' into pr
This commit is contained in:
commit
c3a8ecaeb0
359 changed files with 3109 additions and 3222 deletions
|
|
@ -1,16 +1,16 @@
|
|||
<?php
|
||||
|
||||
class LevelEventPacket extends RakNetDataPacket{
|
||||
|
||||
|
||||
const EVENT_OPEN_DOOR_SOUND = 1003;
|
||||
const EVENT_ALL_PLAYERS_SLEEPING = 9800;
|
||||
|
||||
|
||||
public $evid;
|
||||
public $x;
|
||||
public $y;
|
||||
public $z;
|
||||
public $data;
|
||||
|
||||
|
||||
public function pid(){
|
||||
if($this->PROTOCOL < ProtocolInfo5::CURRENT_PROTOCOL_5){
|
||||
return ProtocolInfo4::LEVEL_EVENT_PACKET;
|
||||
|
|
@ -21,11 +21,11 @@ class LevelEventPacket extends RakNetDataPacket{
|
|||
}
|
||||
return ProtocolInfo::LEVEL_EVENT_PACKET;
|
||||
}
|
||||
|
||||
|
||||
public function decode(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function encode(){
|
||||
$this->reset();
|
||||
$this->putShort($this->evid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue