Package org.bukkit
Enum Effect
- All Implemented Interfaces:
Serializable
,Comparable<Effect>
,Constable
public enum Effect extends Enum<Effect>
A list of effects that the server is able to send to players.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Effect.Type
Represents the type of an effect. -
Enum Constant Summary
Enum Constants Enum Constant Description ANVIL_BREAK
The sound played when an anvil breaksANVIL_LAND
The sound played when an anvil lands after fallingANVIL_USE
The sound played when an anvil is usedBAT_TAKEOFF
Sound played by a bat taking offBLAZE_SHOOT
Sound of blaze firing.BOW_FIRE
Sound of a bow firing.BREWING_STAND_BREW
The sound played by brewing stands when brewingCHORUS_FLOWER_DEATH
The sound played when a chorus flower diesCHORUS_FLOWER_GROW
The sound played when a chorus flower growsCLICK1
A click sound.CLICK2
An alternate click sound.DOOR_CLOSE
Sound of a door closing.DOOR_TOGGLE
Sound of a door opening.DRAGON_BREATH
The sound/particles used by the enderdragon's breath attack.END_GATEWAY_SPAWN
The sound/particles caused by a end gateway spawningENDER_SIGNAL
An ender eye signal; a visual effect.ENDERDRAGON_GROWL
The sound of an enderdragon growlingENDERDRAGON_SHOOT
Sound of an enderdragon firingENDEREYE_LAUNCH
The sound played when launching an endereyeEXTINGUISH
Sound of fire being extinguished.FENCE_GATE_CLOSE
Sound of a door closing.FENCE_GATE_TOGGLE
Sound of a door opening.FIREWORK_SHOOT
The sound played when launching a fireworkGHAST_SHOOT
Sound of ghast firing.GHAST_SHRIEK
Sound of ghast shrieking.INSTANT_POTION_BREAK
Visual effect of an instant splash potion breaking.IRON_DOOR_CLOSE
Sound of a door closing.IRON_DOOR_TOGGLE
Sound of a door opening.IRON_TRAPDOOR_CLOSE
Sound of a door closing.IRON_TRAPDOOR_TOGGLE
Sound of a door opening.MOBSPAWNER_FLAMES
The flames seen on a mobspawner; a visual effect.PORTAL_TRAVEL
The sound played when traveling through a portalPOTION_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.TRAPDOOR_CLOSE
Sound of a trapdoor closing.TRAPDOOR_TOGGLE
Sound of a trapdoor opening.VILLAGER_PLANT_GROW
Particles displayed when a villager grows a plant, data is the number of particlesWITHER_BREAK_BLOCK
The sound played when a wither breaks a blockWITHER_SHOOT
Sound of a wither shootingZOMBIE_CHEW_IRON_DOOR
Sound of zombies chewing on iron doors.ZOMBIE_CHEW_WOODEN_DOOR
Sound of zombies chewing on wooden doors.ZOMBIE_CONVERTED_VILLAGER
The sound played when a villager is converted by a zombieZOMBIE_DESTROY_DOOR
Sound of zombies destroying a door.ZOMBIE_INFECT
The sound played when a zombie infects a target -
Method Summary
Modifier and Type Method Description static Effect
getById(int id)
Deprecated.Magic valueClass<?>
getData()
int
getId()
Deprecated.Magic valueEffect.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 are declared.
-
Enum Constant Details
-
CLICK2
An alternate click sound. -
CLICK1
A click sound. -
BOW_FIRE
Sound of a bow firing. -
DOOR_TOGGLE
Sound of a door opening. -
IRON_DOOR_TOGGLE
Sound of a door opening. -
TRAPDOOR_TOGGLE
Sound of a trapdoor opening. -
IRON_TRAPDOOR_TOGGLE
Sound of a door opening. -
FENCE_GATE_TOGGLE
Sound of a door opening. -
DOOR_CLOSE
Sound of a door closing. -
IRON_DOOR_CLOSE
Sound of a door closing. -
TRAPDOOR_CLOSE
Sound of a trapdoor closing. -
IRON_TRAPDOOR_CLOSE
Sound of a door closing. -
FENCE_GATE_CLOSE
Sound of a door closing. -
EXTINGUISH
Sound of fire being extinguished. -
RECORD_PLAY
A song from a record. Needs the record item ID as additional info -
GHAST_SHRIEK
Sound of ghast shrieking. -
GHAST_SHOOT
Sound of ghast firing. -
BLAZE_SHOOT
Sound of blaze firing. -
ZOMBIE_CHEW_WOODEN_DOOR
Sound of zombies chewing on wooden doors. -
ZOMBIE_CHEW_IRON_DOOR
Sound of zombies chewing on iron doors. -
ZOMBIE_DESTROY_DOOR
Sound of zombies destroying a door. -
SMOKE
A visual smoke effect. Needs direction as additional info. -
STEP_SOUND
Sound of a block breaking. Needs block ID as additional info. -
POTION_BREAK
Visual effect of a splash potion breaking. Needs potion data value as additional info. -
INSTANT_POTION_BREAK
Visual effect of an instant splash potion breaking. Needs color data value as additional info. -
ENDER_SIGNAL
An ender eye signal; a visual effect. -
MOBSPAWNER_FLAMES
The flames seen on a mobspawner; a visual effect. -
BREWING_STAND_BREW
The sound played by brewing stands when brewing -
CHORUS_FLOWER_GROW
The sound played when a chorus flower grows -
CHORUS_FLOWER_DEATH
The sound played when a chorus flower dies -
PORTAL_TRAVEL
The sound played when traveling through a portal -
ENDEREYE_LAUNCH
The sound played when launching an endereye -
FIREWORK_SHOOT
The sound played when launching a firework -
VILLAGER_PLANT_GROW
Particles displayed when a villager grows a plant, data is the number of particles -
DRAGON_BREATH
The sound/particles used by the enderdragon's breath attack. -
ANVIL_BREAK
The sound played when an anvil breaks -
ANVIL_USE
The sound played when an anvil is used -
ANVIL_LAND
The sound played when an anvil lands after falling -
ENDERDRAGON_SHOOT
Sound of an enderdragon firing -
WITHER_BREAK_BLOCK
The sound played when a wither breaks a block -
WITHER_SHOOT
Sound of a wither shooting -
ZOMBIE_INFECT
The sound played when a zombie infects a target -
ZOMBIE_CONVERTED_VILLAGER
The sound played when a villager is converted by a zombie -
BAT_TAKEOFF
Sound played by a bat taking off -
END_GATEWAY_SPAWN
The sound/particles caused by a end gateway spawning -
ENDERDRAGON_GROWL
The sound of an enderdragon growling
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
Deprecated.Magic valueGets the ID for this effect.- Returns:
- ID of this effect
-
getType
- Returns:
- The type of the effect.
-
getData
- Returns:
- The class which represents data for this effect, or null if none
-
getById
Deprecated.Magic valueGets the Effect associated with the given ID.- Parameters:
id
- ID of the Effect to return- Returns:
- Effect with the given ID
-