Files
Explosion-Overhaul/src/main/java/com/vinlanx/explosionoverhaul/client/DeafnessConcussionEffect.java

38 lines
970 B
Java
Raw Normal View History

2026-05-04 12:09:37 +02:00
package com.vinlanx.explosionoverhaul.client;
import net.minecraft.client.Minecraft;
public class DeafnessConcussionEffect {
public static boolean debugShowChat = false;
public static volatile boolean enabled = true;
public static boolean start(float intensity, double silentSeconds, double effectivePercent, String visibility, int intensityPercent) {
2026-05-06 23:46:53 +02:00
return false;
2026-05-04 12:09:37 +02:00
}
public static void stop() {
}
public static boolean isActive() {
2026-05-06 23:46:53 +02:00
return false;
2026-05-04 12:09:37 +02:00
}
2026-05-06 23:46:53 +02:00
public static void resetVolume() {
2026-05-04 12:09:37 +02:00
}
2026-05-06 23:46:53 +02:00
public static void applyMasterVolume(Minecraft mc, double volume) {
2026-05-04 12:09:37 +02:00
}
2026-05-06 23:46:53 +02:00
public static double lerp(double a, double b, double t) {
2026-05-04 12:09:37 +02:00
return a + (b - a) * t;
}
2026-05-06 23:46:53 +02:00
public static double easeOutQuad(double t) {
2026-05-04 12:09:37 +02:00
return 1.0 - (1.0 - t) * (1.0 - t);
}
2026-05-06 23:46:53 +02:00
public static double easeInOutQuad(double t) {
2026-05-04 12:09:37 +02:00
return t < 0.5 ? 2.0 * t * t : 1.0 - Math.pow(-2.0 * t + 2.0, 2.0) / 2.0;
}
}