FireworkExplosionHelper
com.jsmacrosce.jsmacros.client.api.helper.inventory.FireworkExplosionHelper
Describes the appearance of a firework star or an explosion stored in a rocket.
js
const explosion = Player.getPlayer()?.getMainHand().getComponents().getFireworkExplosion();
if (explosion != null) Chat.log(`${explosion.getShape()}: ${explosion.getColors().size()} colors`);Methods
getColors
getFadeColors
getShape
hasTrail
hasTrail(): boolean#Returns: whether the explosion leaves a trail
hasTwinkle
hasTwinkle(): boolean#Returns: whether the explosion twinkles