Class ParticleUtils
java.lang.Object
tk.airshipcraft.commonlib.particles.ParticleUtils
Utility class for spawning particles.
- Since:
- 2023-10-28
- Version:
- 1.0.0
- Author:
- notzune
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
playFireworkSound
(org.bukkit.Location location) Plays a sound effect at the specified location.static void
spawnBulletParticles
(org.bukkit.Location location, boolean incendiary) Spawns bullet particles at the specified location.static void
spawnEnergyBeamParticles
(org.bukkit.Location start, org.bukkit.Location end) Spawns energy beam particles along a line between two points.static void
spawnRocketParticles
(org.bukkit.Location location) Spawns rocket particles at the specified location.
-
Constructor Details
-
ParticleUtils
public ParticleUtils()
-
-
Method Details
-
spawnBulletParticles
public static void spawnBulletParticles(org.bukkit.Location location, boolean incendiary) Spawns bullet particles at the specified location.- Parameters:
location
- The location to spawn the bullet particles.incendiary
- Whether the bullet is incendiary.
-
spawnRocketParticles
public static void spawnRocketParticles(org.bukkit.Location location) Spawns rocket particles at the specified location.- Parameters:
location
- The location to spawn the rocket particles.
-
spawnEnergyBeamParticles
public static void spawnEnergyBeamParticles(org.bukkit.Location start, org.bukkit.Location end) Spawns energy beam particles along a line between two points.- Parameters:
start
- The starting point of the beam.end
- The ending point of the beam.
-
playFireworkSound
public static void playFireworkSound(org.bukkit.Location location) Plays a sound effect at the specified location.- Parameters:
location
- The location to play the sound effect.
-