Package org.bukkit
Enum Effect
java.lang.Object
java.lang.Enum<Effect>
org.bukkit.Effect
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Effect>,java.lang.constant.Constable
public enum Effect extends java.lang.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 classEffect.TypeRepresents the type of an effect. -
Enum Constant Summary
Enum Constants Enum Constant Description BLAZE_SHOOTSound of blaze firing.BOW_FIRESound of a bow firing.CLICK1A click sound.CLICK2An alternate click sound.CLOUDA puff of white smokeCOLOURED_DUSTMulticolored dust particlesCRITCritical hit particlesDOOR_TOGGLESound of a door opening/closing.ENDER_SIGNALAn ender eye signal; a visual effect.EXPLOSIONExplosion particlesEXPLOSION_HUGEThe biggest explosion particle effectEXPLOSION_LARGEA larger version of the explode particleEXTINGUISHSound of fire being extinguished.FIREWORKS_SPARKThe spark that comes off a fireworksFLAMEFire particlesFLYING_GLYPHThe symbols that fly towards the enchantment tableFOOTSTEPA small gray squareGHAST_SHOOTSound of ghast firing.GHAST_SHRIEKSound of ghast shrieking.HAPPY_VILLAGERThe particle that appears when trading with a villagerHEARTThe particle that appears when breading animalsINSTANT_SPELLA puff of white starsITEM_BREAKThe particles generated when a tool breaks.LARGE_SMOKEThe smoke particles that appears on blazes, minecarts with furnaces and fireLAVA_POPThe particles that pop out of lavaLAVADRIPThe lava drip particle that appears on blocks under lavaMAGIC_CRITBlue critical hit particlesMOBSPAWNER_FLAMESThe flames seen on a mobspawner; a visual effect.NOTEThe note that appears above note blocksPARTICLE_SMOKESmoke particlesPORTALThe particles shown at nether portalsPOTION_BREAKVisual effect of a splash potion breaking.POTION_SWIRLMulticolored potion effect particlesPOTION_SWIRL_TRANSPARENTMulticolored potion effect particles that are slightly transparentRECORD_PLAYA song from a record.SLIMEThe particle shown when a slime jumpsSMALL_SMOKESmall gray particlesSMOKEA visual smoke effect.SNOW_SHOVELWhite particlesSNOWBALL_BREAKSnowball breakingSPELLA puff of white potion swirlsSPLASHWater particlesSTEP_SOUNDSound of a block breaking.TILE_BREAKThe particles generated while breaking a block.TILE_DUSTThe particles generated while sprinting a block This particle requires a Material and data value so that the client can select the correct texture.VILLAGER_THUNDERCLOUDThe particle that appears when hitting a villagerVOID_FOGSmall gray particlesWATERDRIPThe water drip particle that appears on blocks under waterWITCH_MAGICA puff of purple particlesZOMBIE_CHEW_IRON_DOORSound of zombies chewing on iron doors.ZOMBIE_CHEW_WOODEN_DOORSound of zombies chewing on wooden doors.ZOMBIE_DESTROY_DOORSound of zombies destroying a door. -
Method Summary
Modifier and Type Method Description static EffectgetById(int id)Deprecated.Magic valuestatic EffectgetByName(java.lang.String name)Gets the Effect associated with the given name.java.lang.Class<?>getData()intgetId()Deprecated.Magic valuejava.lang.StringgetName()Returns the effect's name.Effect.TypegetType()static EffectvalueOf(java.lang.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/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. -
ENDER_SIGNAL
An ender eye signal; a visual effect. -
MOBSPAWNER_FLAMES
The flames seen on a mobspawner; a visual effect. -
FIREWORKS_SPARK
The spark that comes off a fireworks -
CRIT
Critical hit particles -
MAGIC_CRIT
Blue critical hit particles -
POTION_SWIRL
Multicolored potion effect particles -
POTION_SWIRL_TRANSPARENT
Multicolored potion effect particles that are slightly transparent -
SPELL
A puff of white potion swirls -
INSTANT_SPELL
A puff of white stars -
WITCH_MAGIC
A puff of purple particles -
NOTE
The note that appears above note blocks -
PORTAL
The particles shown at nether portals -
FLYING_GLYPH
The symbols that fly towards the enchantment table -
FLAME
Fire particles -
LAVA_POP
The particles that pop out of lava -
FOOTSTEP
A small gray square -
SPLASH
Water particles -
PARTICLE_SMOKE
Smoke particles -
EXPLOSION_HUGE
The biggest explosion particle effect -
EXPLOSION_LARGE
A larger version of the explode particle -
EXPLOSION
Explosion particles -
VOID_FOG
Small gray particles -
SMALL_SMOKE
Small gray particles -
CLOUD
A puff of white smoke -
COLOURED_DUST
Multicolored dust particles -
SNOWBALL_BREAK
Snowball breaking -
WATERDRIP
The water drip particle that appears on blocks under water -
LAVADRIP
The lava drip particle that appears on blocks under lava -
SNOW_SHOVEL
White particles -
SLIME
The particle shown when a slime jumps -
HEART
The particle that appears when breading animals -
VILLAGER_THUNDERCLOUD
The particle that appears when hitting a villager -
HAPPY_VILLAGER
The particle that appears when trading with a villager -
LARGE_SMOKE
The smoke particles that appears on blazes, minecarts with furnaces and fire -
ITEM_BREAK
The particles generated when a tool breaks. This particle requires a Material so that the client can select the correct texture. -
TILE_BREAK
The particles generated while breaking a block. This particle requires a Material and data value so that the client can select the correct texture. -
TILE_DUST
The particles generated while sprinting a block This particle requires a Material and data value so that the client can select the correct texture.
-
-
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getId
@Deprecated public int getId()Deprecated.Magic valueGets the ID for this effect.- Returns:
- if this Effect isn't of type PARTICLE it returns ID of this effect
-
getName
public java.lang.String getName()Returns the effect's name. This returns null if the effect is not a particle- Returns:
- The effect's name
-
getType
- Returns:
- The type of the effect.
-
getData
public java.lang.Class<?> getData()- Returns:
- if this Effect isn't of type PARTICLE it 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
-
getByName
Gets the Effect associated with the given name.- Parameters:
name- name of the Effect to return- Returns:
- Effect with the given name
-