Musics .java

net.minecraft.sounds.Musics (class): members: createGameMusic, THIRTY_SECONDS, TWENTY_MINUTES, FIVE_MINUTES, TEN_MINUTES, UNDER_WATER, ONE_SECOND, CREDITS.

net.minecraft.soundsclass23 linescommon1.0 KB

API Surface (1)

Music createGameMusic(final Holder<SoundEvent> soundEvent)

Fields & Constants (12)

ONE_SECOND
THIRTY_SECONDS
TEN_MINUTES
TWENTY_MINUTES
FIVE_MINUTES
MENU
CREATIVE
CREDITS
END_BOSS
END
UNDER_WATER
GAME

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

Musics.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.sounds;
2
3
import net.minecraft.core.Holder;
4
5
public class Musics {
6
	private static final int ONE_SECOND = 20;
7
	private static final int THIRTY_SECONDS = 600;
8
	private static final int TEN_MINUTES = 12000;
9
	private static final int TWENTY_MINUTES = 24000;
10
	private static final int FIVE_MINUTES = 6000;
11
	public static final Music MENU = new Music(SoundEvents.MUSIC_MENU, 20, 600, true);
12
	public static final Music CREATIVE = new Music(SoundEvents.MUSIC_CREATIVE, 12000, 24000, false);
13
	public static final Music CREDITS = new Music(SoundEvents.MUSIC_CREDITS, 0, 0, true);
14
	public static final Music END_BOSS = new Music(SoundEvents.MUSIC_DRAGON, 0, 0, true);
15
	public static final Music END = new Music(SoundEvents.MUSIC_END, 6000, 24000, true);
16
	public static final Music UNDER_WATER = createGameMusic(SoundEvents.MUSIC_UNDER_WATER);
17
	public static final Music GAME = createGameMusic(SoundEvents.MUSIC_GAME);
18
19
	public static Music createGameMusic(final Holder<SoundEvent> soundEvent) {
20
		return new Music(soundEvent, 12000, 24000, false);
21
	}
22
}
23

Decompiled Minecraft 26.3 source of Musics (net/minecraft/sounds/Musics.java) with Mojang official mappings, stored verbatim on the site.