SoundSource .java

net.minecraft.sounds.SoundSource (enum): members: MASTER, MUSIC, RECORDS, WEATHER, BLOCKS, HOSTILE, NEUTRAL, PLAYERS, AMBIENT, VOICE, UI, getName, name.

net.minecraft.soundsenum26 linescommon403 B

API Surface (1)

String getName()

Fields & Constants (1)

name

String literals (10)

"master"
"music"
"record"
"weather"
"block"
"hostile"
"neutral"
"player"
"ambient"
"voice"

Full Source

SoundSource.java26 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.sounds;
2
3
public enum SoundSource {
4
	MASTER("master"),
5
	MUSIC("music"),
6
	RECORDS("record"),
7
	WEATHER("weather"),
8
	BLOCKS("block"),
9
	HOSTILE("hostile"),
10
	NEUTRAL("neutral"),
11
	PLAYERS("player"),
12
	AMBIENT("ambient"),
13
	VOICE("voice"),
14
	UI("ui");
15
16
	private final String name;
17
18
	SoundSource(final String name) {
19
		this.name = name;
20
	}
21
22
	public String getName() {
23
		return this.name;
24
	}
25
}
26

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