Skip to content

MinecartCommandBlockInventory 5.46.0 ​

final class · pocketmine\inventory\MinecartCommandBlockInventory · source

Extends SimpleInventory
Implements TemporaryInventory

The command block screen of a command block minecart (window type COMMAND_BLOCK). It holds no items: the client sends the edited command in a CommandBlockUpdatePacket.

Methods ​

__construct() ​

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

getMinecart() ​

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

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