Uses of Enum Class
net.minecraft.sounds.SoundSource
Packages that use SoundSource
Package
Description
-
Uses of SoundSource in net.minecraft.client
Fields in net.minecraft.client with type parameters of type SoundSourceModifier and TypeFieldDescriptionprivate final Map
<SoundSource, OptionInstance<Double>> Options.soundSourceVolumes
Methods in net.minecraft.client with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate OptionInstance
<Double> Options.createSoundSliderOptionInstance
(String pText, SoundSource pSoundSource) final OptionInstance
<Double> Options.getSoundSourceOptionInstance
(SoundSource pSoundSource) final float
Options.getSoundSourceVolume
(SoundSource pCategory) -
Uses of SoundSource in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
ClientLevel.playLocalSound
(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) void
ClientLevel.playLocalSound
(Entity pEntity, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) void
ClientLevel.playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
ClientLevel.playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) private void
ClientLevel.playSound
(double pX, double pY, double pZ, SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay, long pSeed) -
Uses of SoundSource in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
LocalPlayer.playNotifySound
(SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) -
Uses of SoundSource in net.minecraft.client.resources.sounds
Fields in net.minecraft.client.resources.sounds declared as SoundSourceMethods in net.minecraft.client.resources.sounds that return SoundSourceConstructors in net.minecraft.client.resources.sounds with parameters of type SoundSourceModifierConstructorDescriptionprotected
AbstractSoundInstance
(ResourceLocation pLocation, SoundSource pSource, RandomSource pRandom) protected
AbstractSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, RandomSource pRandom) protected
AbstractTickableSoundInstance
(SoundEvent p_235076_, SoundSource p_235077_, RandomSource p_235078_) BeeSoundInstance
(Bee pBee, SoundEvent pSoundEvent, SoundSource pSource) EntityBoundSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, Entity pEntity, long pSeed) SimpleSoundInstance
(ResourceLocation pLocation, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ, boolean pRelative) private
SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, BlockPos pEntity) -
Uses of SoundSource in net.minecraft.client.sounds
Fields in net.minecraft.client.sounds with type parameters of type SoundSourceModifier and TypeFieldDescriptionprivate final com.google.common.collect.Multimap
<SoundSource, SoundInstance> SoundEngine.instanceBySource
Methods in net.minecraft.client.sounds with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate float
SoundEngine.calculateVolume
(float pVolumeMultiplier, SoundSource pSource) Calculates the volume of the sound being played.private float
SoundEngine.getVolume
(SoundSource pCategory) Returns the volume value pinned between 0.0f and 1.0f for a given SoundSource category.void
SoundEngine.stop
(ResourceLocation pSoundName, SoundSource pCategory) void
SoundManager.stop
(ResourceLocation pId, SoundSource pCategory) Stops all sounds associated with the specified ID and category.void
SoundEngine.updateCategoryVolume
(SoundSource pCategory, float pVolume) Updates the volume for a specific sound category.void
SoundManager.updateSourceVolume
(SoundSource pCategory, float pVolume) Updates the volume of the specified sound source category. -
Uses of SoundSource in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as SoundSourceModifier and TypeFieldDescriptionprivate final SoundSource
ClientboundSoundEntityPacket.source
private final SoundSource
ClientboundSoundPacket.source
private final SoundSource
ClientboundStopSoundPacket.source
Methods in net.minecraft.network.protocol.game that return SoundSourceModifier and TypeMethodDescriptionClientboundSoundEntityPacket.getSource()
ClientboundSoundPacket.getSource()
ClientboundStopSoundPacket.getSource()
Constructors in net.minecraft.network.protocol.game with parameters of type SoundSourceModifierConstructorDescriptionClientboundSoundEntityPacket
(Holder<SoundEvent> pSound, SoundSource pSource, Entity pEntity, float pVolume, float pPitch, long pSeed) ClientboundSoundPacket
(Holder<SoundEvent> pSound, SoundSource pSource, double pX, double pY, double pZ, float pVolume, float pPitch, long pSeed) ClientboundStopSoundPacket
(ResourceLocation pName, SoundSource pSource) -
Uses of SoundSource in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate static int
PlaySoundCommand.playSound
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, ResourceLocation pSound, SoundSource pCategory, Vec3 pPos, float pVolume, float pPitch, float pMinVolume) private static com.mojang.brigadier.builder.LiteralArgumentBuilder
<CommandSourceStack> PlaySoundCommand.source
(SoundSource p_138152_) private static int
StopSoundCommand.stopSound
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, SoundSource pCategory, ResourceLocation pSound) -
Uses of SoundSource in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
ServerPlayer.playNotifySound
(SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) void
ServerLevel.playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
ServerLevel.playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
WorldGenRegion.playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) Plays a sound. -
Uses of SoundSource in net.minecraft.sounds
Methods in net.minecraft.sounds that return SoundSourceModifier and TypeMethodDescriptionstatic SoundSource
Returns the enum constant of this class with the specified name.static SoundSource[]
SoundSource.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of SoundSource in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return SoundSourceModifier and TypeMethodDescriptionEntity.getSoundSource()
ExperienceOrb.getSoundSource()
LightningBolt.getSoundSource()
Methods in net.minecraft.world.entity with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
Saddleable.equipSaddle
(ItemStack pStack, SoundSource pSoundSource) void
Shearable.shear
(SoundSource pSource) Deprecated. -
Uses of SoundSource in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal that return SoundSourceMethods in net.minecraft.world.entity.animal with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
Pig.equipSaddle
(ItemStack pStack, SoundSource pSoundSource) void
MushroomCow.shear
(SoundSource pCategory) void
Sheep.shear
(SoundSource pCategory) void
SnowGolem.shear
(SoundSource pCategory) -
Uses of SoundSource in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
AbstractHorse.equipSaddle
(ItemStack pStack, SoundSource pSoundSource) -
Uses of SoundSource in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon that return SoundSource -
Uses of SoundSource in net.minecraft.world.entity.item
Methods in net.minecraft.world.entity.item that return SoundSource -
Uses of SoundSource in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return SoundSourceModifier and TypeMethodDescriptionGhast.getSoundSource()
Monster.getSoundSource()
Phantom.getSoundSource()
Shulker.getSoundSource()
Slime.getSoundSource()
Methods in net.minecraft.world.entity.monster with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
Strider.equipSaddle
(ItemStack pStack, SoundSource pSoundSource) void
Bogged.shear
(SoundSource pSource) -
Uses of SoundSource in net.minecraft.world.entity.monster.breeze
Methods in net.minecraft.world.entity.monster.breeze that return SoundSource -
Uses of SoundSource in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin that return SoundSource -
Uses of SoundSource in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return SoundSourceMethods in net.minecraft.world.entity.player with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
Player.playNotifySound
(SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) -
Uses of SoundSource in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return SoundSource -
Uses of SoundSource in net.minecraft.world.level
Methods in net.minecraft.world.level with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
Level.playLocalSound
(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) void
Level.playLocalSound
(BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) void
Level.playLocalSound
(Entity pEntity, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) abstract void
Level.playSeededSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
Level.playSeededSound
(Player pPlayer, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) abstract void
Level.playSeededSound
(Player pPlayer, Entity pEntity, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch, long pSeed) void
Level.playSound
(Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) void
Level.playSound
(Player pPlayer, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pCategory, float pVolume, float pPitch) void
Level.playSound
(Player pPlayer, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory) void
Level.playSound
(Player pPlayer, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) void
Level.playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) Plays a sound.void
Level.playSound
(Player pPlayer, Entity pEntity, SoundEvent pEvent, SoundSource pCategory, float pVolume, float pPitch) default void
LevelAccessor.playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pSource) void
LevelAccessor.playSound
(Player pPlayer, BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) Plays a sound. -
Uses of SoundSource in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as SoundSourceMethods in net.neoforged.neoforge.event that return SoundSourceMethods in net.neoforged.neoforge.event with parameters of type SoundSourceModifier and TypeMethodDescriptionstatic PlayLevelSoundEvent.AtEntity
EventHooks.onPlaySoundAtEntity
(Entity entity, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) EventHooks.onPlaySoundAtPosition
(Level level, double x, double y, double z, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) void
PlayLevelSoundEvent.setSource
(SoundSource source) Sets the sound source.Constructors in net.neoforged.neoforge.event with parameters of type SoundSourceModifierConstructorDescriptionAtEntity
(Entity entity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) AtPosition
(Level level, Vec3 position, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) PlayLevelSoundEvent
(Level level, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch)
invalid reference