minny.zephyrus.utils
Enum ParticleEffects

java.lang.Object
  extended by java.lang.Enum<ParticleEffects>
      extended by minny.zephyrus.utils.ParticleEffects
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ParticleEffects>

public enum ParticleEffects
extends java.lang.Enum<ParticleEffects>

Zephyrus

Author:
minnymin3

Enum Constant Summary
ANGRY_VILLAGER
           
BUBBLE
           
CLOUD
           
CRIT
           
DEPTH_SUSPEND
           
DRIP_LAVA
           
DRIP_WATER
           
ENCHANTMENT_TABLE
           
EXPLODE
           
FIREWORKS_SPARK
           
FLAME
           
FOOTSTEP
           
HAPPY_VILLAGER
           
HEART
           
HUGE_EXPLOSION
           
ICONCRACK
           
INSTANT_SPELL
           
LARGE_EXPLODE
           
LARGE_SMOKE
           
LAVA
           
MAGIC_CRIT
           
MOB_SPELL
           
MOB_SPELL_AMBIENT
           
NOTE
           
PORTAL
           
REDSTONE_DUST
           
SLIME
           
SNOW_SHOVEL
           
SNOWBALL_POOF
           
SPELL
           
SPLASH
           
SUSPEND
           
TILECRACK
           
TOWN_AURA
           
WITCH_MAGIC
           
 
Method Summary
static ParticleEffects fromId(int id)
          Gets the Particle Effect from its id
static ParticleEffects fromName(java.lang.String name)
          Gets the Particle Effect from its name
 int getId()
          Gets the id of the Particle Effect
 java.lang.String getName()
          Gets the name of the Particle Effect
static void sendCrackToLocation(boolean icon, int id, byte data, org.bukkit.Location location, float offsetX, float offsetY, float offsetZ, int count)
           
static void sendCrackToPlayer(boolean icon, int id, byte data, org.bukkit.entity.Player player, org.bukkit.Location location, float offsetX, float offsetY, float offsetZ, int count)
           
static void sendToLocation(ParticleEffects effect, org.bukkit.Location location, float offsetX, float offsetY, float offsetZ, float speed, int count)
          Send a particle effect to all players
static void sendToPlayer(ParticleEffects effect, org.bukkit.entity.Player player, org.bukkit.Location location, float offsetX, float offsetY, float offsetZ, float speed, int count)
          Send a particle effect to a player
static ParticleEffects valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ParticleEffects[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HUGE_EXPLOSION

public static final ParticleEffects HUGE_EXPLOSION

LARGE_EXPLODE

public static final ParticleEffects LARGE_EXPLODE

FIREWORKS_SPARK

public static final ParticleEffects FIREWORKS_SPARK

BUBBLE

public static final ParticleEffects BUBBLE

SUSPEND

public static final ParticleEffects SUSPEND

DEPTH_SUSPEND

public static final ParticleEffects DEPTH_SUSPEND

TOWN_AURA

public static final ParticleEffects TOWN_AURA

CRIT

public static final ParticleEffects CRIT

MAGIC_CRIT

public static final ParticleEffects MAGIC_CRIT

MOB_SPELL

public static final ParticleEffects MOB_SPELL

MOB_SPELL_AMBIENT

public static final ParticleEffects MOB_SPELL_AMBIENT

SPELL

public static final ParticleEffects SPELL

INSTANT_SPELL

public static final ParticleEffects INSTANT_SPELL

WITCH_MAGIC

public static final ParticleEffects WITCH_MAGIC

NOTE

public static final ParticleEffects NOTE

PORTAL

public static final ParticleEffects PORTAL

ENCHANTMENT_TABLE

public static final ParticleEffects ENCHANTMENT_TABLE

EXPLODE

public static final ParticleEffects EXPLODE

FLAME

public static final ParticleEffects FLAME

LAVA

public static final ParticleEffects LAVA

FOOTSTEP

public static final ParticleEffects FOOTSTEP

SPLASH

public static final ParticleEffects SPLASH

LARGE_SMOKE

public static final ParticleEffects LARGE_SMOKE

CLOUD

public static final ParticleEffects CLOUD

REDSTONE_DUST

public static final ParticleEffects REDSTONE_DUST

SNOWBALL_POOF

public static final ParticleEffects SNOWBALL_POOF

DRIP_WATER

public static final ParticleEffects DRIP_WATER

DRIP_LAVA

public static final ParticleEffects DRIP_LAVA

SNOW_SHOVEL

public static final ParticleEffects SNOW_SHOVEL

SLIME

public static final ParticleEffects SLIME

HEART

public static final ParticleEffects HEART

ANGRY_VILLAGER

public static final ParticleEffects ANGRY_VILLAGER

HAPPY_VILLAGER

public static final ParticleEffects HAPPY_VILLAGER

ICONCRACK

public static final ParticleEffects ICONCRACK

TILECRACK

public static final ParticleEffects TILECRACK
Method Detail

values

public static ParticleEffects[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ParticleEffects c : ParticleEffects.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ParticleEffects valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()
Gets the name of the Particle Effect

Returns:
The particle effect name

getId

public int getId()
Gets the id of the Particle Effect

Returns:
The id of the Particle Effect

fromName

public static ParticleEffects fromName(java.lang.String name)
Gets the Particle Effect from its name

Parameters:
name - The name of the particle effect
Returns:
The particle effect from that name

fromId

public static ParticleEffects fromId(int id)
Gets the Particle Effect from its id

Parameters:
id - The id of the particle effect
Returns:
The particle effect from that id

sendToPlayer

public static void sendToPlayer(ParticleEffects effect,
                                org.bukkit.entity.Player player,
                                org.bukkit.Location location,
                                float offsetX,
                                float offsetY,
                                float offsetZ,
                                float speed,
                                int count)
Send a particle effect to a player

Parameters:
effect - The particle effect to send
player - The player to send the effect to
location - The location to send the effect to
offsetX - The x range of the particle effect
offsetY - The y range of the particle effect
offsetZ - The z range of the particle effect
speed - The speed (or color depending on the effect) of the particle effect
count - The count of effects

sendToLocation

public static void sendToLocation(ParticleEffects effect,
                                  org.bukkit.Location location,
                                  float offsetX,
                                  float offsetY,
                                  float offsetZ,
                                  float speed,
                                  int count)
Send a particle effect to all players

Parameters:
effect - The particle effect to send
location - The location to send the effect to
offsetX - The x range of the particle effect
offsetY - The y range of the particle effect
offsetZ - The z range of the particle effect
speed - The speed (or color depending on the effect) of the particle effect
count - The count of effects

sendCrackToPlayer

public static void sendCrackToPlayer(boolean icon,
                                     int id,
                                     byte data,
                                     org.bukkit.entity.Player player,
                                     org.bukkit.Location location,
                                     float offsetX,
                                     float offsetY,
                                     float offsetZ,
                                     int count)
                              throws java.lang.Exception
Throws:
java.lang.Exception

sendCrackToLocation

public static void sendCrackToLocation(boolean icon,
                                       int id,
                                       byte data,
                                       org.bukkit.Location location,
                                       float offsetX,
                                       float offsetY,
                                       float offsetZ,
                                       int count)
                                throws java.lang.Exception
Throws:
java.lang.Exception