Class ItemOpacityRenderer.OpacityTween
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.gui.ItemOpacityRenderer.OpacityTween
- Enclosing class:
ItemOpacityRenderer
-
Method Summary
Modifier and TypeMethodDescriptionFrom one opacity to another over so many ticks, on an easing.booleanfinished()Whether it has reached its last value.in(int ticks) From unseen to fully shown over so many ticks, easing out.floatopacity()The opacity now, 0 to 1.out(int ticks) From fully shown to unseen over so many ticks, easing in.start()Starts it now, from its first value (again, if it had run).booleanstarted()
-
Method Details
-
in
From unseen to fully shown over so many ticks, easing out. -
out
From fully shown to unseen over so many ticks, easing in. -
between
public static ItemOpacityRenderer.OpacityTween between(float from, float to, int ticks, Easing easing) From one opacity to another over so many ticks, on an easing. -
start
Starts it now, from its first value (again, if it had run). Returns itself. -
started
public boolean started() -
finished
public boolean finished()Whether it has reached its last value. -
opacity
public float opacity()The opacity now, 0 to 1.
-