Class Prefetch.SnapshotBatch

java.lang.Object
com.hypixel.hytale.builtin.buildertools.world.Prefetch.SnapshotBatch
Enclosing class:
Prefetch

public static final class Prefetch.SnapshotBatch extends Object
The columns and sections a run of snapshot restores covers, counted against one shared budget.

Every other load path refuses a region over the limits, or shrinks it. A restore can do neither: a write into absent storage is dropped, so a region left out comes back as a hole in the state the player asked for. A caller restoring several entries at once adds them one at a time instead, and stops the run where the budget runs out.

  • Constructor Details

  • Method Details

    • add

      public void add(@Nonnull SelectionSnapshot<?> snapshot)
      Adds what a snapshot restores. A snapshot restores at its own position.
    • withinLimits

      public boolean withinLimits()