|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Effect> org.bukkit.Effect
public enum Effect
A list of effects that the server is able to send to players.
Nested Class Summary | |
---|---|
static class |
Effect.Type
Represents the type of an effect. |
Enum Constant Summary | |
---|---|
BLAZE_SHOOT
Sound of blaze firing. |
|
BOW_FIRE
Sound of a bow firing. |
|
CLICK1
A click sound. |
|
CLICK2
An alternate click sound. |
|
DOOR_TOGGLE
Sound of a door opening/closing. |
|
ENDER_SIGNAL
An ender eye signal; a visual effect. |
|
EXTINGUISH
Sound of fire being extinguished. |
|
GHAST_SHOOT
Sound of ghast firing. |
|
GHAST_SHRIEK
Sound of ghast shrieking. |
|
MOBSPAWNER_FLAMES
The flames seen on a mobspawner; a visual effect. |
|
POTION_BREAK
Visual effect of a splash potion breaking. |
|
RECORD_PLAY
A song from a record. |
|
SMOKE
A visual smoke effect. |
|
STEP_SOUND
Sound of a block breaking. |
|
ZOMBIE_CHEW_IRON_DOOR
Sound of zombies chewing on iron doors. |
|
ZOMBIE_CHEW_WOODEN_DOOR
Sound of zombies chewing on wooden doors. |
|
ZOMBIE_DESTROY_DOOR
Sound of zombies destroying a door. |
Method Summary | |
---|---|
static Effect |
getById(int id)
Gets the Effect associated with the given ID. |
Class<?> |
getData()
|
int |
getId()
Gets the ID for this effect. |
Effect.Type |
getType()
|
static Effect |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Effect[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Effect CLICK2
public static final Effect CLICK1
public static final Effect BOW_FIRE
public static final Effect DOOR_TOGGLE
public static final Effect EXTINGUISH
public static final Effect RECORD_PLAY
public static final Effect GHAST_SHRIEK
public static final Effect GHAST_SHOOT
public static final Effect BLAZE_SHOOT
public static final Effect ZOMBIE_CHEW_WOODEN_DOOR
public static final Effect ZOMBIE_CHEW_IRON_DOOR
public static final Effect ZOMBIE_DESTROY_DOOR
public static final Effect SMOKE
public static final Effect STEP_SOUND
public static final Effect POTION_BREAK
public static final Effect ENDER_SIGNAL
public static final Effect MOBSPAWNER_FLAMES
Method Detail |
---|
public static final Effect[] values()
for(Effect c : Effect.values()) System.out.println(c);
public static Effect valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getId()
public Effect.Type getType()
public Class<?> getData()
public static Effect getById(int id)
id
- ID of the Effect to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |