Minecart 5.46.0
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) : boolgetInteractButtonText()
php
public function getInteractButtonText(\pocketmine\player\Player $player) : stringgetMinecartType()
php
public function getMinecartType() : \pocketmine\entity\vehicle\MinecartTypegetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetRideableSeats()
php
public function getRideableSeats() : arrayisRideable()
php
public function isRideable() : boolonActivatorRail() protected
php
protected function onActivatorRail(bool $powered) : voidonInteract()
php
public function onInteract(\pocketmine\player\Player $player, \pocketmine\math\Vector3 $clickPos) : bool