Class PhysicalReplayHistory<S>

java.lang.Object
com.viaversion.viafabricplus.bedrock.movement.replay.PhysicalReplayHistory<S>

public final class PhysicalReplayHistory<S> extends Object
One bounded journal for an actor graph. Current input is executed by the ordinary client tick exactly once.
  • Constructor Details

  • Method Details

    • begin

      public void begin(long frame)
    • admitExternal

      public void admitExternal(List<Runnable> commands)
    • record

      public void record(Runnable physicalStep)
    • complete

      public void complete(long frame)
    • markDirty

      public boolean markDirty(long frame)
    • oldestFrame

      public long oldestFrame()
    • completedFrame

      public long completedFrame()
    • before

      public S before(long frame)
    • schedule

      public boolean schedule(long frame, Predicate<S> applicable, Runnable command, boolean dirty)
    • scheduleMotion

      public boolean scheduleMotion(net.raphimc.viabedrock.api.model.MovementCorrectionTiming timing, Predicate<S> applicable, Runnable action)
      The live velocity is already applied; retain its native tick placement independently.
    • needsReplay

      public boolean needsReplay()
    • replay

      public boolean replay()
      Refresh each later snapshot after external writes and before that frame's authoritative commands.
    • clear

      public void clear()