Class SnapshotBuffer
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.SnapshotBuffer
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, SnapshotBuffer> intintgetSnapshot(int tickIndex) getSnapshotClamped(int tickIndex) private EntitySnapshotgetSnapshotRelative(int relIndex) booleanvoidresize(int newLength) voidstoreSnapshot(int tickIndex, Vector3d position, Vector3f bodyRotation) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
snapshots
-
currentTickIndex
private int currentTickIndex -
oldestTickIndex
private int oldestTickIndex -
currentIndex
private int currentIndex
-
-
Constructor Details
-
SnapshotBuffer
public SnapshotBuffer()
-
-
Method Details
-
getComponentType
-
getSnapshotClamped
-
getSnapshot
-
getSnapshotRelative
-
storeSnapshot
-
resize
public void resize(int newLength) -
isInitialized
public boolean isInitialized() -
getCurrentTickIndex
public int getCurrentTickIndex() -
getOldestTickIndex
public int getOldestTickIndex() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-