mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-20 18:31:23 +00:00
BlockFactory: remove deprecated functions
This commit is contained in:
parent
b6e453a5f4
commit
80a6fc5dd1
@ -32,7 +32,6 @@ use pocketmine\item\Item;
|
|||||||
use pocketmine\item\ItemFactory;
|
use pocketmine\item\ItemFactory;
|
||||||
use pocketmine\item\ItemIds;
|
use pocketmine\item\ItemIds;
|
||||||
use pocketmine\level\Position;
|
use pocketmine\level\Position;
|
||||||
use pocketmine\network\mcpe\protocol\types\RuntimeBlockMapping;
|
|
||||||
use pocketmine\tile\Comparator;
|
use pocketmine\tile\Comparator;
|
||||||
use function array_fill;
|
use function array_fill;
|
||||||
use function array_filter;
|
use function array_filter;
|
||||||
@ -669,31 +668,6 @@ class BlockFactory{
|
|||||||
return $b !== null and !($b instanceof UnknownBlock);
|
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[]
|
* @return Block[]
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user