BaseInventory: slap a TODO on isSlotEmpty()

This commit is contained in:
Dylan K. Taylor 2023-05-05 16:06:37 +01:00
parent 73bf5d4b29
commit 84a943bcec
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -172,6 +172,10 @@ abstract class BaseInventory implements Inventory{
return -1;
}
/**
* TODO: make this abstract and force implementations to implement it properly (BC break)
* This default implementation works, but is slow.
*/
public function isSlotEmpty(int $index) : bool{
return $this->getItem($index)->isNull();
}