Skip to content

HorizontalConnections 5.46.0 ​

interface · pocketmine\block\utils\HorizontalConnections · source

Implemented by blocks whose horizontal connections (minecraft:connection_* block states since 1.26.50) are part of their state: fences, glass panes, iron/copper bars, trip wire.

Methods ​

getConnections() ​

php
public function getConnections() : array

hasConnection() ​

php
public function hasConnection(int $facing) : bool

setConnection() ​

php
public function setConnection(int $facing, bool $connected) : self

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