|
PocketMine-MP 5.39.3 git-21ae710729750cd637333d673bbbbbc598fc659e
|
Inheritance diagram for pocketmine\item\Releasable:
Collaboration diagram for pocketmine\item\Releasable:Public Member Functions | |
| canStartUsingItem (Player $player) | |
Implemented by items which can be used by pressing and holding the "use item" button in-game. The player's arm will appear to be raised and the "using item" flag will be set. Examples of this type of behaviour include bows, food and spyglasses.
Definition at line 36 of file Releasable.php.
| pocketmine\item\Releasable::canStartUsingItem | ( | Player | $player | ) |
Returns whether the player can currently trigger the press-and-hold behaviour of the item. For example, bows return whether the player has an arrow that can be fired.
Implemented in pocketmine\item\Bow, pocketmine\item\Food, pocketmine\item\GoatHorn, pocketmine\item\Medicine, pocketmine\item\MilkBucket, pocketmine\item\Potion, pocketmine\item\Spyglass, and pocketmine\item\Trident.