Skip to content

FireworkStar ​

class · pocketmine\item\FireworkStar · source

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 $explosion

Methods ​

__construct() ​

php
public function __construct(\pocketmine\item\ItemIdentifier $identifier, string $name)

deserializeCompoundTag() protected ​

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

getColor() ​

php
public function getColor() : \pocketmine\color\Color

Returns 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\Color

Returns 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\FireworkRocketExplosion

serializeCompoundTag() protected ​

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

setCustomColor() ​

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

Sets 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

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