Uses of Record Class
net.minecraft.sound.MusicSound
Packages that use MusicSound
Package
Description
-
Uses of MusicSound in net.minecraft.client
Methods in net.minecraft.client that return MusicSound -
Uses of MusicSound in net.minecraft.client.gui.screen
Methods in net.minecraft.client.gui.screen that return MusicSound -
Uses of MusicSound in net.minecraft.client.sound
Methods in net.minecraft.client.sound with parameters of type MusicSoundModifier and TypeMethodDescription(package private) intMusicTracker.MusicFrequency.getDelayBeforePlaying(@Nullable MusicSound music, Random random) booleanMusicTracker.isPlayingType(MusicSound type) private static booleanMusicTracker.method_75844(MusicSound musicSound, SoundInstance soundInstance) voidMusicTracker.play(MusicSound musicSound) voidMusicTracker.stop(MusicSound type) -
Uses of MusicSound in net.minecraft.sound
Fields in net.minecraft.sound declared as MusicSoundModifier and TypeFieldDescriptionstatic final MusicSoundMusicType.CREATIVEstatic final MusicSoundMusicType.CREDITSstatic final MusicSoundMusicType.DRAGONstatic final MusicSoundMusicType.ENDstatic final MusicSoundMusicType.GAMEstatic final MusicSoundMusicType.MENUstatic final MusicSoundMusicType.UNDERWATERFields in net.minecraft.sound with type parameters of type MusicSoundModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MusicSound> MusicSound.CODECMethods in net.minecraft.sound that return MusicSoundModifier and TypeMethodDescriptionstatic MusicSoundMusicType.createIngameMusic(RegistryEntry<SoundEvent> sound) -
Uses of MusicSound in net.minecraft.world.attribute
Fields in net.minecraft.world.attribute with type parameters of type MusicSoundModifier and TypeFieldDescriptionprivate final Optional<MusicSound> BackgroundMusic.creativeMusicThe field for thecreativeMusicrecord component.private final Optional<MusicSound> BackgroundMusic.defaultMusicThe field for thedefaultMusicrecord component.private final Optional<MusicSound> BackgroundMusic.underwaterMusicThe field for theunderwaterMusicrecord component.Methods in net.minecraft.world.attribute that return types with arguments of type MusicSoundModifier and TypeMethodDescriptionBackgroundMusic.creativeMusic()Returns the value of thecreativeMusicrecord component.BackgroundMusic.defaultMusic()Returns the value of thedefaultMusicrecord component.BackgroundMusic.getCurrent(boolean creative, boolean underwater) BackgroundMusic.underwaterMusic()Returns the value of theunderwaterMusicrecord component.Methods in net.minecraft.world.attribute with parameters of type MusicSoundConstructors in net.minecraft.world.attribute with parameters of type MusicSoundConstructor parameters in net.minecraft.world.attribute with type arguments of type MusicSoundModifierConstructorDescriptionBackgroundMusic(Optional<MusicSound> defaultMusic, Optional<MusicSound> creativeMusic, Optional<MusicSound> underwaterMusic) Creates an instance of aBackgroundMusicrecord class.