FireworkStar
Extends Item
Constants
TAG_CUSTOM_COLOR protected
php
protected const TAG_CUSTOM_COLOR = "customColor"TAG_EXPLOSION protected
php
protected const TAG_EXPLOSION = "FireworksItem"Properties
$customColor protected
php
protected ?\pocketmine\color\Color $customColor$explosion protected
php
protected \pocketmine\item\FireworkRocketExplosion $explosionMethods
__construct()
php
public function __construct(\pocketmine\item\ItemIdentifier $identifier, string $name)deserializeCompoundTag() protected
php
protected function deserializeCompoundTag(\pocketmine\nbt\tag\CompoundTag $tag) : voidgetColor()
php
public function getColor() : \pocketmine\color\ColorReturns the displayed color of the item. The mixture of explosion colors, or the custom color if it is set.
getCustomColor()
php
public function getCustomColor() : ?\pocketmine\color\ColorReturns the displayed custom color of the item that overrides the mixture of explosion colors, or null is it is not set.
getExplosion()
php
public function getExplosion() : \pocketmine\item\FireworkRocketExplosionserializeCompoundTag() protected
php
protected function serializeCompoundTag(\pocketmine\nbt\tag\CompoundTag $tag) : voidsetCustomColor()
php
public function setCustomColor(?\pocketmine\color\Color $color) : selfSets the displayed custom color of the item that overrides the mixture of explosion colors, or removes if $color is null.
setExplosion()
php
public function setExplosion(\pocketmine\item\FireworkRocketExplosion $explosion) : self