Moved dimension id constants to their own interface (PHP needs enums)

This commit is contained in:
Dylan K. Taylor
2017-07-31 16:38:01 +01:00
parent 0b47324fe3
commit 306bf7be5f
3 changed files with 39 additions and 4 deletions

View File

@ -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(){