Removed ItemFactory

This commit is contained in:
Dylan K. Taylor
2022-07-06 23:57:29 +01:00
parent 976502e3db
commit 4d6fb2b925
2 changed files with 2 additions and 95 deletions

View File

@ -25,7 +25,7 @@ namespace pocketmine\data\bedrock\item;
use PHPUnit\Framework\TestCase;
use pocketmine\block\BlockFactory;
use pocketmine\item\ItemFactory;
use pocketmine\item\VanillaItems;
use pocketmine\world\format\io\GlobalBlockStateHandlers;
final class ItemSerializerDeserializerTest extends TestCase{
@ -39,7 +39,7 @@ final class ItemSerializerDeserializerTest extends TestCase{
}
public function testAllVanillaItemsSerializableAndDeserializable() : void{
foreach(ItemFactory::getInstance()->getAllKnownTypes() as $item){
foreach(VanillaItems::getAll() as $item){
if($item->isNull()){
continue;
}