mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
CommandSender: provide more detailed types for getScreenLineHeight() and setScreenLineHeight()
This commit is contained in:
parent
025f6407e2
commit
b4e1edaa64
@ -41,11 +41,13 @@ interface CommandSender extends Permissible{
|
||||
/**
|
||||
* Returns the line height of the command-sender's screen. Used for determining sizes for command output pagination
|
||||
* such as in the /help command.
|
||||
* @phpstan-return positive-int
|
||||
*/
|
||||
public function getScreenLineHeight() : int;
|
||||
|
||||
/**
|
||||
* Sets the line height used for command output pagination for this command sender. `null` will reset it to default.
|
||||
* @phpstan-param positive-int|null $height
|
||||
*/
|
||||
public function setScreenLineHeight(?int $height) : void;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user