SoundEventRegistration .java

net.minecraft.client.resources.sounds.SoundEventRegistration (class, 32 lines): members: getSounds, isReplace, sounds, getSubtitle, subtitle, replace.

net.minecraft.client.resources.soundsclass32 linesclient745 B

API Surface (2)

List<Sound> getSounds()
boolean isReplace()

Fields & Constants (3)

sounds
replace
subtitle

Code Graph: Dependencies (1)

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

Full Source

SoundEventRegistration.java32 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.resources.sounds;
2
3
import java.util.List;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
import org.jspecify.annotations.Nullable;
7
8
@Environment(EnvType.CLIENT)
9
public class SoundEventRegistration {
10
	private final List<Sound> sounds;
11
	private final boolean replace;
12
	private final @Nullable String subtitle;
13
14
	public SoundEventRegistration(final List<Sound> sounds, final boolean replace, final @Nullable String subtitle) {
15
		this.sounds = sounds;
16
		this.replace = replace;
17
		this.subtitle = subtitle;
18
	}
19
20
	public List<Sound> getSounds() {
21
		return this.sounds;
22
	}
23
24
	public boolean isReplace() {
25
		return this.replace;
26
	}
27
28
	public @Nullable String getSubtitle() {
29
		return this.subtitle;
30
	}
31
}
32

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