Remove extra data, this time without API breaks

this is necessary because the next MCPE release will probably be made before the next PM release.
This commit is contained in:
Dylan K. Taylor
2018-05-02 12:08:44 +01:00
parent 2a54726905
commit 8228774ad4
2 changed files with 19 additions and 11 deletions

View File

@ -857,6 +857,16 @@ class Level implements ChunkManager, Metadatable{
$this->sleepTicks = $ticks;
}
/**
* @deprecated
*
* @param int $x
* @param int $y
* @param int $z
* @param int $id
* @param int $data
* @param Player[]|null $targets
*/
public function sendBlockExtraData(int $x, int $y, int $z, int $id, int $data, array $targets = null){
$pk = new LevelEventPacket;
$pk->evid = LevelEventPacket::EVENT_SET_DATA;
@ -2128,6 +2138,8 @@ class Level implements ChunkManager, Metadatable{
}
/**
* @deprecated This functionality no longer produces any effect and will be removed in a future release
*
* Gets the raw block extra data
*
* @param int $x
@ -2141,6 +2153,7 @@ class Level implements ChunkManager, Metadatable{
}
/**
* @deprecated This functionality no longer produces any effect and will be removed in a future release
* Sets the raw block metadata.
*
* @param int $x