Skip to content

DyeableItem 5.47.0 ​

interface · pocketmine\item\DyeableItem · source

An item that can be dyed in a cauldron with dyed water and washed with plain water, like leather armour: leather horse armor and wolf armor. The colour is stored like leather armour's (Armor::TAG_CUSTOM_COLOR, ARGB int).

Methods ​

clearCustomColor() ​

php
public function clearCustomColor() : self

getCustomColor() ​

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

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.