Record Class TrackEvaluator.Segment<T>
java.lang.Object
java.lang.Record
net.minecraft.world.attribute.timeline.TrackEvaluator.Segment<T>
- Record Components:
easing-fromValue-fromTicks-toValue-toTicks-
- Enclosing class:
TrackEvaluator<T>
private static record TrackEvaluator.Segment<T>(EasingType easing, T fromValue, int fromTicks, T toValue, int toTicks)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/attribute/timeline/TrackEvaluator$Segmentintermediary net/minecraft/class_12308$class_12309official bgc$anamed easingintermediary comp_5206official anamed fromValueintermediary comp_5207official bnamed fromTicksintermediary comp_5208official cnamed toValueintermediary comp_5209official dnamed toTicksintermediary comp_5210official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EasingTypeThe field for theeasingrecord component.private final intThe field for thefromTicksrecord component.private final TThe field for thefromValuerecord component.private final intThe field for thetoTicksrecord component.private final TThe field for thetoValuerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneasing()Returns the value of theeasingrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefromTicksrecord component.Returns the value of thefromValuerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.inttoTicks()Returns the value of thetoTicksrecord component.toValue()Returns the value of thetoValuerecord component.
-
Field Details
-
easing
The field for theeasingrecord component. -
fromValue
The field for thefromValuerecord component. -
fromTicks
private final int fromTicksThe field for thefromTicksrecord component. -
toValue
The field for thetoValuerecord component. -
toTicks
private final int toTicksThe field for thetoTicksrecord component.
-
-
Constructor Details
-
Segment
public Segment(Track<T> track, Keyframe<T> fromKeyframe, int fromTicks, Keyframe<T> toKeyframe, int toTicks) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/attribute/timeline/TrackEvaluator$Segment;<init>(Lnet/minecraft/world/attribute/timeline/Track;Lnet/minecraft/world/attribute/timeline/Keyframe;ILnet/minecraft/world/attribute/timeline/Keyframe;I)Vintermediary <init>Lnet/minecraft/class_12308$class_12309;<init>(Lnet/minecraft/class_12306;Lnet/minecraft/class_12305;ILnet/minecraft/class_12305;I)Vofficial <init>Lbgc$a;<init>(Lbgb;Lbga;ILbga;I)V
-
Segment
Segment(EasingType easing, T fromValue, int fromTicks, T toValue, int toTicks) Creates an instance of aSegmentrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
easing
Returns the value of theeasingrecord component.- Returns:
- the value of the
easingrecord component
-
fromValue
Returns the value of thefromValuerecord component.- Returns:
- the value of the
fromValuerecord component
-
fromTicks
public int fromTicks()Returns the value of thefromTicksrecord component.- Returns:
- the value of the
fromTicksrecord component
-
toValue
Returns the value of thetoValuerecord component.- Returns:
- the value of the
toValuerecord component
-
toTicks
public int toTicks()Returns the value of thetoTicksrecord component.- Returns:
- the value of the
toTicksrecord component
-