Uses of Class
net.minecraft.sounds.Music
Packages that use Music
Package
Description
-
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 pSelector) voidMusicManager.startPlaying(Music pSelector) Starts playing the specified Music selector.voidMusicManager.stopPlaying(Music pMusic) 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> pPlacedFeatures, HolderGetter<ConfiguredWorldCarver<?>> pWorldCarvers, float pDownfall, boolean pIsBambooJungle, boolean pIsSparse, boolean pAddBamboo, MobSpawnSettings.Builder pMobSpawnSettings, Music pBackgroudMusic) private static BiomeOverworldBiomes.biome(boolean pHasPrecipitation, float pTemperature, float pDownfall, int pWaterColor, int pWaterFogColor, Integer pGrassColorOverride, Integer pFoliageColorOverride, MobSpawnSettings.Builder pMobSpawnSettings, BiomeGenerationSettings.Builder pGenerationSettings, Music pBackgroundMusic) private static BiomeOverworldBiomes.biome(boolean pHasPercipitation, float pTemperature, float pDownfall, MobSpawnSettings.Builder pMobSpawnSettings, BiomeGenerationSettings.Builder pGenerationSettings, Music pBackgroundMusic) -
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 pBackgroundMusic) -
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