mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Cleaned up Container lock handling
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user