Skip to content

ColoredItem 5.46.0 ​

class · pocketmine\item\ColoredItem · source

Extends Item

Item without behaviour that comes in dye colours (Bedrock: the colour is the item meta, as for dyes). Used for the Education Edition balloons, glow sticks and sparklers.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\item\ItemIdentifier $identifier, string $name, int $maxStackSize = 64)

describeState() protected ​

php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getColor() ​

php
public function getColor() : \pocketmine\block\utils\DyeColor

getMaxStackSize() ​

php
public function getMaxStackSize() : int

setColor() ​

php
public function setColor(\pocketmine\block\utils\DyeColor $color) : self

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