Skip to content

MultiAnyFacingTrait ​

trait · pocketmine\block\utils\MultiAnyFacingTrait · source

Used by blocks that can have multiple target faces in the area of one solid block, such as covering three sides of a corner.

Properties ​

$faces protected ​

php
protected array $faces

Methods ​

describeBlockOnlyState() protected ​

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

getFaces() ​

php
public function getFaces() : array

hasFace() ​

php
public function hasFace(int $face) : bool

setFace() ​

php
public function setFace(int $face, bool $value) : self

setFaces() ​

php
public function setFaces(array $faces) : self

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