Slab
Extends Transparent
Properties
$slabType protected
php
protected \pocketmine\block\utils\SlabType $slabTypeMethods
__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) : booldescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetSlabType()
php
public function getSlabType() : \pocketmine\block\utils\SlabTypeReturns the type of slab block.
getSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeisTransparent()
php
public function isTransparent() : boolplace()
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() : arraysetSlabType()
php
public function setSlabType(\pocketmine\block\utils\SlabType $slabType) : self