public enum ParticleEffect extends java.lang.Enum<ParticleEffect>
| Modifier and Type | Class and Description |
|---|---|
static class |
ParticleEffect.ParticleEffectPacket
Represents a particle effect packet with all attributes which is used for sending packets to the players
This class is part of the ParticleEffect Library and follows the same usage conditions
|
| Modifier and Type | Method and Description |
|---|---|
void |
display(float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
double range)
Displays a particle effect which is only visible for all players within a certain range in the world of @param center
|
void |
display(float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
Displays a particle effect which is only visible for the specified players
|
static void |
displayBlockCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
int amount,
org.bukkit.Location center,
double range)
Displays a block crack (block break) particle effect which is only visible for all players within a certain range in the world of @param center
|
static void |
displayBlockCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
Displays a block crack (block break) particle effect which is only visible for the specified players
|
static void |
displayBlockDust(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
double range)
Displays a block dust particle effect which is only visible for all players within a certain range in the world of @param center
|
static void |
displayBlockDust(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
Displays a block dust particle effect which is only visible for the specified players
|
static void |
displayIconCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
double range)
Displays an icon crack (item break) particle effect which is only visible for all players within a certain range in the world of @param center
|
static void |
displayIconCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
Displays an icon crack (item break) particle effect which is only visible for the specified players
|
static ParticleEffect |
fromName(java.lang.String name)
Returns the particle effect with the given name
|
java.lang.String |
getName()
Returns the name of this particle effect
|
boolean |
getRequiresWater()
Determine if water is required for this particle effect to display properly
|
static ParticleEffect |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParticleEffect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParticleEffect HUGE_EXPLOSION
public static final ParticleEffect LARGE_EXPLODE
public static final ParticleEffect FIREWORKS_SPARK
public static final ParticleEffect BUBBLE
public static final ParticleEffect SUSPEND
public static final ParticleEffect DEPTH_SUSPEND
public static final ParticleEffect TOWN_AURA
public static final ParticleEffect CRIT
public static final ParticleEffect MAGIC_CRIT
public static final ParticleEffect SMOKE
public static final ParticleEffect MOB_SPELL
public static final ParticleEffect MOB_SPELL_AMBIENT
public static final ParticleEffect SPELL
public static final ParticleEffect INSTANT_SPELL
public static final ParticleEffect WITCH_MAGIC
public static final ParticleEffect NOTE
public static final ParticleEffect PORTAL
public static final ParticleEffect ENCHANTMENT_TABLE
public static final ParticleEffect EXPLODE
public static final ParticleEffect FLAME
public static final ParticleEffect LAVA
public static final ParticleEffect FOOTSTEP
public static final ParticleEffect SPLASH
public static final ParticleEffect WAKE
public static final ParticleEffect LARGE_SMOKE
public static final ParticleEffect CLOUD
public static final ParticleEffect RED_DUST
public static final ParticleEffect SNOWBALL_POOF
public static final ParticleEffect DRIP_WATER
public static final ParticleEffect DRIP_LAVA
public static final ParticleEffect SNOW_SHOVEL
public static final ParticleEffect SLIME
public static final ParticleEffect HEART
public static final ParticleEffect ANGRY_VILLAGER
public static final ParticleEffect HAPPY_VILLAGER
public static ParticleEffect[] values()
for (ParticleEffect c : ParticleEffect.values()) System.out.println(c);
public static ParticleEffect valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public boolean getRequiresWater()
public static ParticleEffect fromName(java.lang.String name)
name - Name of the particle effectpublic void display(float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
double range)
throws java.lang.IllegalArgumentException
offsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisspeed - Display speed of the particlesamount - Amount of particlescenter - Center location of the effectrange - Range of the visibility (Maximum range for particles is usually 16, but it can differ for some types)java.lang.IllegalArgumentException - If the particle effect requires water and none is at the center locationParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, double)public void display(float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
throws java.lang.IllegalArgumentException
offsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisspeed - Display speed of the particlesamount - Amount of particlescenter - Center location of the effectplayers - Receivers of the effectjava.lang.IllegalArgumentException - If the particle effect requires water and none is at the center locationParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, List)public static void displayIconCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
double range)
id - Id of the icondata - Data valueoffsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisspeed - Display speed of the particlesamount - Amount of particlescenter - Center location of the effectrange - Range of the visibility (Maximum range for particles is usually 16, but it can differ for some types)ParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, double)public static void displayIconCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
id - Id of the icondata - Data valueoffsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisspeed - Display speed of the particlesamount - Amount of particlescenter - Center location of the effectplayers - Receivers of the effectParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, List)public static void displayBlockCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
int amount,
org.bukkit.Location center,
double range)
throws java.lang.IllegalArgumentException
id - Id of the blockdata - Data valueoffsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisamount - Amount of particlescenter - Center location of the effectrange - Range of the visibility (Maximum range for particles is usually 16, but it can differ for some types)java.lang.IllegalArgumentException - If the specified id is not a block idParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, double)public static void displayBlockCrack(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
throws java.lang.IllegalArgumentException
id - Id of the blockdata - Data valueoffsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisamount - Amount of particlescenter - Center location of the effectplayers - Receivers of the effectjava.lang.IllegalArgumentException - If the specified id is not a block idParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, List)public static void displayBlockDust(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
double range)
throws java.lang.IllegalArgumentException
id - Id of the blockdata - Data valueoffsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisspeed - Display speed of the particlesamount - Amount of particlescenter - Center location of the effectrange - Range of the visibility (Maximum range for particles is usually 16, but it can differ for some types)java.lang.IllegalArgumentException - If the specified id is not a block idParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, double)public static void displayBlockDust(int id,
byte data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
org.bukkit.Location center,
java.util.List<org.bukkit.entity.Player> players)
throws java.lang.IllegalArgumentException
id - Id of the blockdata - Data valueoffsetX - Maximum distance particles can fly away from the center on the x-axisoffsetY - Maximum distance particles can fly away from the center on the y-axisoffsetZ - Maximum distance particles can fly away from the center on the z-axisspeed - Display speed of the particlesamount - Amount of particlescenter - Center location of the effectplayers - Receivers of the effectjava.lang.IllegalArgumentException - If the specified id is not a block idParticleEffect.ParticleEffectPacket,
ParticleEffect.ParticleEffectPacket.sendTo(Location, List)