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 captionId, SoundSource category) final floatOptions.getFinalSoundSourceVolume(SoundSource source) final OptionInstance<Double> Options.getSoundSourceOptionInstance(SoundSource source) final floatOptions.getSoundSourceVolume(SoundSource source) -
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 source, float volume, float pitch, boolean distanceDelay) voidClientLevel.playLocalSound(Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) voidClientLevel.playPlayerSound(SoundEvent sound, SoundSource source, float volume, float pitch) voidClientLevel.playSeededSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidClientLevel.playSeededSound(@Nullable Entity except, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) private voidClientLevel.playSound(double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay, long seed) -
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(Identifier identifier, SoundSource source, RandomSource random) protectedAbstractSoundInstance(SoundEvent event, SoundSource source, RandomSource random) protectedAbstractTickableSoundInstance(SoundEvent event, SoundSource source, RandomSource random) BeeSoundInstance(Bee bee, SoundEvent event, SoundSource source) DirectionalSoundInstance(SoundEvent event, SoundSource source, RandomSource random, Camera camera, float xAngle, float yAngle) EntityBoundSoundInstance(SoundEvent event, SoundSource source, float volume, float pitch, Entity entity, long seed) RidingEntitySoundInstance(Player player, Entity entity, boolean underwaterSound, SoundEvent soundEvent, SoundSource soundSource, float volumeMin, float volumeMax, float volumeAmplifier) SimpleSoundInstance(Identifier 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 sound, SoundSource source, float volume, float pitch, RandomSource random, boolean looping, int delay, SoundInstance.Attenuation attenuation, double x, double y, double z) SimpleSoundInstance(SoundEvent sound, SoundSource source, float volume, float pitch, RandomSource random, double x, double y, double z) SimpleSoundInstance(SoundEvent sound, SoundSource source, float volume, float pitch, RandomSource random, BlockPos pos) -
Uses of SoundSource in net.minecraft.client.sounds
Fields in net.minecraft.client.sounds declared as SoundSourceModifier and TypeFieldDescriptionprivate static @Nullable SoundSourceSoundPreviewHandler.previousCategoryFields in net.minecraft.client.sounds with type parameters of type SoundSourceModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2FloatMap<SoundSource> SoundEngine.gainBySourceprivate final Multimap<SoundSource, SoundInstance> SoundEngine.instanceBySourceMethods in net.minecraft.client.sounds with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate floatSoundEngine.calculateVolume(float volume, SoundSource source) Calculates the volume of the sound being played.voidSoundEngine.pauseAllExcept(SoundSource... ignoredSources) voidSoundManager.pauseAllExcept(SoundSource... ignoredSources) static voidSoundPreviewHandler.preview(SoundManager soundManager, SoundSource category, float volume) voidSoundEngine.refreshCategoryVolume(SoundSource source) voidSoundManager.refreshCategoryVolume(SoundSource category) voidSoundEngine.stop(@Nullable Identifier sound, @Nullable SoundSource source) voidSoundManager.stop(@Nullable Identifier sound, @Nullable SoundSource source) Stops all sounds associated with the specified ID and category.private static voidSoundPreviewHandler.stopOtherCategoryPreview(SoundManager soundManager, SoundSource category) voidSoundEngine.updateCategoryVolume(SoundSource source, float gain) voidSoundManager.updateCategoryVolume(SoundSource source, float gain) -
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 @Nullable SoundSourceClientboundStopSoundPacket.sourceMethods in net.minecraft.network.protocol.game that return SoundSourceModifier and TypeMethodDescriptionClientboundSoundEntityPacket.getSource()ClientboundSoundPacket.getSource()@Nullable SoundSourceClientboundStopSoundPacket.getSource()Constructors in net.minecraft.network.protocol.game with parameters of type SoundSourceModifierConstructorDescriptionClientboundSoundEntityPacket(Holder<SoundEvent> sound, SoundSource source, Entity sourceEntity, 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(@Nullable Identifier name, @Nullable 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> players, Identifier sound, SoundSource soundSource, Vec3 position, float volume, float pitch, float minVolume) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> PlaySoundCommand.source(SoundSource source) private static intStopSoundCommand.stopSound(CommandSourceStack source, Collection<ServerPlayer> targets, @Nullable SoundSource soundSource, @Nullable Identifier sound) -
Uses of SoundSource in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidServerLevel.playSeededSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidServerLevel.playSeededSound(@Nullable Entity except, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidWorldGenRegion.playSound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) -
Uses of SoundSource in net.minecraft.sounds
Subclasses with type arguments of type SoundSource in net.minecraft.soundsMethods 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 TypeMethodDescriptionvoidShearable.shear(ServerLevel level, SoundSource soundSource, ItemStack tool) Deprecated. -
Uses of SoundSource in net.minecraft.world.entity.animal.cow
Methods in net.minecraft.world.entity.animal.cow with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidMushroomCow.shear(ServerLevel level, SoundSource soundSource, ItemStack tool) -
Uses of SoundSource in net.minecraft.world.entity.animal.golem
Methods in net.minecraft.world.entity.animal.golem with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidCopperGolem.shear(ServerLevel level, SoundSource soundSource, ItemStack tool) voidSnowGolem.shear(ServerLevel level, SoundSource soundSource, ItemStack tool) -
Uses of SoundSource in net.minecraft.world.entity.animal.happyghast
Methods in net.minecraft.world.entity.animal.happyghast that return SoundSource -
Uses of SoundSource in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot that return SoundSource -
Uses of SoundSource in net.minecraft.world.entity.animal.rabbit
Methods in net.minecraft.world.entity.animal.rabbit that return SoundSource -
Uses of SoundSource in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidSheep.shear(ServerLevel level, SoundSource soundSource, ItemStack tool) -
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() -
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.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidBogged.shear(ServerLevel level, SoundSource soundSource, ItemStack tool) -
Uses of SoundSource in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return SoundSource -
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 source, float volume, float pitch, boolean distanceDelay) voidLevel.playLocalSound(BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch, boolean distanceDelay) voidLevel.playLocalSound(Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) voidLevel.playPlayerSound(SoundEvent sound, SoundSource source, float volume, float pitch) abstract voidLevel.playSeededSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidLevel.playSeededSound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, long seed) abstract voidLevel.playSeededSound(@Nullable Entity except, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidLevel.playSound(@Nullable Entity except, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) voidLevel.playSound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source) voidLevel.playSound(@Nullable Entity except, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch) voidLevel.playSound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) voidLevel.playSound(@Nullable Entity except, Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) default voidLevelAccessor.playSound(@Nullable Entity except, BlockPos pos, SoundEvent soundEvent, SoundSource source) voidLevelAccessor.playSound(@Nullable Entity except, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) -
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)
IShearable.onSheared(net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.core.BlockPos)instead.