Interface Easing
- All Superinterfaces:
EasingType, Wrapper
Represents an easing function for a timeline.
- Since:
- 3.2.0
-
Field Summary
Fields inherited from interface EasingType
CONSTANT, IN_BACK, IN_BOUNCE, IN_CIRC, IN_CUBIC, IN_ELASTIC, IN_EXPO, IN_OUT_BACK, IN_OUT_BOUNCE, IN_OUT_CIRC, IN_OUT_CUBIC, IN_OUT_ELASTIC, IN_OUT_EXPO, IN_OUT_QUAD, IN_OUT_QUART, IN_OUT_QUINT, IN_OUT_SINE, IN_QUAD, IN_QUART, IN_QUINT, IN_SINE, LINEAR, OUT_BACK, OUT_BOUNCE, OUT_CIRC, OUT_CUBIC, OUT_ELASTIC, OUT_EXPO, OUT_QUAD, OUT_QUART, OUT_QUINT, OUT_SINE -
Method Summary
Modifier and TypeMethodDescriptionstatic EasingcubicBezier(float x1, float y1, float x2, float y2) Creates a cubic bezier easing.id()The identifier of this easing.static Easingof(ResourceKey id) Gets an easing by its identifier.static EasingGets an easing by its identifier.static Easingreference(ResourceKey id) Gets an easing by its identifier.static EasingsymmetricCubicBezier(float x1, float y1) Creates a symmetric cubic bezier easing.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
id
-
of
-
of
Gets an easing by its identifier.- Parameters:
id- the identifier of the easing- Returns:
- the easing
- Since:
- 3.2.0
-
reference
Gets an easing by its identifier.- Parameters:
id- the identifier of the easing- Returns:
- the easing
- Since:
- 3.4.0
-
cubicBezier
Creates a cubic bezier easing.- Parameters:
x1- the x-coordinate of the first control pointy1- the y-coordinate of the first control pointx2- the x-coordinate of the second control pointy2- the y-coordinate of the second control point- Returns:
- a cubic bezier easing
- Since:
- 3.2.0
-
symmetricCubicBezier
-