Record Class GuiAnimationTimeline.ViewProgress
java.lang.Object
java.lang.Record
com.render.api.gui.GuiAnimationTimeline.ViewProgress
- All Implemented Interfaces:
GuiAnimationTimeline
- Enclosing interface:
GuiAnimationTimeline
public static record GuiAnimationTimeline.ViewProgress(GuiComponent<?> target, ScrollContainerComponent viewport, GuiScrollSnapType.Axis axis, GuiViewProgressRange range)
extends Record
implements GuiAnimationTimeline
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiAnimationTimeline
GuiAnimationTimeline.GameTime, GuiAnimationTimeline.RealTime, GuiAnimationTimeline.Scroll, GuiAnimationTimeline.ViewProgress -
Field Summary
Fields inherited from interface GuiAnimationTimeline
GAME_TIME, REAL_TIME -
Constructor Summary
ConstructorsConstructorDescriptionViewProgress(GuiComponent<?> target, ScrollContainerComponent viewport, GuiScrollSnapType.Axis axis) ViewProgress(GuiComponent<?> target, ScrollContainerComponent viewport, GuiScrollSnapType.Axis axis, GuiViewProgressRange range) Creates an instance of aViewProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaxis()Returns the value of theaxisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatprogress()Returns normalized progress, orFloat.NaNfor clock timelines.range()Returns the value of therangerecord component.GuiComponent<?> target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.viewport()Returns the value of theviewportrecord component.
-
Constructor Details
-
ViewProgress
public ViewProgress(GuiComponent<?> target, ScrollContainerComponent viewport, GuiScrollSnapType.Axis axis) -
ViewProgress
public ViewProgress(GuiComponent<?> target, ScrollContainerComponent viewport, GuiScrollSnapType.Axis axis, GuiViewProgressRange range) Creates an instance of aViewProgressrecord class.- Parameters:
target- the value for thetargetrecord componentviewport- the value for theviewportrecord componentaxis- the value for theaxisrecord componentrange- the value for therangerecord component
-
-
Method Details
-
progress
public float progress()Description copied from interface:GuiAnimationTimelineReturns normalized progress, orFloat.NaNfor clock timelines.- Specified by:
progressin interfaceGuiAnimationTimeline
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
viewport
Returns the value of theviewportrecord component.- Returns:
- the value of the
viewportrecord component
-
axis
Returns the value of theaxisrecord component.- Returns:
- the value of the
axisrecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-