mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Check to see if the player can start using the Releasable item. (#4532)
This commit is contained in:
@@ -23,9 +23,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\item;
|
||||
|
||||
use pocketmine\player\Player;
|
||||
|
||||
/**
|
||||
* Interface implemented by objects that can be used.
|
||||
*/
|
||||
interface Releasable{
|
||||
|
||||
public function canStartUsingItem(Player $player) : bool;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user