BlockFactory: remove deprecated functions

This commit is contained in:
Dylan K. Taylor 2019-04-02 19:15:29 +01:00
parent b6e453a5f4
commit 80a6fc5dd1

View File

@ -32,7 +32,6 @@ use pocketmine\item\Item;
use pocketmine\item\ItemFactory;
use pocketmine\item\ItemIds;
use pocketmine\level\Position;
use pocketmine\network\mcpe\protocol\types\RuntimeBlockMapping;
use pocketmine\tile\Comparator;
use function array_fill;
use function array_filter;
@ -669,31 +668,6 @@ class BlockFactory{
return $b !== null and !($b instanceof UnknownBlock);
}
/**
* @internal
* @deprecated
*
* @param int $id
* @param int $meta
*
* @return int
*/
public static function toStaticRuntimeId(int $id, int $meta = 0) : int{
return RuntimeBlockMapping::toStaticRuntimeId($id, $meta);
}
/**
* @deprecated
* @internal
*
* @param int $runtimeId
*
* @return int[] [id, meta]
*/
public static function fromStaticRuntimeId(int $runtimeId) : array{
return RuntimeBlockMapping::fromStaticRuntimeId($runtimeId);
}
/**
* @return Block[]
*/