Skip to content

MobHead ​

class · pocketmine\block\tile\MobHead · source

Extends Spawnable

Deprecated

This class is deprecated.

Methods ​

addAdditionalSpawnData() protected ​

php
protected function addAdditionalSpawnData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

getMobHeadType() ​

php
public function getMobHeadType() : \pocketmine\block\utils\MobHeadType

getRotation() ​

php
public function getRotation() : int

readSaveData() ​

php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

setMobHeadType() ​

php
public function setMobHeadType(\pocketmine\block\utils\MobHeadType $type) : void

setRotation() ​

php
public function setRotation(int $rotation) : void

writeSaveData() protected ​

php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void

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