Uses of Enum Class
net.minecraft.sound.SoundCategory
Packages that use SoundCategory
Package
Description
-
Uses of SoundCategory in net.minecraft.client.network
Methods in net.minecraft.client.network with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
ClientPlayerEntity.playSoundToPlayer
(SoundEvent sound, SoundCategory category, float volume, float pitch) Playssound
to this player only. -
Uses of SoundCategory in net.minecraft.client.option
Fields in net.minecraft.client.option with type parameters of type SoundCategoryModifier and TypeFieldDescriptionprivate final Map
<SoundCategory, SimpleOption<Double>> GameOptions.soundVolumeLevels
Methods in net.minecraft.client.option with parameters of type SoundCategoryModifier and TypeMethodDescriptionprivate SimpleOption
<Double> GameOptions.createSoundVolumeOption
(String key, SoundCategory category) final float
GameOptions.getSoundVolume
(SoundCategory category) final SimpleOption
<Double> GameOptions.getSoundVolumeOption
(SoundCategory category) -
Uses of SoundCategory in net.minecraft.client.sound
Fields in net.minecraft.client.sound declared as SoundCategoryFields in net.minecraft.client.sound with type parameters of type SoundCategoryModifier and TypeFieldDescriptionprivate final Multimap
<SoundCategory, SoundInstance> SoundSystem.sounds
Methods in net.minecraft.client.sound that return SoundCategoryModifier and TypeMethodDescriptionAbstractSoundInstance.getCategory()
SoundInstance.getCategory()
Methods in net.minecraft.client.sound with parameters of type SoundCategoryModifier and TypeMethodDescriptionprivate float
SoundSystem.getAdjustedVolume
(float volume, SoundCategory category) private float
SoundSystem.getSoundVolume
(@Nullable SoundCategory category) void
SoundManager.stopSounds
(@Nullable Identifier id, @Nullable SoundCategory soundCategory) void
SoundSystem.stopSounds
(@Nullable Identifier id, @Nullable SoundCategory category) void
SoundManager.updateSoundVolume
(SoundCategory category, float volume) void
SoundSystem.updateSoundVolume
(SoundCategory category, float volume) Constructors in net.minecraft.client.sound with parameters of type SoundCategoryModifierConstructorDescriptionAbstractBeeSoundInstance
(BeeEntity entity, SoundEvent sound, SoundCategory soundCategory) protected
AbstractSoundInstance
(SoundEvent sound, SoundCategory category, Random random) protected
AbstractSoundInstance
(Identifier soundId, SoundCategory category, Random random) EntityTrackingSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Entity entity, long seed) protected
MovingSoundInstance
(SoundEvent sound, SoundCategory category, Random random) private
PositionedSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Random random, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double x, double y, double z) PositionedSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Random random, double x, double y, double z) PositionedSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Random random, BlockPos pos) PositionedSoundInstance
(Identifier id, SoundCategory category, float volume, float pitch, Random random, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double x, double y, double z, boolean relative) -
Uses of SoundCategory in net.minecraft.client.world
Methods in net.minecraft.client.world with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
ClientWorld.playSound
(double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) private void
ClientWorld.playSound
(double x, double y, double z, SoundEvent event, SoundCategory category, float volume, float pitch, boolean useDistance, long seed) void
ClientWorld.playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
ClientWorld.playSoundFromEntity
(Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) void
ClientWorld.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) -
Uses of SoundCategory in net.minecraft.entity
Methods in net.minecraft.entity that return SoundCategoryModifier and TypeMethodDescriptionEntity.getSoundCategory()
Returns the sound category for sounds from this entity.ExperienceOrbEntity.getSoundCategory()
Returns the sound category for sounds from this entity.ItemEntity.getSoundCategory()
Returns the sound category for sounds from this entity.LightningEntity.getSoundCategory()
Returns the sound category for sounds from this entity.Methods in net.minecraft.entity with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
Saddleable.saddle
(ItemStack stack, @Nullable SoundCategory soundCategory) void
Shearable.sheared
(SoundCategory shearedSoundCategory) -
Uses of SoundCategory in net.minecraft.entity.boss.dragon
Methods in net.minecraft.entity.boss.dragon that return SoundCategoryModifier and TypeMethodDescriptionEnderDragonEntity.getSoundCategory()
Returns the sound category for sounds from this entity. -
Uses of SoundCategory in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob that return SoundCategoryModifier and TypeMethodDescriptionBreezeEntity.getSoundCategory()
Returns the sound category for sounds from this entity.GhastEntity.getSoundCategory()
Returns the sound category for sounds from this entity.HoglinEntity.getSoundCategory()
Returns the sound category for sounds from this entity.HostileEntity.getSoundCategory()
Returns the sound category for sounds from this entity.PhantomEntity.getSoundCategory()
Returns the sound category for sounds from this entity.ShulkerEntity.getSoundCategory()
Returns the sound category for sounds from this entity.SlimeEntity.getSoundCategory()
Returns the sound category for sounds from this entity.Methods in net.minecraft.entity.mob with parameters of type SoundCategory -
Uses of SoundCategory in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return SoundCategoryModifier and TypeMethodDescriptionParrotEntity.getSoundCategory()
Returns the sound category for sounds from this entity.RabbitEntity.getSoundCategory()
Returns the sound category for sounds from this entity.Methods in net.minecraft.entity.passive with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
AbstractHorseEntity.saddle
(ItemStack stack, @Nullable SoundCategory soundCategory) void
PigEntity.saddle
(ItemStack stack, @Nullable SoundCategory soundCategory) void
StriderEntity.saddle
(ItemStack stack, @Nullable SoundCategory soundCategory) void
MooshroomEntity.sheared
(SoundCategory shearedSoundCategory) void
SheepEntity.sheared
(SoundCategory shearedSoundCategory) void
SnowGolemEntity.sheared
(SoundCategory shearedSoundCategory) -
Uses of SoundCategory in net.minecraft.entity.player
Methods in net.minecraft.entity.player that return SoundCategoryModifier and TypeMethodDescriptionPlayerEntity.getSoundCategory()
Returns the sound category for sounds from this entity.Methods in net.minecraft.entity.player with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
PlayerEntity.playSoundToPlayer
(SoundEvent sound, SoundCategory category, float volume, float pitch) Playssound
to this player only. -
Uses of SoundCategory in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile that return SoundCategoryModifier and TypeMethodDescriptionShulkerBulletEntity.getSoundCategory()
Returns the sound category for sounds from this entity. -
Uses of SoundCategory in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as SoundCategoryModifier and TypeFieldDescriptionprivate final SoundCategory
PlaySoundFromEntityS2CPacket.category
private final SoundCategory
PlaySoundS2CPacket.category
private final @Nullable SoundCategory
StopSoundS2CPacket.category
Methods in net.minecraft.network.packet.s2c.play that return SoundCategoryModifier and TypeMethodDescriptionPlaySoundFromEntityS2CPacket.getCategory()
PlaySoundS2CPacket.getCategory()
StopSoundS2CPacket.getCategory()
Constructors in net.minecraft.network.packet.s2c.play with parameters of type SoundCategoryModifierConstructorDescriptionPlaySoundFromEntityS2CPacket
(RegistryEntry<SoundEvent> sound, SoundCategory category, Entity entity, float volume, float pitch, long seed) PlaySoundS2CPacket
(RegistryEntry<SoundEvent> sound, SoundCategory category, double x, double y, double z, float volume, float pitch, long seed) StopSoundS2CPacket
(@Nullable Identifier soundId, @Nullable SoundCategory category) -
Uses of SoundCategory in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type SoundCategoryModifier and TypeMethodDescriptionprivate static int
PlaySoundCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume) private static int
StopSoundCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, @Nullable SoundCategory category, @Nullable Identifier sound) private static com.mojang.brigadier.builder.LiteralArgumentBuilder
<ServerCommandSource> PlaySoundCommand.makeArgumentsForCategory
(SoundCategory category) -
Uses of SoundCategory in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
ServerPlayerEntity.playSoundToPlayer
(SoundEvent sound, SoundCategory category, float volume, float pitch) Playssound
to this player only. -
Uses of SoundCategory in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
ServerWorld.playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
ServerWorld.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) -
Uses of SoundCategory in net.minecraft.sound
Methods in net.minecraft.sound that return SoundCategoryModifier and TypeMethodDescriptionstatic SoundCategory
Returns the enum constant of this class with the specified name.static SoundCategory[]
SoundCategory.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of SoundCategory in net.minecraft.world
Methods in net.minecraft.world with parameters of type SoundCategoryModifier and TypeMethodDescriptionvoid
ChunkRegion.playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) void
World.playSound
(double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) void
World.playSound
(@Nullable Entity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch) abstract void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category) void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch) void
World.playSound
(@Nullable PlayerEntity source, double x, double y, double z, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) void
World.playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) default void
WorldAccess.playSound
(@Nullable PlayerEntity except, BlockPos pos, SoundEvent sound, SoundCategory category) void
WorldAccess.playSound
(@Nullable PlayerEntity source, BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch) void
World.playSoundAtBlockCenter
(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance) void
World.playSoundFromEntity
(Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract void
World.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, RegistryEntry<SoundEvent> sound, SoundCategory category, float volume, float pitch, long seed) void
World.playSoundFromEntity
(@Nullable PlayerEntity source, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)