This commit is contained in:
2026-07-05 21:14:50 +02:00
parent eaeb467db9
commit 999b51ce66
8 changed files with 251 additions and 129 deletions
@@ -0,0 +1,11 @@
package de.fullrisk.citrusDev.UIHelper;
import io.wispforest.owo.ui.core.Animatable;
import net.minecraft.util.Mth;
public record ScaleValue(float value) implements Animatable<ScaleValue> {
@Override
public ScaleValue interpolate(ScaleValue next, float delta) {
return new ScaleValue(Mth.lerp(delta, this.value, next.value));
}
}