Skip to content

DyeableItemTrait 5.47.0 ​

trait · pocketmine\item\DyeableItemTrait · source

Colour storage of a DyeableItem: the "customColor" int tag (ARGB) also used by leather armour and BDS.

Properties ​

$customColor protected ​

php
protected ?\pocketmine\color\Color $customColor

Methods ​

clearCustomColor() ​

php
public function clearCustomColor() : self

deserializeCompoundTag() protected ​

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

getCustomColor() ​

php
public function getCustomColor() : ?\pocketmine\color\Color

serializeCompoundTag() protected ​

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

setCustomColor() ​

php
public function setCustomColor(\pocketmine\color\Color $color) : self

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.