Enum Class SoundEffect
- All Implemented Interfaces:
Serializable
,Comparable<SoundEffect>
,Constable
This enum holds references to all our sounds.
- Author:
- TheBusyBiscuit, J3fftw1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfloat
This returns the default pitch.This returns the default sound id.float
This returns the default volume.void
This method will play thisSoundEffect
at theLocation
of the givenBlock
, the usedSoundCategory
will beBLOCKS
.void
playAt
(Location loc, SoundCategory category) void
This method will play thisSoundEffect
only to the givenPlayer
using the eyeLocation
of thePlayer
and theSoundCategory
PLAYERS
.static SoundEffect
Returns the enum constant of this class with the specified name.static SoundEffect[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANCIENT_ALTAR_ITEM_CHECK_SOUND
-
ANCIENT_ALTAR_ITEM_DROP_SOUND
-
ANCIENT_ALTAR_ITEM_PICK_UP_SOUND
-
ANCIENT_ALTAR_FINISH_SOUND
-
ANCIENT_ALTAR_START_SOUND
-
ANCIENT_PEDESTAL_ITEM_PLACE_SOUND
-
ARMOR_FORGE_FINISH_SOUND
-
ARMOR_FORGE_WORKING_SOUND
-
AUTO_CRAFTER_GUI_CLICK_SOUND
-
AUTO_CRAFTER_UPDATE_RECIPE
-
AUTOMATED_PANNING_MACHINE_FAIL_SOUND
-
AUTOMATED_PANNING_MACHINE_SUCCESS_SOUND
-
BEE_BOOTS_FALL_SOUND
-
BACKPACK_CLOSE_SOUND
-
BACKPACK_OPEN_SOUND
-
COMPOSTER_COMPOST_SOUND
-
COMPRESSOR_CRAFT_SOUND
-
COMPRESSOR_CRAFT_CONTRACT_SOUND
-
COMPRESSOR_CRAFT_EXTEND_SOUND
-
COOLER_CONSUME_SOUND
-
CRUCIBLE_ADD_WATER_SOUND
-
CRUCIBLE_ADD_LAVA_SOUND
-
CRUCIBLE_BLOCK_BREAK_SOUND
-
CRUCIBLE_GENERATE_LIQUID_SOUND
-
CRUCIBLE_INTERACT_SOUND
-
CRUCIBLE_PLACE_LAVA_SOUND
-
CRUCIBLE_PLACE_WATER_SOUND
-
DEBUG_FISH_CLICK_SOUND
-
DIET_COOKIE_CONSUME_SOUND
-
ENCHANTMENT_RUNE_ADD_ENCHANT_SOUND
-
ENDER_BACKPACK_OPEN_SOUND
-
ENHANCED_CRAFTING_TABLE_CRAFT_SOUND
-
ELYTRA_CAP_IMPACT_SOUND
-
EXPLOSIVE_BOW_HIT_SOUND
-
EXPLOSIVE_TOOL_EXPLODE_SOUND
-
FISHERMAN_ANDROID_FISHING_SOUND
-
FLASK_OF_KNOWLEDGE_FILLUP_SOUND
-
GUIDE_BUTTON_CLICK_SOUND
-
GUIDE_CONTRIBUTORS_OPEN_SOUND
-
GUIDE_LANGUAGE_OPEN_SOUND
-
GUIDE_OPEN_SETTING_SOUND
-
GRIND_STONE_INTERACT_SOUND
-
IGNITION_CHAMBER_USE_FLINT_AND_STEEL_SOUND
-
INFUSED_HOPPER_TELEPORT_SOUND
-
INFUSED_MAGNET_TELEPORT_SOUND
-
IRON_GOLEM_ASSEMBLER_ASSEMBLE_SOUND
-
JETBOOTS_THRUST_SOUND
-
JETPACK_THRUST_SOUND
-
JUICER_USE_SOUND
-
LIMITED_USE_ITEM_BREAK_SOUND
-
MAGICAL_EYE_OF_ENDER_USE_SOUND
-
MAGIC_SUGAR_CONSUME_SOUND
-
MAGIC_WORKBENCH_FINISH_SOUND
-
MAGIC_WORKBENCH_START_ANIMATION_SOUND
-
MINER_ANDROID_BLOCK_GENERATION_SOUND
-
MINING_TASK_SOUND
-
ORE_WASHER_WASH_SOUND
-
PLAYER_RESEARCHING_SOUND
-
PORTABLE_DUSTBIN_OPEN_SOUND
-
PORTABLE_CRAFTER_OPEN_SOUND
-
PRESSURE_CHAMBER_FINISH_SOUND
-
PRESSURE_CHAMBER_WORKING_SOUND
-
PROGRAMMABLE_ANDROID_SCRIPT_DOWNLOAD_SOUND
-
SLIME_BOOTS_FALL_SOUND
-
TELEPORTATION_MANAGER_OPEN_GUI
-
GPS_NETWORK_ADD_WAYPOINT
-
GPS_NETWORK_CREATE_WAYPOINT
-
GPS_NETWORK_OPEN_PANEL_SOUND
-
SMELTERY_CRAFT_SOUND
-
SOULBOUND_RUNE_RITUAL_SOUND
-
SPLINT_CONSUME_SOUND
-
STOMPER_BOOTS_STOMP_SOUND
-
TAPE_MEASURE_MEASURE_SOUND
-
TOME_OF_KNOWLEDGE_USE_SOUND
-
TELEPORT_UPDATE_SOUND
-
TELEPORT_SOUND
-
VAMPIRE_BLADE_HEALING_SOUND
-
VANILLA_AUTO_CRAFTER_UPDATE_RECIPE_SOUND
-
VILLAGER_RUNE_TRANSFORM_SOUND
-
VITAMINS_CONSUME_SOUND
-
WIND_STAFF_USE_SOUND
-
-
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
-
playFor
This method will play thisSoundEffect
only to the givenPlayer
using the eyeLocation
of thePlayer
and theSoundCategory
PLAYERS
. -
playAt
- Parameters:
loc
- TheLocation
at which to play theSoundEffect
.category
- TheSoundCategory
that should be used.
-
playAt
This method will play thisSoundEffect
at theLocation
of the givenBlock
, the usedSoundCategory
will beBLOCKS
.- Parameters:
block
- TheBlock
at which to play theSoundEffect
-
getDefaultSoundId
This returns the default sound id.- Returns:
- The default sound id.
-
getDefaultVolume
public float getDefaultVolume()This returns the default volume.- Returns:
- The default volume.
-
getDefaultPitch
public float getDefaultPitch()This returns the default pitch.- Returns:
- The default pitch.
-