BaseRail
Extends Flowable
Methods
getCurrentShapeConnections() protected
php
abstract protected function getCurrentShapeConnections() : arrayReturns the connection directions of this rail (depending on the current block state)
getPossibleConnectionDirectionsOneConstraint() protected
php
protected function getPossibleConnectionDirectionsOneConstraint(int $constraint) : arrayonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidonPostPlace()
php
public function onPostPlace() : voidplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : boolsearchState() protected
php
protected static function searchState(array $connections, array $lookup) : ?intsetShapeFromConnections() protected
php
abstract protected function setShapeFromConnections(array $connections) : voidSets the rail shape according to the given connections, if a shape matches.
