Interface Keyframe<V>
- Type Parameters:
V- The type of value stored in the keyframe.
- All Superinterfaces:
Wrapper
Represents a keyframe in a timeline.
- Since:
- 3.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classCreates a new keyframe builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> Keyframe<V> of(int ticks, V value) Creates a new keyframe with the given ticks and value.intticks()The number of ticks in this keyframe occurs at.default Keyframe.Builder<V> Creates a new builder with the same values as this keyframe.value()The value stored in this keyframe.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
ticks
The number of ticks in this keyframe occurs at.- Returns:
- the number of ticks this keyframe occurs at
- Since:
- 3.2.0
-
value
-
toBuilder
Creates a new builder with the same values as this keyframe.- Returns:
- a new builder with the same values
- Since:
- 3.3.0
-
of
Creates a new keyframe with the given ticks and value.- Type Parameters:
V- the type of value stored in the keyframe- Parameters:
ticks- the number of ticks this keyframe occurs atvalue- the value stored in this keyframe- Returns:
- a new keyframe with the given ticks and value
- Since:
- 3.2.0
-