Contents
Class Prefetch.SnapshotBatch
java.lang.Object
com.hypixel.hytale.builtin.buildertools.world.Prefetch.SnapshotBatch
- Enclosing class:
Prefetch
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SelectionSnapshot<?> snapshot) Adds what a snapshot restores.boolean
-
Constructor Details
-
SnapshotBatch
-
-
Method Details
-
add
Adds what a snapshot restores. A snapshot restores at its own position. -
withinLimits
public boolean withinLimits()
-