public class SnapshotBuffer implements Component
Class SnapshotBuffer. Provides snapshotbuffer functionality for the Hytale server.
java.lang.Object > SnapshotBuffer
Field Summary
snapshots
private
EntitySnapshot[]
snapshots
Field snapshots.
currentTickIndex
private
int
currentTickIndex
Field currentTickIndex.
oldestTickIndex
private
int
oldestTickIndex
Field oldestTickIndex.
currentIndex
private
int
currentIndex
Field currentIndex.
maxRel
final
int
maxRel
Field maxRel.
relIndex
final
int
relIndex
Field relIndex.
snapshot
final
EntitySnapshot
snapshot
Field snapshot.
oldLength
final
int
oldLength
Field oldLength.
buffer
final
SnapshotBuffer
buffer
Field buffer.
snap
final
EntitySnapshot
snap
Field snap.
Method Detail
SnapshotBuffer
public
public
SnapshotBuffer
()
Method SnapshotBuffer.
getComponentType
public
SnapshotBuffer>
getComponentType
()
Method getComponentType.
getSnapshotClamped
Method getSnapshotClamped.
- Parameters:
final inttickIndex
getSnapshot
Method getSnapshot.
- Parameters:
final inttickIndex
getSnapshotRelative
Method getSnapshotRelative.
- Parameters:
final intrelIndex
storeSnapshot
public
void
storeSnapshot
(final int tickIndex, @Nonnull final Vector3d position, @Nonnull final Vector3f bodyRotation)
Method storeSnapshot.
- Parameters:
final inttickIndex@Nonnull final Vector3dposition@Nonnull final Vector3fbodyRotation
resize
public
void
resize
(final int newLength)
Method resize.
- Parameters:
final intnewLength
isInitialized
public
boolean
isInitialized
()
Method isInitialized.
getCurrentTickIndex
public
int
getCurrentTickIndex
()
Method getCurrentTickIndex.
getOldestTickIndex
public
int
getOldestTickIndex
()
Method getOldestTickIndex.