Interface Easing

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Easing
An easing curve (7.4.0): eased progress for a linear progress t, both from 0 to 1. A Transition runs one; any function of t with f(0) = 0 and f(1) = 1 is one, so a mod can pass its own as a lambda.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Easing
    Slow at both ends: a cubic ease-in-out.
    static final Easing
    Fast, then settling: a cubic ease-out.
    static final Easing
    Past the end and back, a small spring: the ease-out-back MenuKit's hotbar slides use.
    static final Easing
    Even speed.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    apply(float t)
    Eased progress for linear progress t, which is between 0 and 1.
  • Field Details

    • LINEAR

      static final Easing LINEAR
      Even speed.
    • EASE_OUT

      static final Easing EASE_OUT
      Fast, then settling: a cubic ease-out.
    • EASE_IN_OUT

      static final Easing EASE_IN_OUT
      Slow at both ends: a cubic ease-in-out.
    • EASE_OUT_BACK

      static final Easing EASE_OUT_BACK
      Past the end and back, a small spring: the ease-out-back MenuKit's hotbar slides use.
  • Method Details

    • apply

      float apply(float t)
      Eased progress for linear progress t, which is between 0 and 1.