BaseInventory: Remove getDefaultSize()

it's possible to want to initialize dynamically-sized inventories which don't have a default size.
This commit is contained in:
Dylan K. Taylor
2019-03-22 19:21:41 +00:00
parent 60225a378f
commit 9904810f24
13 changed files with 17 additions and 64 deletions

View File

@ -34,13 +34,8 @@ class BaseInventoryTest extends TestCase{
}
public function testAddItemDifferentUserData() : void{
$inv = new class extends BaseInventory{
public function getDefaultSize() : int{
return 1;
}
public function getName() : string{
return "";
}
$inv = new class(1) extends BaseInventory{
};
$item1 = ItemFactory::get(Item::ARROW, 0, 1);
$item2 = ItemFactory::get(Item::ARROW, 0, 1)->setCustomName("TEST");