public interface AnimationFrame
extends net.kyori.examination.Examinable
AnimationMeta.frameTime()
if it is not specified| Modifier and Type | Field and Description |
|---|---|
static int |
DELEGATE_FRAME_TIME
Special value for
frameTime()
to declare that the frameTime is delegated to
the container AnimationMeta |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull AnimationFrame |
frame(int index)
Creates a new animation frame with the specified
index, no frame time is specified here, it depends
on
AnimationMeta |
static @NotNull AnimationFrame |
frame(int index,
int frameTime)
Creates a new animation frame with the specified
index and frame time
|
int |
frameTime()
Returns the animation frame time, specifies the time
in ticks to show this frame, uses
AnimationMeta.frameTime()
when it is not specified. |
int |
index()
Returns the animation frame index, which is number
corresponding to position of a frame from the top,
with the top frame being 0.
|
static @NotNull AnimationFrame |
of(int index)
Deprecated.
Use
frame(int) instead |
static @NotNull AnimationFrame |
of(int index,
int frameTime)
Deprecated.
Use
frame(int, int) instead |
static final int DELEGATE_FRAME_TIME
frameTime()
to declare that the frameTime is delegated to
the container AnimationMeta@Contract(value="_, _ -> new") @NotNull static @NotNull AnimationFrame frame(int index, int frameTime)
index - The frame indexframeTime - The frame specific timeAnimationFrame instance@Contract(value="_, _ -> new") @Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull AnimationFrame of(int index, int frameTime)
frame(int, int) insteadindex - The frame indexframeTime - The frame specific timeAnimationFrame instance@Contract(value="_ -> new") @NotNull static @NotNull AnimationFrame frame(int index)
AnimationMetaindex - The animation frame indexAnimationFrame instance@Contract(value="_ -> new") @Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull AnimationFrame of(int index)
frame(int) insteadAnimationMetaindex - The animation frame indexAnimationFrame instanceint index()
int frameTime()
AnimationMeta.frameTime()
when it is not specified.