Cleaned up Container lock handling

This commit is contained in:
Dylan K. Taylor
2018-06-03 13:42:04 +01:00
parent 6aaaaefd2f
commit 7b7917939a
4 changed files with 34 additions and 4 deletions

View File

@ -27,6 +27,7 @@ use pocketmine\inventory\Inventory;
interface Container{
public const TAG_ITEMS = "Items";
public const TAG_LOCK = "Lock";
/**
* @return Inventory
@ -37,4 +38,13 @@ interface Container{
* @return Inventory
*/
public function getRealInventory();
/**
* Returns whether this container can be opened by an item with the given custom name.
*
* @param string $key
*
* @return bool
*/
public function canOpenWith(string $key) : bool;
}