Uses of Class
net.minecraft.sounds.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
-
Uses of Music in net.minecraft.client.gui.screens
-
Uses of Music in net.minecraft.client.sounds
Modifier and TypeMethodDescriptionboolean
MusicManager.isPlayingMusic
(Music p_120188_) void
MusicManager.startPlaying
(Music p_120185_) void
MusicManager.stopPlaying
(Music p_278295_) -
Uses of Music in net.minecraft.data.worldgen.biome
Modifier and TypeMethodDescriptionprivate static Biome
OverworldBiomes.baseJungle
(HolderGetter<PlacedFeature> p_285208_, HolderGetter<ConfiguredWorldCarver<?>> p_285276_, float p_285079_, boolean p_285393_, boolean p_285109_, boolean p_285122_, MobSpawnSettings.Builder p_285449_, Music p_285440_) private static Biome
OverworldBiomes.biome
(boolean p_273483_, float p_272621_, float p_273588_, int p_273605_, int p_272756_, Integer p_272889_, Integer p_272657_, MobSpawnSettings.Builder p_273300_, BiomeGenerationSettings.Builder p_272700_, Music p_272996_) private static Biome
OverworldBiomes.biome
(boolean p_265746_, float p_265800_, float p_265276_, MobSpawnSettings.Builder p_265425_, BiomeGenerationSettings.Builder p_265371_, Music p_265636_) -
Uses of Music in net.minecraft.sounds
Modifier and TypeFieldDescriptionstatic final Music
Musics.CREATIVE
static final Music
Musics.CREDITS
static final Music
Musics.END
static final Music
Musics.END_BOSS
static final Music
Musics.GAME
static final Music
Musics.MENU
static final Music
Musics.UNDER_WATER
Modifier and TypeMethodDescriptionstatic Music
Musics.createGameMusic
(Holder<SoundEvent> p_263395_) -
Uses of Music in net.minecraft.world.level.biome
Modifier and TypeFieldDescriptionBiomeSpecialEffects.backgroundMusic
BiomeSpecialEffects.Builder.backgroundMusic
Modifier and TypeMethodDescriptionBiome.getBackgroundMusic()
BiomeSpecialEffects.getBackgroundMusic()
-
Uses of Music in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic @Nullable Music
ClientHooks.selectMusic
(Music situational, @Nullable SoundInstance playing) Modifier and TypeMethodDescriptionstatic @Nullable Music
ClientHooks.selectMusic
(Music situational, @Nullable SoundInstance playing) -
Uses of Music in net.neoforged.neoforge.client.event
Modifier and TypeFieldDescriptionprivate @Nullable Music
SelectMusicEvent.music
private final Music
SelectMusicEvent.originalMusic
Modifier and TypeMethodDescription@Nullable Music
SelectMusicEvent.getMusic()
Returns the Music to be played, ornull
if any playing music should be cancelled.SelectMusicEvent.getOriginalMusic()
Returns the original situational music that was selected.Modifier and TypeMethodDescriptionvoid
SelectMusicEvent.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 notvoid
Changes the situational music.ModifierConstructorDescriptionSelectMusicEvent
(Music music, @Nullable SoundInstance playingMusic) -
Uses of Music in net.neoforged.neoforge.common.world