Implement Vent mechanic, small adjustments to everything and dependencies

This commit is contained in:
2025-11-16 22:19:45 +01:00
parent 0bfe52a3ee
commit 0f79150c19
20 changed files with 325 additions and 49 deletions
@@ -0,0 +1,19 @@
package net.fretux.mindmotion.client.shader;
public class VentShaderHandler {
private static long shockwaveEnd = 0;
public static void triggerVentShockwave() {
shockwaveEnd = System.currentTimeMillis() + 400; // 0.4 seconds
}
public static boolean isActive() {
return System.currentTimeMillis() < shockwaveEnd;
}
public static float getStrength() {
float remain = (shockwaveEnd - System.currentTimeMillis()) / 400f;
return Math.max(0f, Math.min(1f, 1f - remain));
}
}