TileFactory: remove dead function

This commit is contained in:
Dylan K. Taylor 2019-02-23 15:57:53 +00:00
parent 991483938c
commit e1ef52c7c3

View File

@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\tile; namespace pocketmine\tile;
use pocketmine\item\Item;
use pocketmine\level\Level; use pocketmine\level\Level;
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\nbt\tag\CompoundTag; use pocketmine\nbt\tag\CompoundTag;
@ -119,24 +118,6 @@ final class TileFactory{
throw new \InvalidArgumentException("Class $baseClass is not a registered tile"); 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 * @internal
* *