SnapshotBuffer

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

public EntitySnapshot getSnapshotClamped (final int tickIndex)

Method getSnapshotClamped.

Parameters:
final int tickIndex

getSnapshot

public EntitySnapshot getSnapshot (final int tickIndex)

Method getSnapshot.

Parameters:
final int tickIndex

getSnapshotRelative

private EntitySnapshot getSnapshotRelative (final int relIndex)

Method getSnapshotRelative.

Parameters:
final int relIndex

storeSnapshot

public void storeSnapshot (final int tickIndex, @Nonnull final Vector3d position, @Nonnull final Vector3f bodyRotation)

Method storeSnapshot.

Parameters:
final int tickIndex
@Nonnull final Vector3d position
@Nonnull final Vector3f bodyRotation

resize

public void resize (final int newLength)

Method resize.

Parameters:
final int newLength

isInitialized

public boolean isInitialized ()

Method isInitialized.

getCurrentTickIndex

public int getCurrentTickIndex ()

Method getCurrentTickIndex.

getOldestTickIndex

public int getOldestTickIndex ()

Method getOldestTickIndex.

clone

public Component clone ()

Method clone.