Uses of Record Class
net.minecraft.client.sounds.MusicInfo
Packages that use MusicInfo
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
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 MusicInfo
ClientHooks.selectMusic
(MusicInfo situational, @Nullable SoundInstance playing) Methods in net.neoforged.neoforge.client with parameters of type MusicInfoModifier and TypeMethodDescriptionstatic @Nullable MusicInfo
ClientHooks.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 MusicInfo
SelectMusicEvent.music
private final MusicInfo
SelectMusicEvent.originalMusic
Methods in net.neoforged.neoforge.client.event that return MusicInfoModifier and TypeMethodDescription@Nullable MusicInfo
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 MusicInfoModifier and TypeMethodDescriptionvoid
SelectMusicEvent.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 notvoid
Changes the situational music.Constructors in net.neoforged.neoforge.client.event with parameters of type MusicInfoModifierConstructorDescriptionSelectMusicEvent
(MusicInfo music, @Nullable SoundInstance playingMusic)