aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java
blob: 7363ed6f6582b3f2ebb1ba435f5664635efb9a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package cc.polyfrost.oneconfig.gui.animations;

public class DummyAnimation extends Animation {
    protected final float value;

    /**
     * @param value The value that is returned
     */
    public DummyAnimation(float value) {
        super(value, value, value, false);
        this.value = value;
    }

    @Override
    public float get(float deltaTime) {
        return value;
    }

    @Override
    protected float animate(float x) {
        return x;
    }
}