Uses of Class
net.minecraft.sounds.Music
Packages that use Music
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of Music in net.minecraft.client
Methods in net.minecraft.client that return Music -
Uses of Music in net.minecraft.client.gui.screens
Methods in net.minecraft.client.gui.screens that return Music -
Uses of Music in net.minecraft.client.sounds
Methods in net.minecraft.client.sounds with parameters of type MusicModifier and TypeMethodDescriptionbooleanMusicManager.isPlayingMusic(Music selector) voidMusicManager.startPlaying(Music selector) Starts playing the specified Music selector.voidMusicManager.stopPlaying(Music music) Stops playing the specified Music selector. -
Uses of Music in net.minecraft.data.worldgen.biome
Fields in net.minecraft.data.worldgen.biome declared as MusicMethods in net.minecraft.data.worldgen.biome with parameters of type MusicModifier and TypeMethodDescriptionprivate static BiomeOverworldBiomes.baseJungle(HolderGetter<PlacedFeature> placedFeatures, HolderGetter<ConfiguredWorldCarver<?>> worldCarvers, float downfall, boolean isBambooJungle, boolean isSparse, boolean addBamboo, MobSpawnSettings.Builder mobSpawnSettings, Music backgroudMusic) private static BiomeOverworldBiomes.biome(boolean hasPrecipitation, float temperature, float downfall, int waterColor, int waterFogColor, Integer grassColorOverride, Integer foliageColorOverride, MobSpawnSettings.Builder mobSpawnSettings, BiomeGenerationSettings.Builder generationSettings, Music backgroundMusic) private static BiomeOverworldBiomes.biome(boolean hasPercipitation, float temperature, float downfall, MobSpawnSettings.Builder mobSpawnSettings, BiomeGenerationSettings.Builder generationSettings, Music backgroundMusic) -
Uses of Music in net.minecraft.sounds
Fields in net.minecraft.sounds declared as MusicModifier and TypeFieldDescriptionstatic final MusicMusics.CREATIVEstatic final MusicMusics.CREDITSstatic final MusicMusics.ENDstatic final MusicMusics.END_BOSSstatic final MusicMusics.GAMEstatic final MusicMusics.MENUstatic final MusicMusics.UNDER_WATERFields in net.minecraft.sounds with type parameters of type MusicMethods in net.minecraft.sounds that return Music -
Uses of Music in net.minecraft.world.level.biome
Fields in net.minecraft.world.level.biome with type parameters of type MusicModifier and TypeFieldDescriptionBiomeSpecialEffects.backgroundMusicBiomeSpecialEffects.Builder.backgroundMusicMethods in net.minecraft.world.level.biome that return types with arguments of type MusicModifier and TypeMethodDescriptionBiome.getBackgroundMusic()BiomeSpecialEffects.getBackgroundMusic()Methods in net.minecraft.world.level.biome with parameters of type MusicModifier and TypeMethodDescriptionBiomeSpecialEffects.Builder.backgroundMusic(Music backgroundMusic) -
Uses of Music in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client that return MusicModifier and TypeMethodDescriptionstatic @Nullable MusicClientHooks.selectMusic(Music situational, @Nullable SoundInstance playing) Methods in net.neoforged.neoforge.client with parameters of type MusicModifier and TypeMethodDescriptionstatic @Nullable MusicClientHooks.selectMusic(Music situational, @Nullable SoundInstance playing) -
Uses of Music in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as MusicModifier and TypeFieldDescriptionprivate @Nullable MusicSelectMusicEvent.musicprivate final MusicSelectMusicEvent.originalMusicMethods in net.neoforged.neoforge.client.event that return MusicModifier and TypeMethodDescription@Nullable MusicSelectMusicEvent.getMusic()Returns the Music to be played, ornullif any playing music should be cancelled.SelectMusicEvent.getOriginalMusic()Returns the original situational music that was selected.Methods in net.neoforged.neoforge.client.event with parameters of type MusicModifier and TypeMethodDescriptionvoidSelectMusicEvent.overrideMusic(@Nullable Music newMusic) Sets the music and then cancels the event so that other listeners will not be invoked.
Note that listeners usingSubscribeEvent.receiveCanceled()will still be able to override this, but by default they will notvoidChanges the situational music.Constructors in net.neoforged.neoforge.client.event with parameters of type MusicModifierConstructorDescriptionSelectMusicEvent(Music music, @Nullable SoundInstance playingMusic) -
Uses of Music in net.neoforged.neoforge.common.world
Methods in net.neoforged.neoforge.common.world that return types with arguments of type Music