Definition at line 39 of file FireworkRocketExplosion.php.
 
◆ __construct()
      
        
          | pocketmine\item\FireworkRocketExplosion::__construct  | 
          ( | 
          protected FireworkRocketType |           $type,  | 
        
        
           | 
           | 
          protected array |           $colors,  | 
        
        
           | 
           | 
          protected array |           $fadeColors = [],  | 
        
        
           | 
           | 
          protected bool |           $twinkle = false,  | 
        
        
           | 
           | 
          protected bool |           $trail = false ) | 
        
      
 
- Parameters
 - 
  
    | DyeColor[] | $colors |  | 
    | DyeColor[] | $fadeColors | @phpstan-param non-empty-list<DyeColor> $colors @phpstan-param list<DyeColor> $fadeColors  | 
  
   
Definition at line 107 of file FireworkRocketExplosion.php.
 
 
◆ decodeColors()
  
  
      
        
          | static pocketmine\item\FireworkRocketExplosion::decodeColors  | 
          ( | 
          string |           $colorsBytes | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
 
◆ encodeColors()
  
  
      
        
          | static pocketmine\item\FireworkRocketExplosion::encodeColors  | 
          ( | 
          array |           $colors | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
 
◆ fromCompoundTag()
  
  
      
        
          | static pocketmine\item\FireworkRocketExplosion::fromCompoundTag  | 
          ( | 
          CompoundTag |           $tag | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ getColorMix()
      
        
          | pocketmine\item\FireworkRocketExplosion::getColorMix  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getColors()
      
        
          | pocketmine\item\FireworkRocketExplosion::getColors  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the colors of the particles.
- Returns
 - DyeColor[] @phpstan-return non-empty-list<DyeColor> 
 
Definition at line 134 of file FireworkRocketExplosion.php.
 
 
◆ getFadeColors()
      
        
          | pocketmine\item\FireworkRocketExplosion::getFadeColors  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns the colors to which the particles will change their color after a few seconds. If it is empty, there will be no color change in the particles.
- Returns
 - DyeColor[] @phpstan-return list<DyeColor> 
 
Definition at line 164 of file FireworkRocketExplosion.php.
 
 
◆ getFlashColor()
      
        
          | pocketmine\item\FireworkRocketExplosion::getFlashColor  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getTrail()
      
        
          | pocketmine\item\FireworkRocketExplosion::getTrail  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getType()
      
        
          | pocketmine\item\FireworkRocketExplosion::getType  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ toCompoundTag()
      
        
          | pocketmine\item\FireworkRocketExplosion::toCompoundTag  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ willTwinkle()
      
        
          | pocketmine\item\FireworkRocketExplosion::willTwinkle  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ TAG_COLORS
  
  
      
        
          | const pocketmine\item\FireworkRocketExplosion::TAG_COLORS = "FireworkColor" | 
         
       
   | 
  
protected   | 
  
 
 
◆ TAG_FADE_COLORS
  
  
      
        
          | const pocketmine\item\FireworkRocketExplosion::TAG_FADE_COLORS = "FireworkFade" | 
         
       
   | 
  
protected   | 
  
 
 
◆ TAG_TRAIL
  
  
      
        
          | const pocketmine\item\FireworkRocketExplosion::TAG_TRAIL = "FireworkTrail" | 
         
       
   | 
  
protected   | 
  
 
 
◆ TAG_TWINKLE
  
  
      
        
          | const pocketmine\item\FireworkRocketExplosion::TAG_TWINKLE = "FireworkFlicker" | 
         
       
   | 
  
protected   | 
  
 
 
◆ TAG_TYPE
  
  
      
        
          | const pocketmine\item\FireworkRocketExplosion::TAG_TYPE = "FireworkType" | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: