Enum Class Effect
- All Implemented Interfaces:
Serializable, Comparable<Effect>, Constable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.not representative of what Effect doesNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe sound played when an anvil breaks.The sound played when an anvil lands after falling.The sound played when an anvil is used.Sound played by a bat taking off.Integerparam is the number of particles.Sound 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.The sound played by brewing stands when brewing.BlockDataparam is the block being brushed.The sound played when a chorus flower dies.The sound played when a chorus flower grows.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.Block breaking.Sound when a dispenser interaction succeeded.Sound when a dispenser interaction failed.Sound when a projectile is launched from a dispenser.Deprecated, for removal: This API element is subject to removal in a future version.no longer existsDeprecated, for removal: This API element is subject to removal in a future version.no longer existsThe 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 an end gateway spawning.The sound of an ender portal being created in the overworld.The sound played / particles shown when an eye of ender is placed into an ender portal frame.The sound/particles used by the ender dragon's breath attack.The sound of an ender dragon dying.The particles shown when an ender dragon destroys blocks.The sound of an ender dragon growling.Sound of an ender dragon firing.An ender eye signal; a visual effect.Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of fire being extinguished.Deprecated, for removal: This API element is subject to removal in a future version.no longer existsDeprecated, for removal: This API element is subject to removal in a future version.no longer existsThe sound played when launching a firework.Sound 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.no longer existsThe sound played when a husk converts to a zombie.Visual effect of an instant splash potion breaking.Deprecated, for removal: This API element is subject to removal in a future version.no longer existsDeprecated, for removal: This API element is subject to removal in a future version.no longer existsDeprecated, for removal: This API element is subject to removal in a future version.no longer existsDeprecated, for removal: This API element is subject to removal in a future version.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.The 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 portal.Visual effect of a splash potion breaking.Play a song from a jukebox.Stop the song currently played.The sound played / particles shown when a redstone torch burns out.The sound played when a skeleton converts to a stray.Integerparam is relative to the number of particles.The 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).Deprecated, for removal: This API element is subject to removal in a future version.useDESTROY_BLOCKDeprecated, for removal: This API element is subject to removal in a future version.no longer existsDeprecated, for removal: This API element is subject to removal in a future version.no longer existsBooleanparam is true for changing to "ominous".Integerparam is the number of players.Integerparam is the number of players.Booleanparam is true for "ominous" trial spawners.Booleanparam is true for "ominous" trial spawners.Booleanparam is true for "ominous" trial spawners.Integerparam is the number of particles.Booleanparam is true for "ominous" vaults.Booleanparam is true for "ominous" vaults.BlockFaceparam is the direction to shoot.Sound played when a wither breaks a block.Sound of a wither shooting.Sound of a wither spawning.Sound 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 zombie.Sound of zombies destroying a door.The sound played when a zombie infects a target. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.useDISPENSER_FAILstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.useEGG_CRACKstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version.useSCULK_CHARGEstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version.useSCULK_SHRIEKstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.useSMOKE_SHOOTstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version.useRECORD_STOPstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version.static final EffectDeprecated, for removal: This API element is subject to removal in a future version.partially replaced byBEE_GROWTHstatic final EffectDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetById(int id) Gets the Effect associated with the given ID.getData()intgetId()Gets the ID for this effect.getType()Deprecated.some effects can be both or neitherbooleanisApplicable(Object obj) static EffectReturns 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
-
DISPENSER_DISPENSE
Sound when a dispenser interaction succeeded. -
DISPENSER_FAIL
Sound when a dispenser interaction failed. -
DISPENSER_PROJECTILE_LAUNCH
Sound when a projectile is launched from a dispenser. -
DOOR_TOGGLE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of a door opening.- See Also:
-
IRON_DOOR_TOGGLE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of an iron door opening.- See Also:
-
TRAPDOOR_TOGGLE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of a trapdoor opening.- See Also:
-
IRON_TRAPDOOR_TOGGLE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of an iron trapdoor opening.- See Also:
-
FENCE_GATE_TOGGLE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of a fence gate opening.- See Also:
-
DOOR_CLOSE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of a door closing.- See Also:
-
IRON_DOOR_CLOSE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of an iron door closing.- See Also:
-
TRAPDOOR_CLOSE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of a trapdoor closing.- See Also:
-
IRON_TRAPDOOR_CLOSE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of an iron trapdoor closing.- See Also:
-
FENCE_GATE_CLOSE
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsSound of a fence gate closing.- See Also:
-
ENDEREYE_LAUNCH
Deprecated, for removal: This API element is subject to removal in a future version.no longer existsThe sound played when launching an ender eye. -
FIREWORK_SHOOT
The sound played when launching a firework. -
EXTINGUISH
-
RECORD_PLAY
Play a song from a jukebox.JukeboxSongparam is the song to play. -
RECORD_STOP
Stop the song currently played. -
GHAST_SHRIEK
Sound of ghast shrieking. -
GHAST_SHOOT
Sound of ghast firing. -
ENDER_DRAGON_SHOOT
Sound of an ender dragon 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. -
WITHER_BREAK_BLOCK
Sound played when a wither breaks a block. -
WITHER_SPAWNED
Sound of a wither spawning. -
WITHER_SHOOT
Sound of a wither shooting. -
BAT_TAKEOFF
Sound played by a bat taking off. -
ZOMBIE_INFECT
The sound played when a zombie infects a target. -
ZOMBIE_CONVERTED_TO_VILLAGER
The sound played when a villager is converted by a zombie. -
ENDER_DRAGON_DEATH
The sound of an ender dragon dying. -
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. -
PORTAL_TRAVEL
The sound played when traveling through a portal. -
CHORUS_FLOWER_GROW
The sound played when a chorus flower grows. -
CHORUS_FLOWER_DEATH
The sound played when a chorus flower dies. -
BREWING_STAND_BREW
The sound played by brewing stands when brewing. -
END_PORTAL_CREATED_IN_OVERWORLD
The sound of an ender portal being created in the overworld. -
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. -
CRAFTER_CRAFT
-
CRAFTER_FAIL
-
WIND_CHARGE_SHOOT
-
SULFUR_SPIKE_LAND
-
COMPOSTER_FILL_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
-
SMOKE_SHOOT
-
STEP_SOUND
Deprecated, for removal: This API element is subject to removal in a future version.useDESTROY_BLOCKSound of a block breaking.BlockDataparam is the block being broken. -
DESTROY_BLOCK
-
POTION_BREAK
-
ENDER_SIGNAL
An ender eye signal; a visual effect. -
MOBSPAWNER_FLAMES
The flames seen on a mobspawner; a visual effect. -
ENDER_DRAGON_BREATH
-
INSTANT_POTION_BREAK
-
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). -
WHITE_SMOKE_SHOOT
-
BEE_GROWTH
-
TURTLE_EGG_PLACEMENT
-
SMASH_ATTACK
-
END_GATEWAY_SPAWN
The sound/particles caused by an end gateway spawning. -
ENDER_DRAGON_GROWL
The sound of an ender dragon growling. -
ELECTRIC_SPARK
-
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. -
SCULK_CHARGE
-
SCULK_SHRIEK
-
BRUSH_BLOCK_COMPLETE
-
EGG_CRACK
-
GUST_DUST
Deprecated, for removal: This API element is subject to removal in a future version.no longer exists -
TRIAL_SPAWNER_SPAWN
-
TRIAL_SPAWNER_SPAWN_MOB_AT
-
TRIAL_SPAWNER_DETECT_PLAYER
-
TRIAL_SPAWNER_EJECT_ITEM
-
VAULT_ACTIVATE
-
VAULT_DEACTIVATE
-
VAULT_EJECT_ITEM
-
SPAWN_COBWEB
-
TRIAL_SPAWNER_DETECT_PLAYER_OMINOUS
-
TRIAL_SPAWNER_BECOME_OMINOUS
-
TRIAL_SPAWNER_SPAWN_ITEM
-
-
Field Details
-
CLICK2
Deprecated, for removal: This API element is subject to removal in a future version.An alternate click sound. -
CLICK1
Deprecated, for removal: This API element is subject to removal in a future version.useDISPENSER_FAILA click sound. -
BOW_FIRE
Deprecated, for removal: This API element is subject to removal in a future version.Sound of a bow firing. -
SOUND_STOP_JUKEBOX_SONG
Deprecated, for removal: This API element is subject to removal in a future version.useRECORD_STOP -
ENDERDRAGON_SHOOT
Deprecated, for removal: This API element is subject to removal in a future version.Sound of an ender dragon firing. -
ZOMBIE_CONVERTED_VILLAGER
Deprecated, for removal: This API element is subject to removal in a future version.The sound played when a villager is converted by a zombie. -
SOUND_WITH_CHARGE_SHOT
Deprecated, for removal: This API element is subject to removal in a future version. -
DRAGON_BREATH
Deprecated, for removal: This API element is subject to removal in a future version.The sound/particles used by the ender dragon's breath attack.Booleanparam is true if the sound is muted. -
VILLAGER_PLANT_GROW
Deprecated, for removal: This API element is subject to removal in a future version.partially replaced byBEE_GROWTHParticles displayed when a villager grows a plant.Integerparam is the number of particles. -
SMOKE
Deprecated, for removal: This API element is subject to removal in a future version.useSMOKE_SHOOTA visual smoke effect.BlockFaceparam is the direction the smoke is launched. -
SHOOT_WHITE_SMOKE
Deprecated, for removal: This API element is subject to removal in a future version.BlockFaceparam is the direction to shoot. -
ENDERDRAGON_GROWL
Deprecated, for removal: This API element is subject to removal in a future version.The sound of an ender dragon growling. -
PARTICLES_SCULK_CHARGE
Deprecated, for removal: This API element is subject to removal in a future version.useSCULK_CHARGE -
PARTICLES_SCULK_SHRIEK
Deprecated, for removal: This API element is subject to removal in a future version.useSCULK_SHRIEK -
PARTICLES_AND_SOUND_BRUSH_BLOCK_COMPLETE
@Deprecated(since="26.2", forRemoval=true) public static final Effect PARTICLES_AND_SOUND_BRUSH_BLOCK_COMPLETEDeprecated, for removal: This API element is subject to removal in a future version.BlockDataparam is the block being brushed. -
PARTICLES_EGG_CRACK
Deprecated, for removal: This API element is subject to removal in a future version.useEGG_CRACK
-
-
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
-
isApplicable
-
getById
-