Skip to content

SkinAdapter ​

interface · pocketmine\network\mcpe\convert\SkinAdapter · source

Used to convert new skin data to the skin entity or old skin entity to skin data.

Methods ​

fromSkinData() ​

php
public function fromSkinData(\pocketmine\network\mcpe\protocol\types\skin\SkinData $data) : \pocketmine\entity\Skin

Allows you to convert skin data to a skin entity.

toSkinData() ​

php
public function toSkinData(\pocketmine\entity\Skin $skin) : \pocketmine\network\mcpe\protocol\types\skin\SkinData

Allows you to convert a skin entity to skin data.

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