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 p_250353_, SoundSource p_249262_) final OptionInstance<Double>
Options.getSoundSourceOptionInstance
(SoundSource p_251574_) final float
Options.getSoundSourceVolume
(SoundSource p_92148_) -
Uses of SoundSource in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
ClientLevel.playLocalSound
(double p_104600_, double p_104601_, double p_104602_, SoundEvent p_104603_, SoundSource p_104604_, float p_104605_, float p_104606_, boolean p_104607_) void
ClientLevel.playSeededSound
(Player p_263381_, double p_263372_, double p_263404_, double p_263365_, Holder<SoundEvent> p_263335_, SoundSource p_263417_, float p_263416_, float p_263349_, long p_263408_) void
ClientLevel.playSeededSound
(Player p_263514_, Entity p_263536_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) private void
ClientLevel.playSound
(double p_233603_, double p_233604_, double p_233605_, SoundEvent p_233606_, SoundSource p_233607_, float p_233608_, float p_233609_, boolean p_233610_, long p_233611_) -
Uses of SoundSource in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
LocalPlayer.playNotifySound
(SoundEvent p_108655_, SoundSource p_108656_, float p_108657_, float p_108658_) -
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 p_235068_, SoundSource p_235069_, RandomSource p_235070_) protected
AbstractSoundInstance
(SoundEvent p_235072_, SoundSource p_235073_, RandomSource p_235074_) protected
AbstractTickableSoundInstance
(SoundEvent p_235076_, SoundSource p_235077_, RandomSource p_235078_) BeeSoundInstance
(Bee p_119621_, SoundEvent p_119622_, SoundSource p_119623_) EntityBoundSoundInstance
(SoundEvent p_235080_, SoundSource p_235081_, float p_235082_, float p_235083_, Entity p_235084_, long p_235085_) SimpleSoundInstance
(ResourceLocation p_235087_, SoundSource p_235088_, float p_235089_, float p_235090_, RandomSource p_235091_, boolean p_235092_, int p_235093_, SoundInstance.Attenuation p_235094_, double p_235095_, double p_235096_, double p_235097_, boolean p_235098_) private
SimpleSoundInstance
(SoundEvent p_235116_, SoundSource p_235117_, float p_235118_, float p_235119_, RandomSource p_235120_, boolean p_235121_, int p_235122_, SoundInstance.Attenuation p_235123_, double p_235124_, double p_235125_, double p_235126_) SimpleSoundInstance
(SoundEvent p_235100_, SoundSource p_235101_, float p_235102_, float p_235103_, RandomSource p_235104_, double p_235105_, double p_235106_, double p_235107_) SimpleSoundInstance
(SoundEvent p_235109_, SoundSource p_235110_, float p_235111_, float p_235112_, RandomSource p_235113_, BlockPos p_235114_) -
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 p_235258_, SoundSource p_235259_) private float
SoundEngine.getVolume
(SoundSource p_120259_) void
SoundEngine.stop
(ResourceLocation p_120300_, SoundSource p_120301_) void
SoundManager.stop
(ResourceLocation p_120387_, SoundSource p_120388_) void
SoundEngine.updateCategoryVolume
(SoundSource p_120261_, float p_120262_) void
SoundManager.updateSourceVolume
(SoundSource p_120359_, float p_120360_) -
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> p_263513_, SoundSource p_263511_, Entity p_263496_, float p_263519_, float p_263523_, long p_263532_) ClientboundSoundPacket
(Holder<SoundEvent> p_263366_, SoundSource p_263375_, double p_263378_, double p_263367_, double p_263394_, float p_263415_, float p_263399_, long p_263409_) ClientboundStopSoundPacket
(ResourceLocation p_133468_, SoundSource p_133469_) -
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 p_138161_, Collection<ServerPlayer> p_138162_, ResourceLocation p_138163_, SoundSource p_138164_, Vec3 p_138165_, float p_138166_, float p_138167_, float p_138168_) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
PlaySoundCommand.source
(SoundSource p_138152_) private static int
StopSoundCommand.stopSound
(CommandSourceStack p_138801_, Collection<ServerPlayer> p_138802_, SoundSource p_138803_, ResourceLocation p_138804_) -
Uses of SoundSource in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type SoundSourceModifier and TypeMethodDescriptionvoid
ServerPlayer.playNotifySound
(SoundEvent p_9019_, SoundSource p_9020_, float p_9021_, float p_9022_) void
ServerLevel.playSeededSound
(Player p_263330_, double p_263393_, double p_263369_, double p_263354_, Holder<SoundEvent> p_263412_, SoundSource p_263338_, float p_263352_, float p_263390_, long p_263403_) void
ServerLevel.playSeededSound
(Player p_263545_, Entity p_263544_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) void
WorldGenRegion.playSound
(Player p_9528_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) -
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
(SoundSource p_21748_) void
Shearable.shear
(SoundSource p_21749_) 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
(SoundSource p_29476_) void
MushroomCow.shear
(SoundSource p_28924_) void
Sheep.shear
(SoundSource p_29819_) void
SnowGolem.shear
(SoundSource p_29907_) MushroomCow.shearInternal
(SoundSource p_28924_) -
Uses of SoundSource in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type SoundSource -
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 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 p_36140_, SoundSource p_36141_, float p_36142_, float p_36143_) -
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 p_46482_, double p_46483_, double p_46484_, SoundEvent p_46485_, SoundSource p_46486_, float p_46487_, float p_46488_, boolean p_46489_) void
Level.playLocalSound
(BlockPos p_250938_, SoundEvent p_252209_, SoundSource p_249161_, float p_249980_, float p_250277_, boolean p_250151_) abstract void
Level.playSeededSound
(Player p_262953_, double p_263004_, double p_263398_, double p_263376_, Holder<SoundEvent> p_263359_, SoundSource p_263020_, float p_263055_, float p_262914_, long p_262991_) void
Level.playSeededSound
(Player p_220363_, double p_220364_, double p_220365_, double p_220366_, SoundEvent p_220367_, SoundSource p_220368_, float p_220369_, float p_220370_, long p_220371_) abstract void
Level.playSeededSound
(Player p_220372_, Entity p_220373_, Holder<SoundEvent> p_263500_, SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) void
Level.playSound
(Entity p_252137_, BlockPos p_251749_, SoundEvent p_248842_, SoundSource p_251104_, float p_249531_, float p_250763_) void
Level.playSound
(Player p_46543_, double p_46544_, double p_46545_, double p_46546_, SoundEvent p_46547_, SoundSource p_46548_, float p_46549_, float p_46550_) void
Level.playSound
(Player p_46560_, BlockPos p_46561_, SoundEvent p_46562_, SoundSource p_46563_, float p_46564_, float p_46565_) void
Level.playSound
(Player p_46551_, Entity p_46552_, SoundEvent p_46553_, SoundSource p_46554_, float p_46555_, float p_46556_) default void
LevelAccessor.playSound
(Player p_251195_, BlockPos p_250192_, SoundEvent p_249887_, SoundSource p_250593_) void
LevelAccessor.playSound
(Player p_46775_, BlockPos p_46776_, SoundEvent p_46777_, SoundSource p_46778_, float p_46779_, float p_46780_) -
Uses of SoundSource in net.minecraftforge.event
Fields in net.minecraftforge.event declared as SoundSourceMethods in net.minecraftforge.event that return SoundSourceModifier and TypeMethodDescription@NotNull SoundSource
PlayLevelSoundEvent.getSource()
Returns the sound source.Methods in net.minecraftforge.event with parameters of type SoundSourceModifier and TypeMethodDescriptionstatic PlayLevelSoundEvent.AtEntity
ForgeEventFactory.onPlaySoundAtEntity
(Entity entity, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) ForgeEventFactory.onPlaySoundAtPosition
(Level level, double x, double y, double z, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) void
PlayLevelSoundEvent.setSource
(@NotNull SoundSource source) Sets the sound source.Constructors in net.minecraftforge.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
(@NotNull Level level, @NotNull Holder<SoundEvent> sound, @NotNull SoundSource source, float volume, float pitch)