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 TypeMethodDescriptionboolean
MusicManager.isPlayingMusic
(Music pSelector) void
MusicManager.startPlaying
(Music pSelector) Starts playing the specified Music selector.void
MusicManager.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 Biome
OverworldBiomes.baseJungle
(HolderGetter<PlacedFeature> pPlacedFeatures, HolderGetter<ConfiguredWorldCarver<?>> pWorldCarvers, float pDownfall, boolean pIsBambooJungle, boolean pIsSparse, boolean pAddBamboo, MobSpawnSettings.Builder pMobSpawnSettings, Music pBackgroudMusic) private static Biome
OverworldBiomes.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 Biome
OverworldBiomes.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 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
Fields 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.backgroundMusic
BiomeSpecialEffects.Builder.backgroundMusic
Methods 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 Music
ClientHooks.selectMusic
(Music situational, @Nullable SoundInstance playing) Methods in net.neoforged.neoforge.client with parameters of type MusicModifier and TypeMethodDescriptionstatic @Nullable Music
ClientHooks.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 Music
SelectMusicEvent.music
private final Music
SelectMusicEvent.originalMusic
Methods in net.neoforged.neoforge.client.event that return MusicModifier 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.Methods in net.neoforged.neoforge.client.event with parameters of type MusicModifier 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.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