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 pText, SoundSource pSoundSource) final OptionInstance<Double> Options.getSoundSourceOptionInstance(SoundSource pSoundSource) final floatOptions.getSoundSourceVolume(SoundSource pCategory) -
Uses of SoundSource in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type SoundSourceModifier and TypeMethodDescriptionvoidClientLevel.playLocalSound(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch, boolean pDistanceDelay) voidClientLevel.playLocalSound(Entity p_312749_, SoundEvent p_312635_, SoundSource p_312007_, float p_312298_, float p_312772_) voidClientLevel.playPlayerSound(SoundEvent p_401146_, SoundSource p_401176_, float p_401193_, float p_401050_) voidClientLevel.playSeededSound(Entity p_393665_, 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_) voidClientLevel.playSeededSound(Entity p_263536_, Entity p_394209_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) private voidClientLevel.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 TypeMethodDescriptionvoidLocalPlayer.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 SoundSourceModifierConstructorDescriptionprotectedAbstractSoundInstance(ResourceLocation pLocation, SoundSource pSource, RandomSource pRandom) protectedAbstractSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, RandomSource pRandom) protectedAbstractTickableSoundInstance(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) privateSimpleSoundInstance(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 Multimap<SoundSource, SoundInstance> SoundEngine.instanceBySourceMethods in net.minecraft.client.sounds with parameters of type SoundSourceModifier and TypeMethodDescriptionprivate floatSoundEngine.calculateVolume(float pVolumeMultiplier, SoundSource pSource) Calculates the volume of the sound being played.private floatSoundEngine.getVolume(SoundSource pCategory) Returns the volume value pinned between 0.0f and 1.0f for a given SoundSource category.voidSoundEngine.stop(ResourceLocation pSoundName, SoundSource pCategory) voidSoundManager.stop(ResourceLocation pId, SoundSource pCategory) Stops all sounds associated with the specified ID and category.voidSoundEngine.updateCategoryVolume(SoundSource pCategory, float pVolume) Updates the volume for a specific sound category.voidSoundManager.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 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> 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 intPlaySoundCommand.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 pCategory) private static intStopSoundCommand.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 TypeMethodDescriptionvoidServerPlayer.playNotifySound(SoundEvent p_9019_, SoundSource p_9020_, float p_9021_, float p_9022_) voidServerLevel.playSeededSound(Entity p_393855_, 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_) voidServerLevel.playSeededSound(Entity p_263544_, Entity p_394316_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) voidWorldGenRegion.playSound(Entity p_394194_, 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 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 pLevel, SoundSource pSoundSource, ItemStack pShears) 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 TypeMethodDescriptionvoidMushroomCow.shear(ServerLevel p_376375_, SoundSource p_28924_, ItemStack p_373092_) voidSnowGolem.shear(ServerLevel p_376257_, SoundSource p_29907_, ItemStack p_373004_) -
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 p_405075_, SoundSource p_405077_, ItemStack p_405709_) -
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 TypeMethodDescriptionvoidBogged.shear(ServerLevel p_376748_, SoundSource p_331493_, ItemStack p_373125_) -
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 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 TypeMethodDescriptionvoidLevel.playLocalSound(double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay) voidLevel.playLocalSound(BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch, boolean pDistanceDelay) voidLevel.playLocalSound(Entity pEntity, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) voidLevel.playPlayerSound(SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) abstract voidLevel.playSeededSound(Entity pEntity, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) voidLevel.playSeededSound(Entity pEntity, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) abstract voidLevel.playSeededSound(Entity pEntity, Entity pSourceEntity, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) voidLevel.playSound(Entity pEntity, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch) voidLevel.playSound(Entity pEntity, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource) voidLevel.playSound(Entity pEntity, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) voidLevel.playSound(Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) voidLevel.playSound(Entity pEntity, Entity pSourceEntity, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) default voidLevelAccessor.playSound(Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource) voidLevelAccessor.playSound(Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) -
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.