Skip to content

StraightOnlyRail ​

class · pocketmine\block\StraightOnlyRail · source

Extends BaseRail

Simple non-curvable rail.

Methods ​

describeBlockOnlyState() protected ​

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

getCurrentShapeConnections() protected ​

php
protected function getCurrentShapeConnections() : 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.