Skip to content

MinecartCommandSender 5.46.0 ​

final class · pocketmine\entity\vehicle\MinecartCommandSender · source

Implements EntityCommandSender

The sender of the commands of a command block minecart: an operator (like a vanilla command block) acting as the cart. Its output becomes the cart's last output.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\vehicle\MinecartCommandBlock $minecart)

getExecutingEntity() ​

php
public function getExecutingEntity() : \pocketmine\entity\Entity

getLanguage() ​

php
public function getLanguage() : \pocketmine\lang\Language

getMinecart() ​

php
public function getMinecart() : \pocketmine\entity\vehicle\MinecartCommandBlock

getName() ​

php
public function getName() : string

getScreenLineHeight() ​

php
public function getScreenLineHeight() : int

getServer() ​

php
public function getServer() : \pocketmine\Server

sendMessage() ​

php
public function sendMessage(\pocketmine\lang\Translatable|string $message) : void

setScreenLineHeight() ​

php
public function setScreenLineHeight(?int $height) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.