Skip to content

Dirt ​

class · pocketmine\block\Dirt · source

Extends Opaque

Properties ​

$dirtType protected ​

php
protected \pocketmine\block\utils\DirtType $dirtType

Methods ​

describeBlockItemState() ​

php
public function describeBlockItemState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getDirtType() ​

php
public function getDirtType() : \pocketmine\block\utils\DirtType

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

setDirtType() ​

php
public function setDirtType(\pocketmine\block\utils\DirtType $dirtType) : self

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