Skip to content

Thin ​

class · pocketmine\block\Thin · source

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) : bool

describeBlockOnlyState() 5.46.0 protected ​

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

Since 1.26.50 the connections are real block states (minecraft:connection_*), see Fence.

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

onNearbyBlockChange() 5.46.0 ​

php
public function onNearbyBlockChange() : void

place() 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) : bool

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

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