Uses of Record Class
net.minecraft.sound.MusicSound
Packages that use MusicSound
Package
Description
The base package for all Minecraft classes.
-
Uses of MusicSound in net.minecraft
Fields in net.minecraft with type parameters of type MusicSoundModifier and TypeFieldDescriptionprivate final Optional<MusicSound> class_12194.creativeMusicThe field for thecreativeMusicrecord component.private final Optional<MusicSound> class_12194.defaultMusicThe field for thedefaultMusicrecord component.private final Optional<MusicSound> class_12194.underwaterMusicThe field for theunderwaterMusicrecord component.Methods in net.minecraft that return types with arguments of type MusicSoundModifier and TypeMethodDescriptionclass_12194.creativeMusic()Returns the value of thecreativeMusicrecord component.class_12194.defaultMusic()Returns the value of thedefaultMusicrecord component.class_12194.method_75640(boolean bool, boolean bool2) class_12194.underwaterMusic()Returns the value of theunderwaterMusicrecord component.Methods in net.minecraft with parameters of type MusicSoundConstructors in net.minecraft with parameters of type MusicSoundConstructor parameters in net.minecraft with type arguments of type MusicSoundModifierConstructorDescriptionclass_12194(Optional<MusicSound> defaultMusic, Optional<MusicSound> creativeMusic, Optional<MusicSound> underwaterMusic) Creates an instance of aclass_12194record class. -
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)