minecraft-src/net/minecraft/client/resources/sounds/SoundEventRegistration.java
2025-07-04 01:41:11 +03:00

36 lines
821 B
Java

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<Sound> 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<Sound> sounds, boolean replace, @Nullable String subtitle) {
this.sounds = sounds;
this.replace = replace;
this.subtitle = subtitle;
}
public List<Sound> getSounds() {
return this.sounds;
}
public boolean isReplace() {
return this.replace;
}
@Nullable
public String getSubtitle() {
return this.subtitle;
}
}