Skip to content

Minecart 5.46.0 ​

class · pocketmine\entity\vehicle\Minecart · source

Extends AbstractMinecart

The rideable minecart (vanilla minecraft:minecart): one seat; players get in by interacting with it, mobs when they bump into it. A powered activator rail ejects the rider.

Methods ​

canBeRiddenBy() ​

php
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : bool

getInteractButtonText() ​

php
public function getInteractButtonText(\pocketmine\player\Player $player) : string

getMinecartType() ​

php
public function getMinecartType() : \pocketmine\entity\vehicle\MinecartType

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getRideableSeats() ​

php
public function getRideableSeats() : array

isRideable() ​

php
public function isRideable() : bool

onActivatorRail() protected ​

php
protected function onActivatorRail(bool $powered) : void

onInteract() ​

php
public function onInteract(\pocketmine\player\Player $player, \pocketmine\math\Vector3 $clickPos) : bool

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