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.soundSourceVolumesMethods in net.minecraft.client with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate OptionInstance<Double> Options.createSoundSliderOptionInstance(String text, SoundSource soundSource) final OptionInstance<Double> Options.getSoundSourceOptionInstance(SoundSource soundSource) final floatOptions.getSoundSourceVolume(SoundSource category) -
Uses of SoundSource in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidClientLevel.playLocalSound(double x, double y, double z, SoundEvent sound, SoundSource category, float volume, float pitch, boolean distanceDelay) voidClientLevel.playLocalSound(Entity entity, SoundEvent sound, SoundSource category, float volume, float pitch) voidClientLevel.playSeededSound(Player player, double x, double y, double z, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) voidClientLevel.playSeededSound(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) private voidClientLevel.playSound(double x, double y, double z, SoundEvent soundEvent, SoundSource source, float volume, float pitch, boolean distanceDelay, long seed) -
Uses of SoundSource in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidLocalPlayer.playNotifySound(SoundEvent sound, SoundSource source, float volume, float pitch) -
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 SoundSourceModifierConstructorDescriptionprotectedAbstractSoundInstance(ResourceLocation location, SoundSource source, RandomSource random) protectedAbstractSoundInstance(SoundEvent soundEvent, SoundSource source, RandomSource random) protectedAbstractTickableSoundInstance(SoundEvent p_235076_, SoundSource p_235077_, RandomSource p_235078_) BeeSoundInstance(Bee bee, SoundEvent soundEvent, SoundSource source) EntityBoundSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, Entity entity, long seed) SimpleSoundInstance(ResourceLocation location, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z, boolean relative) privateSimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z) SimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, double x, double y, double z) SimpleSoundInstance(SoundEvent soundEvent, SoundSource source, float volume, float pitch, RandomSource random, BlockPos entity) -
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.instanceBySourceMethods in net.minecraft.client.sounds with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate floatSoundEngine.calculateVolume(float volumeMultiplier, SoundSource source) Calculates the volume of the sound being played.private floatSoundEngine.getVolume(SoundSource category) Returns the volume value pinned between 0.0f and 1.0f for a given SoundSource category.voidSoundEngine.stop(ResourceLocation soundName, SoundSource category) voidSoundManager.stop(ResourceLocation id, SoundSource category) Stops all sounds associated with the specified ID and category.voidSoundEngine.updateCategoryVolume(SoundSource category, float volume) Updates the volume for a specific sound category.voidSoundManager.updateSourceVolume(SoundSource category, float volume) 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 SoundSourceClientboundSoundEntityPacket.sourceprivate final SoundSourceClientboundSoundPacket.sourceprivate final SoundSourceClientboundStopSoundPacket.sourceMethods 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> sound, SoundSource source, Entity entity, float volume, float pitch, long seed) ClientboundSoundPacket(Holder<SoundEvent> sound, SoundSource source, double x, double y, double z, float volume, float pitch, long seed) ClientboundStopSoundPacket(ResourceLocation name, SoundSource source) -
Uses of SoundSource in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate static intPlaySoundCommand.playSound(CommandSourceStack source, Collection<ServerPlayer> targets, ResourceLocation sound, SoundSource category, Vec3 pos, float volume, float pitch, float minVolume) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> PlaySoundCommand.source(SoundSource category) private static intStopSoundCommand.stopSound(CommandSourceStack source, Collection<ServerPlayer> targets, SoundSource category, ResourceLocation sound) -
Uses of SoundSource in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidServerPlayer.playNotifySound(SoundEvent sound, SoundSource source, float volume, float pitch) voidServerLevel.playSeededSound(Player player, double x, double y, double z, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) voidServerLevel.playSeededSound(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) voidWorldGenRegion.playSound(Player player, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) Plays a sound. -
Uses of SoundSource in net.minecraft.sounds
Methods in net.minecraft.sounds that return SoundSourceModifier and TypeMethodDescriptionstatic SoundSourceReturns 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 TypeMethodDescriptionvoidSaddleable.equipSaddle(ItemStack stack, SoundSource soundSource) voidShearable.shear(SoundSource source) 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 TypeMethodDescriptionvoidPig.equipSaddle(ItemStack stack, SoundSource soundSource) voidMushroomCow.shear(SoundSource category) voidSheep.shear(SoundSource category) voidSnowGolem.shear(SoundSource category) -
Uses of SoundSource in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidAbstractHorse.equipSaddle(ItemStack stack, SoundSource 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 SoundSourceModifier and TypeMethodDescriptionvoidStrider.equipSaddle(ItemStack stack, SoundSource soundSource) voidBogged.shear(SoundSource source) -
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 TypeMethodDescriptionvoidPlayer.playNotifySound(SoundEvent sound, SoundSource source, float volume, float pitch) -
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 TypeMethodDescriptionvoidLevel.playLocalSound(double x, double y, double z, SoundEvent sound, SoundSource category, float volume, float pitch, boolean distanceDelay) voidLevel.playLocalSound(BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch, boolean distanceDelay) voidLevel.playLocalSound(Entity entity, SoundEvent sound, SoundSource category, float volume, float pitch) abstract voidLevel.playSeededSound(Player player, double x, double y, double z, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) voidLevel.playSeededSound(Player player, double x, double y, double z, SoundEvent sound, SoundSource category, float volume, float pitch, long seed) abstract voidLevel.playSeededSound(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) voidLevel.playSound(Entity entity, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) voidLevel.playSound(Player player, double x, double y, double z, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch) voidLevel.playSound(Player player, double x, double y, double z, SoundEvent sound, SoundSource category) voidLevel.playSound(Player player, double x, double y, double z, SoundEvent sound, SoundSource category, float volume, float pitch) voidLevel.playSound(Player player, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) Plays a sound.voidLevel.playSound(Player player, Entity entity, SoundEvent event, SoundSource category, float volume, float pitch) default voidLevelAccessor.playSound(Player player, BlockPos pos, SoundEvent sound, SoundSource source) voidLevelAccessor.playSound(Player player, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) 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.AtEntityEventHooks.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) voidPlayLevelSoundEvent.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