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 FireworkcreateFirework(Location l, Color color) static FireworkEffectgetRandomEffect(Random random, Color color) This returns a randomizedFireworkEffectusing the givenColor.static voidlaunchFirework(Location l, Color color) static voidlaunchRandom(Entity n, int amount)
-
Method Details
-
launchFirework
-
createFirework
-
launchRandom
-
getRandomEffect
This returns a randomizedFireworkEffectusing the givenColor.- Parameters:
random- TheRandominstance to usecolor- TheColorof thisFireworkEffect- Returns:
- A randomized
FireworkEffect
-