public class SkillParticle
extends java.lang.Object
ParticleSpawner
Modifier and Type | Field and Description |
---|---|
(package private) org.bukkit.Color |
color
The color for custom colored dust particles.
|
(package private) org.bukkit.Particle |
particle
The Minecraft particle type.
|
Constructor and Description |
---|
SkillParticle(org.bukkit.Color color)
Creates a particle based on a custom color.
|
SkillParticle(org.bukkit.Particle particle)
Creates a particle based on a Minecraft particle.
|
Modifier and Type | Method and Description |
---|---|
void |
spawn(org.bukkit.Location location,
int amount)
Spawns a specific amount of this particle at the given location.
|
void |
spawn(org.bukkit.entity.Player player,
org.bukkit.Location location,
int amount)
Spawns a specific amount of this particle for a player at the given location.
|
static void |
spawnParticles(org.bukkit.Location location,
org.bukkit.Color color,
int amount)
Spawns a specific amount of a custom colored particle at the given location.
|
static void |
spawnParticles(org.bukkit.Location location,
org.bukkit.Particle particle,
int amount)
Spawns a specific amount of a Minecraft particle at the given location.
|
static void |
spawnParticles(org.bukkit.entity.Player player,
org.bukkit.Location location,
org.bukkit.Color color,
int amount)
Spawns a specific amount of a custom colored particle for a player at the given location.
|
static void |
spawnParticles(org.bukkit.entity.Player player,
org.bukkit.Location location,
org.bukkit.Particle particle,
int amount)
Spawns a specific amount of a Minecraft particle for a player at the given location.
|
org.bukkit.Particle particle
org.bukkit.Color color
public SkillParticle(org.bukkit.Particle particle)
particle
- The Minecraft particle type.public SkillParticle(org.bukkit.Color color)
color
- The color for custom colored dust particles.public void spawn(org.bukkit.Location location, int amount)
location
- Where the particles should spawn.amount
- How many particles should spawn.public void spawn(org.bukkit.entity.Player player, org.bukkit.Location location, int amount)
player
- The player who should see the particles.location
- Where the particles should spawn.amount
- How many particles should spawn.public static void spawnParticles(org.bukkit.Location location, org.bukkit.Particle particle, int amount)
location
- Where the particles should spawn.particle
- The Minecraft particle type.amount
- How many particles should spawn.public static void spawnParticles(org.bukkit.Location location, org.bukkit.Color color, int amount)
location
- Where the particles should spawn.color
- The color for custom colored dust particles.amount
- How many particles should spawn.public static void spawnParticles(org.bukkit.entity.Player player, org.bukkit.Location location, org.bukkit.Particle particle, int amount)
player
- The player who should see the particles.location
- Where the particles should spawn.particle
- The Minecraft particle type.amount
- How many particles should spawn.public static void spawnParticles(org.bukkit.entity.Player player, org.bukkit.Location location, org.bukkit.Color color, int amount)
player
- The player who should see the particles.location
- Where the particles should spawn.color
- The color for custom colored dust particles.amount
- How many particles should spawn.