mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Moved dimension id constants to their own interface (PHP needs enums)
This commit is contained in:
@ -31,13 +31,15 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class ChangeDimensionPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::CHANGE_DIMENSION_PACKET;
|
||||
|
||||
const DIMENSION_OVERWORLD = 0;
|
||||
const DIMENSION_NETHER = 1;
|
||||
|
||||
/** @var int */
|
||||
public $dimension;
|
||||
/** @var float */
|
||||
public $x;
|
||||
/** @var float */
|
||||
public $y;
|
||||
/** @var float */
|
||||
public $z;
|
||||
/** @var bool */
|
||||
public $respawn = false;
|
||||
|
||||
public function decodePayload(){
|
||||
|
Reference in New Issue
Block a user