Interface AttributeTrack<V>
- Type Parameters:
V- the value type of the attribute
- All Superinterfaces:
AttributeModification<V>, Wrapper
@NullMarked
@AsOf("3.2.0")
public interface AttributeTrack<V>
extends Wrapper, AttributeModification<V>
A track that modifies an attribute.
- Since:
- 3.2.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe attribute this track modifies.static <V> AttributeTrack.Builder<V> builder()Creates a new attribute track builder.easing()The easing function used for this track.The keyframes of this track.static <V> AttributeTrack<V> of(EnvironmentAttribute<V> attribute, AttributeOperation operation, Easing easing, List<Keyframe<?>> keyframes) Creates a new attribute track.The operation this track performs.default AttributeTrack.Builder<V> Creates a new builder for this track.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
attribute
The attribute this track modifies.- Specified by:
attributein interfaceAttributeModification<V>- Returns:
- the attribute this track modifies
- Since:
- 3.2.0
-
operation
The operation this track performs.- Specified by:
operationin interfaceAttributeModification<V>- Returns:
- the operation this track performs
- Since:
- 3.2.0
-
easing
-
keyframes
-
toBuilder
Creates a new builder for this track.- Returns:
- a new builder for this track
- Since:
- 3.2.0
-
of
@AsOf("3.2.0") static <V> AttributeTrack<V> of(EnvironmentAttribute<V> attribute, AttributeOperation operation, Easing easing, List<Keyframe<?>> keyframes) Creates a new attribute track.- Type Parameters:
V- the type of the attribute- Parameters:
attribute- the attribute to modifyoperation- the operation to performeasing- the easing function to usekeyframes- the keyframes of the track- Returns:
- a new attribute track
- Since:
- 3.2.0
-
builder
Creates a new attribute track builder.- Type Parameters:
V- the type of the attribute- Returns:
- a new attribute track builder
- Since:
- 3.2.0
-