CommandSender: provide more detailed types for getScreenLineHeight() and setScreenLineHeight()

This commit is contained in:
Dylan K. Taylor 2022-03-09 17:17:51 +00:00
parent 025f6407e2
commit b4e1edaa64
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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;
}