package net.minecraft.client.resources.sounds; import java.util.List; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import org.jetbrains.annotations.Nullable; @Environment(EnvType.CLIENT) public class SoundEventRegistration { private final List sounds; /** * if true it will override all the sounds from the resourcepacks loaded before */ private final boolean replace; @Nullable private final String subtitle; public SoundEventRegistration(List sounds, boolean replace, @Nullable String subtitle) { this.sounds = sounds; this.replace = replace; this.subtitle = subtitle; } public List getSounds() { return this.sounds; } public boolean isReplace() { return this.replace; } @Nullable public String getSubtitle() { return this.subtitle; } }