Record Class MovementCorrectionTiming
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.MovementCorrectionTiming
public record MovementCorrectionTiming(long serverTick, long inputTick, long inputFrame, long historyStartTick, long followingFrame)
extends Record
Native unsigned input clocks bound to the connection's monotonically increasing physics frames.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMovementCorrectionTiming(long serverTick, long inputTick, long inputFrame, long historyStartTick, long followingFrame) Creates an instance of aMovementCorrectionTimingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefollowingFramerecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thehistoryStartTickrecord component.longReturns the value of theinputFramerecord component.longReturns the value of theinputTickrecord component.locate(long oldestFrame, long completedFrame) The receiver queues into the following snapshot, capped at the newest retained snapshot.locateMotion(long oldestFrame, long completedFrame) Explicit velocity commands clamp old clocks to the oldest retained native input.longReturns the value of theserverTickrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MovementCorrectionTiming
public MovementCorrectionTiming(long serverTick, long inputTick, long inputFrame, long historyStartTick, long followingFrame) Creates an instance of aMovementCorrectionTimingrecord class.- Parameters:
serverTick- the value for theserverTickrecord componentinputTick- the value for theinputTickrecord componentinputFrame- the value for theinputFramerecord componenthistoryStartTick- the value for thehistoryStartTickrecord componentfollowingFrame- the value for thefollowingFramerecord component
-
-
Method Details
-
locate
The receiver queues into the following snapshot, capped at the newest retained snapshot. -
locateMotion
Explicit velocity commands clamp old clocks to the oldest retained native input. -
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 with thecomparemethod from their corresponding wrapper classes. -
serverTick
public long serverTick()Returns the value of theserverTickrecord component.- Returns:
- the value of the
serverTickrecord component
-
inputTick
public long inputTick()Returns the value of theinputTickrecord component.- Returns:
- the value of the
inputTickrecord component
-
inputFrame
public long inputFrame()Returns the value of theinputFramerecord component.- Returns:
- the value of the
inputFramerecord component
-
historyStartTick
public long historyStartTick()Returns the value of thehistoryStartTickrecord component.- Returns:
- the value of the
historyStartTickrecord component
-
followingFrame
public long followingFrame()Returns the value of thefollowingFramerecord component.- Returns:
- the value of the
followingFramerecord component
-