Skip to content

Rail ​

class · pocketmine\block\Rail · source

Extends BaseRail

Methods ​

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getCurrentShapeConnections() protected ​

php
protected function getCurrentShapeConnections() : array

getPossibleConnectionDirectionsOneConstraint() protected ​

php
protected function getPossibleConnectionDirectionsOneConstraint(int $constraint) : array

getShape() ​

php
public function getShape() : int

setShape() ​

php
public function setShape(int $shape) : self

setShapeFromConnections() protected ​

php
protected function setShapeFromConnections(array $connections) : void

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