Thin
Extends Transparent
Implements HorizontalConnections
Thin blocks behave like glass panes. They connect to full-cube blocks horizontally adjacent to them if possible.
Methods
canConnectTo() 5.46.0 protected
php
protected function canConnectTo(\pocketmine\block\Block $block, int $facing) : booldescribeBlockOnlyState() 5.46.0 protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidSince 1.26.50 the connections are real block states (minecraft:connection_*), see Fence.
getSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeonNearbyBlockChange() 5.46.0
php
public function onNearbyBlockChange() : voidplace() 5.46.0
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) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : array