Skip to content

MinecartType 5.46.0 ​

enum · pocketmine\entity\vehicle\MinecartType · source

The kinds of minecarts in Bedrock (there is no furnace minecart).

Cases ​

CHEST ​

php
case CHEST

COMMAND_BLOCK ​

php
case COMMAND_BLOCK

HOPPER ​

php
case HOPPER

NORMAL ​

php
case NORMAL

TNT ​

php
case TNT

Methods ​

createEntity() ​

php
public function createEntity(\pocketmine\entity\Location $location) : \pocketmine\entity\vehicle\AbstractMinecart

Creates a new cart of this type (not spawned).

getEntityId() ​

php
public function getEntityId() : string

Bedrock entity identifier of the cart.

getItem() ​

php
public function getItem() : \pocketmine\item\Item

The item that places this cart.

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