Class FireworkUtils
java.lang.Object
io.github.thebusybiscuit.slimefun4.utils.FireworkUtils
This is a simple utility class for spawning random and colorful
Firework
rockets.- Author:
- TheBusyBiscuit
-
Method Summary
Modifier and TypeMethodDescriptionstatic Firework
createFirework
(Location l, Color color) static FireworkEffect
getRandomEffect
(Random random, Color color) This returns a randomizedFireworkEffect
using the givenColor
.static void
launchFirework
(Location l, Color color) static void
launchRandom
(Entity n, int amount)
-
Method Details
-
launchFirework
-
createFirework
-
launchRandom
-
getRandomEffect
This returns a randomizedFireworkEffect
using the givenColor
.- Parameters:
random
- TheRandom
instance to usecolor
- TheColor
of thisFireworkEffect
- Returns:
- A randomized
FireworkEffect
-