Uses of Record Class
net.minecraft.client.sounds.MusicInfo
Packages that use MusicInfo
Package
Description
-
Uses of MusicInfo in net.minecraft.client
Methods in net.minecraft.client that return MusicInfo -
Uses of MusicInfo in net.minecraft.client.sounds
Methods in net.minecraft.client.sounds with parameters of type MusicInfo -
Uses of MusicInfo in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client that return MusicInfoModifier and TypeMethodDescriptionstatic @Nullable MusicInfoClientHooks.selectMusic(MusicInfo situational, @Nullable SoundInstance playing) Methods in net.neoforged.neoforge.client with parameters of type MusicInfoModifier and TypeMethodDescriptionstatic @Nullable MusicInfoClientHooks.selectMusic(MusicInfo situational, @Nullable SoundInstance playing) -
Uses of MusicInfo in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as MusicInfoModifier and TypeFieldDescriptionprivate @Nullable MusicInfoSelectMusicEvent.musicprivate final MusicInfoSelectMusicEvent.originalMusicMethods in net.neoforged.neoforge.client.event that return MusicInfoModifier and TypeMethodDescription@Nullable MusicInfoSelectMusicEvent.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 MusicInfoModifier and TypeMethodDescriptionvoidSelectMusicEvent.overrideMusic(@Nullable MusicInfo 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 MusicInfoModifierConstructorDescriptionSelectMusicEvent(MusicInfo music, @Nullable SoundInstance playingMusic)