mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Item: fixed documentation of pop() return type (it's not fluent)
This commit is contained in:
parent
10317527e4
commit
50fcdd6e7e
@ -569,7 +569,7 @@ class Item implements ItemIds, \JsonSerializable{
|
|||||||
/**
|
/**
|
||||||
* Pops an item from the stack and returns it, decreasing the stack count of this item stack by one.
|
* Pops an item from the stack and returns it, decreasing the stack count of this item stack by one.
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return static A clone of this itemstack containing the amount of items that were removed from this stack.
|
||||||
* @throws \InvalidArgumentException if trying to pop more items than are on the stack
|
* @throws \InvalidArgumentException if trying to pop more items than are on the stack
|
||||||
*/
|
*/
|
||||||
public function pop(int $count = 1) : Item{
|
public function pop(int $count = 1) : Item{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user