Package org.bukkit
Enum Class Effect
- All Implemented Interfaces:
Serializable
,Comparable<Effect>
,Constable
A list of effects that the server is able to send to players.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Deprecated.not representative of what Effect doesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe sound played when an anvil breaksThe sound played when an anvil lands after fallingThe sound played when an anvil is usedSound played by a bat taking offInteger
param is the number of particlesSound of blaze firing.The sound played / particles shown when bone meal is used to grow a plant.The sound played when a book page is being turned.Sound of a bow firing.The sound played by brewing stands when brewingThe sound played when a chorus flower diesThe sound played when a chorus flower growsA click sound.An alternate click sound.The sound played / particles shown when a composter is being attempted to fill.The particles shown when wax is removed from a copper block.The sound played / particles shown when wax is applied to a copper block.Deprecated.no longer existsDeprecated.no longer existsThe sound/particles used by the enderdragon's breath attack.The particles shown when a dripstone drips lava or water.The particles shown when a lightning hits a lightning rod or oxidized copper.The sound/particles caused by a end gateway spawningThe sound of an ender portal being created in the overworldThe sound played / particles shown when an eye of ender is placed into an ender portal frame.The sound of an ender dragon dyingThe particles shown when an ender dragon destroys blocks.An ender eye signal; a visual effect.The sound of an enderdragon growlingSound of an enderdragon firingDeprecated, for removal: This API element is subject to removal in a future version.No longer existsSound of fire being extinguished.Deprecated.no longer existsDeprecated.no longer existsThe sound played when launching a fireworkSound of ghast firing.Sound of ghast shrieking.The sound played when a grindstone is being used.Deprecated, for removal: This API element is subject to removal in a future version.The sound played when a husk converts to a zombie.Visual effect of an instant splash potion breaking.Deprecated.no longer existsDeprecated.no longer existsDeprecated.no longer existsDeprecated.no longer existsThe sound played / particles shown when lava interacts with the world.The flames seen on a mobspawner; a visual effect.The particles shown when oxidation is scraped of an oxidized copper block.Requires aBlockData
paramThe sound played when phantom bites.The sound played when a pointed dripstone drips lava into a cauldron.The sound played when a pointed dripstone drips water into a cauldron.The sound played when a pointed dripstone hits the surface.The sound played when traveling through a portalVisual effect of a splash potion breaking.A song from a record.The sound played / particles shown when a redstone torch burns out.BlockFace
param is the direction to shootThe sound played when a skeleton converts to a stray.Integer
param is relative to the number of particlesThe sound played when a smithing table is being used.A visual smoke effect.The particles shown when a sponge dries in an ultra warm world (nether).Sound of a block breaking.Deprecated.no longer existsDeprecated.no longer existsBoolean
param is true for changing to "ominous"Integer
param is the number of playersInteger
param is the number of playersBoolean
param is true for "ominous" vaultsBoolean
param is true for "ominous" vaultsBoolean
param is true for "ominous" vaultsInteger
param is the number of particlesBoolean
param is true for "ominous" vaultsBoolean
param is true for "ominous" vaultsDeprecated, for removal: This API element is subject to removal in a future version.partially replaced byBEE_GROWTH
The sound played when a wither breaks a blockSound of a wither shootingThe sound of a wither spawningSound of zombies chewing on iron doors.Sound of zombies chewing on wooden doors.The sound played when a zombie converts to a drowned.The sound played when a villager is converted by a zombieSound of zombies destroying a door.The sound played when a zombie infects a target -
Method Summary
Modifier and TypeMethodDescriptiongetById
(int id) Gets the Effect associated with the given ID.getData()
int
getId()
Gets the ID for this effect.getType()
Deprecated.some effects can be both or neitherboolean
isApplicable
(Object obj) static Effect
Returns the enum constant of this class with the specified name.static Effect[]
values()
Returns an array containing the constants of this enum class, 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
Deprecated.no longer existsSound of a door opening.- See Also:
-
IRON_DOOR_TOGGLE
Deprecated.no longer existsSound of a door opening.- See Also:
-
TRAPDOOR_TOGGLE
Deprecated.no longer existsSound of a trapdoor opening.- See Also:
-
IRON_TRAPDOOR_TOGGLE
Deprecated.no longer existsSound of a door opening.- See Also:
-
FENCE_GATE_TOGGLE
Deprecated.no longer existsSound of a door opening.- See Also:
-
DOOR_CLOSE
Deprecated.no longer existsSound of a door closing.- See Also:
-
IRON_DOOR_CLOSE
Deprecated.no longer existsSound of a door closing.- See Also:
-
TRAPDOOR_CLOSE
Deprecated.no longer existsSound of a trapdoor closing.- See Also:
-
IRON_TRAPDOOR_CLOSE
Deprecated.no longer existsSound of a door closing.- See Also:
-
FENCE_GATE_CLOSE
Deprecated.no longer existsSound of a door closing.- See Also:
-
EXTINGUISH
Sound of fire being extinguished. -
RECORD_PLAY
A song from a record. Needs the recordMaterial
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 aBlockFace
direction as additional info. -
STEP_SOUND
Sound of a block breaking. NeedsBlockData
as additional info. -
POTION_BREAK
Visual effect of a splash potion breaking. NeedsColor
data value as additional info. -
INSTANT_POTION_BREAK
Visual effect of an instant splash potion breaking. NeedsColor
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
Deprecated, for removal: This API element is subject to removal in a future version.No longer existsThe sound played when launching an endereye -
FIREWORK_SHOOT
The sound played when launching a firework -
VILLAGER_PLANT_GROW
Deprecated, for removal: This API element is subject to removal in a future version.partially replaced byBEE_GROWTH
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 -
PHANTOM_BITE
The sound played when phantom bites. -
ZOMBIE_CONVERTED_TO_DROWNED
The sound played when a zombie converts to a drowned. -
HUSK_CONVERTED_TO_ZOMBIE
The sound played when a husk converts to a zombie. -
GRINDSTONE_USE
The sound played when a grindstone is being used. -
BOOK_PAGE_TURN
The sound played when a book page is being turned. -
SMITHING_TABLE_USE
The sound played when a smithing table is being used. -
POINTED_DRIPSTONE_LAND
The sound played when a pointed dripstone hits the surface. -
POINTED_DRIPSTONE_DRIP_LAVA_INTO_CAULDRON
The sound played when a pointed dripstone drips lava into a cauldron. -
POINTED_DRIPSTONE_DRIP_WATER_INTO_CAULDRON
The sound played when a pointed dripstone drips water into a cauldron. -
SKELETON_CONVERTED_TO_STRAY
The sound played when a skeleton converts to a stray. -
COMPOSTER_FILL_ATTEMPT
The sound played / particles shown when a composter is being attempted to fill. True for a successful attempt false for an unsuccessful attempt. -
LAVA_INTERACT
The sound played / particles shown when lava interacts with the world. For example by forming stone, obsidian, basalt or destroying blocks such as torches. -
REDSTONE_TORCH_BURNOUT
The sound played / particles shown when a redstone torch burns out. -
END_PORTAL_FRAME_FILL
The sound played / particles shown when an eye of ender is placed into an ender portal frame. -
DRIPPING_DRIPSTONE
The particles shown when a dripstone drips lava or water. This effect requires a dripstone at the location as well as lava or water at the root of the dripstone. -
BONE_MEAL_USE
The sound played / particles shown when bone meal is used to grow a plant. Data is the number of particles. -
ENDER_DRAGON_DESTROY_BLOCK
The particles shown when an ender dragon destroys blocks. -
SPONGE_DRY
The particles shown when a sponge dries in an ultra warm world (nether). -
ELECTRIC_SPARK
The particles shown when a lightning hits a lightning rod or oxidized copper. Data is theAxis
at which the particle should be shown. If no data is provided it will show the particles at the block faces. -
COPPER_WAX_ON
The sound played / particles shown when wax is applied to a copper block. -
COPPER_WAX_OFF
The particles shown when wax is removed from a copper block. -
OXIDISED_COPPER_SCRAPE
The particles shown when oxidation is scraped of an oxidized copper block. -
WITHER_SPAWNED
The sound of a wither spawning -
ENDER_DRAGON_DEATH
The sound of an ender dragon dying -
END_PORTAL_CREATED_IN_OVERWORLD
The sound of an ender portal being created in the overworld -
SOUND_STOP_JUKEBOX_SONG
-
CRAFTER_CRAFT
-
CRAFTER_FAIL
-
SHOOT_WHITE_SMOKE
BlockFace
param is the direction to shoot -
BEE_GROWTH
Integer
param is the number of particles -
TURTLE_EGG_PLACEMENT
Integer
param is the number of particles -
SMASH_ATTACK
Integer
param is relative to the number of particles -
PARTICLES_SCULK_CHARGE
-
PARTICLES_SCULK_SHRIEK
-
PARTICLES_AND_SOUND_BRUSH_BLOCK_COMPLETE
Requires aBlockData
param -
PARTICLES_EGG_CRACK
-
GUST_DUST
Deprecated, for removal: This API element is subject to removal in a future version. -
TRIAL_SPAWNER_SPAWN
Boolean
param is true for "ominous" vaults -
TRIAL_SPAWNER_SPAWN_MOB_AT
Boolean
param is true for "ominous" vaults -
TRIAL_SPAWNER_DETECT_PLAYER
Integer
param is the number of players -
TRIAL_SPAWNER_EJECT_ITEM
-
VAULT_ACTIVATE
Boolean
param is true for "ominous" vaults -
VAULT_DEACTIVATE
Boolean
param is true for "ominous" vaults -
VAULT_EJECT_ITEM
-
SPAWN_COBWEB
-
TRIAL_SPAWNER_DETECT_PLAYER_OMINOUS
Integer
param is the number of players -
TRIAL_SPAWNER_BECOME_OMINOUS
Boolean
param is true for changing to "ominous" -
TRIAL_SPAWNER_SPAWN_ITEM
Boolean
param is true for "ominous" vaults -
SOUND_WITH_CHARGE_SHOT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
Gets the ID for this effect.- Returns:
- ID of this effect
- API Note:
- Internal Use Only
-
getType
Deprecated.some effects can be both or neither- Returns:
- The type of the effect.
-
getData
- Returns:
- The class which represents data for this effect, or null if none
-
isApplicable
-
getById
Gets the Effect associated with the given ID.- Parameters:
id
- ID of the Effect to return- Returns:
- Effect with the given ID
- API Note:
- Internal Use Only
-