CommandBlockSender 5.47.0
Implements BlockCommandSender
The sender of the commands of a command block, named after the block's custom name, "!" by default like Bedrock. It has the operator permissions except the admin ones (CommandBlockPermissions). Its output becomes the block's last output.
Constants
DEFAULT_NAME
php
public const DEFAULT_NAME = "!"Methods
__construct()
php
public function __construct(\pocketmine\block\tile\CommandBlock $commandBlock)getCommandBlock()
php
public function getCommandBlock() : \pocketmine\block\tile\CommandBlockgetExecutingPosition()
php
public function getExecutingPosition() : \pocketmine\world\PositiongetLanguage()
php
public function getLanguage() : \pocketmine\lang\LanguagegetName()
php
public function getName() : stringgetScreenLineHeight()
php
public function getScreenLineHeight() : intgetServer()
php
public function getServer() : \pocketmine\ServersendMessage()
php
public function sendMessage(\pocketmine\lang\Translatable|string $message) : voidsetScreenLineHeight()
php
public function setScreenLineHeight(?int $height) : void