Skip to content

Slab ​

class · pocketmine\block\Slab · source

Extends Transparent

Properties ​

$slabType protected ​

php
protected \pocketmine\block\utils\SlabType $slabType

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo)

canBePlacedAt() ​

php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : bool

describeBlockOnlyState() protected ​

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

getDropsForCompatibleTool() ​

php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : array

getSlabType() ​

php
public function getSlabType() : \pocketmine\block\utils\SlabType

Returns the type of slab block.

getSupportType() ​

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

isTransparent() ​

php
public function isTransparent() : bool

place() ​

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

setSlabType() ​

php
public function setSlabType(\pocketmine\block\utils\SlabType $slabType) : self

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