java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.SnapshotBuffer
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class SnapshotBuffer extends Object implements Component<EntityStore>
  • Field Details

    • snapshots

      private EntitySnapshot[] snapshots
    • currentTickIndex

      private int currentTickIndex
    • oldestTickIndex

      private int oldestTickIndex
    • currentIndex

      private int currentIndex
  • Constructor Details

    • SnapshotBuffer

      public SnapshotBuffer()
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore,SnapshotBuffer> getComponentType()
    • getSnapshotClamped

      @Nonnull public EntitySnapshot getSnapshotClamped(int tickIndex)
    • getSnapshot

      @Nullable public EntitySnapshot getSnapshot(int tickIndex)
    • getSnapshotRelative

      private EntitySnapshot getSnapshotRelative(int relIndex)
    • storeSnapshot

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

      public void resize(int newLength)
    • isInitialized

      public boolean isInitialized()
    • getCurrentTickIndex

      public int getCurrentTickIndex()
    • getOldestTickIndex

      public int getOldestTickIndex()
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Overrides:
      clone in class Object