Remove ItemFactory::get(), use ItemFactory::fromTypeId() for VanillaItems

soon we'll invert the dependency and set up all this stuff in VanillaItems directly, rendering ItemFactory (mostly) unnecessary.
This commit is contained in:
Dylan K. Taylor
2022-07-05 14:26:02 +01:00
parent 6be92ea6f7
commit 4e71cc7d79
4 changed files with 263 additions and 407 deletions

View File

@ -39,7 +39,7 @@ final class ItemSerializerDeserializerTest extends TestCase{
}
public function testAllVanillaItemsSerializableAndDeserializable() : void{
foreach(ItemFactory::getInstance()->getAllRegistered() as $item){
foreach(ItemFactory::getInstance()->getAllKnownTypes() as $item){
if($item->isNull()){
continue;
}