mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
32 lines
No EOL
587 B
PHP
32 lines
No EOL
587 B
PHP
<?php
|
|
|
|
class RemoveBlockPacket extends RakNetDataPacket{
|
|
public $eid;
|
|
public $x;
|
|
public $y;
|
|
public $z;
|
|
|
|
public function pid(){
|
|
return ProtocolInfo::REMOVE_BLOCK_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
$this->eid = $this->getInt();
|
|
$this->x = $this->getInt();
|
|
$this->z = $this->getInt();
|
|
$this->y = $this->getByte();
|
|
}
|
|
|
|
public function encode(){
|
|
|
|
}
|
|
|
|
public function eidsToGlobal(Player $p){
|
|
if($this->localEids){
|
|
$this->localEids = false;
|
|
$this->eid = $p->local2GlobalEID[$this->eid] ?? false;
|
|
if($this->eid === false) return false;
|
|
}
|
|
return true;
|
|
}
|
|
} |