mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 08:19:45 +00:00
TileFactory: remove dead function
This commit is contained in:
parent
991483938c
commit
e1ef52c7c3
@ -23,7 +23,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\tile;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\level\Level;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
@ -119,24 +118,6 @@ final class TileFactory{
|
||||
throw new \InvalidArgumentException("Class $baseClass is not a registered tile");
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @param string $baseClass
|
||||
* @param Level $level
|
||||
* @param Vector3 $pos
|
||||
* @param Item $item
|
||||
*
|
||||
* @return Tile (instanceof $baseClass)
|
||||
* @throws \InvalidArgumentException if the base class is not a registered tile
|
||||
*/
|
||||
public static function createFromItem(string $baseClass, Level $level, Vector3 $pos, Item $item) : Tile{
|
||||
$tile = self::create($baseClass, $level, $pos);
|
||||
$tile->copyDataFromItem($item);
|
||||
|
||||
return $tile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user