Package net.minecraft.util.worldupdate
Class WorldUpgrader.AbstractUpgrader<T extends AutoCloseable>
java.lang.Object
net.minecraft.util.worldupdate.WorldUpgrader.AbstractUpgrader<T>
- Direct Known Subclasses:
WorldUpgrader.ChunkUpgrader
,WorldUpgrader.SimpleRegionStorageUpgrader
- Enclosing class:
WorldUpgrader
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DataFixTypes
private final MutableComponent
private final String
protected CompletableFuture
<Void> private final String
private final MutableComponent
-
Constructor Summary
ConstructorDescriptionAbstractUpgrader
(DataFixTypes p_321854_, String p_321675_, String p_326131_, MutableComponent p_321807_, MutableComponent p_321799_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
createStorage
(RegionStorageInfo p_326496_, Path p_321752_) private static List
<WorldUpgrader.FileToUpgrade> getAllChunkPositions
(RegionStorageInfo p_326177_, Path p_326228_) private List
<WorldUpgrader.DimensionToUpgrade<T>> private ListIterator
<WorldUpgrader.FileToUpgrade> getFilesToProcess
(RegionStorageInfo p_325920_, Path p_326489_) private void
onFileFinished
(RegionFile p_321800_) private boolean
processOnePosition
(ResourceKey<Level> p_321757_, T p_321658_, ChunkPos p_321833_) protected abstract boolean
tryProcessOnePosition
(T p_321640_, ChunkPos p_321536_, ResourceKey<Level> p_321782_) void
upgrade()
-
Field Details
-
upgradingStatus
-
finishedStatus
-
type
-
folderName
-
previousWriteFuture
-
dataFixType
-
-
Constructor Details
-
AbstractUpgrader
AbstractUpgrader(DataFixTypes p_321854_, String p_321675_, String p_326131_, MutableComponent p_321807_, MutableComponent p_321799_)
-
-
Method Details
-
upgrade
public void upgrade() -
getDimensionsToUpgrade
-
createStorage
-
getFilesToProcess
private ListIterator<WorldUpgrader.FileToUpgrade> getFilesToProcess(RegionStorageInfo p_325920_, Path p_326489_) -
getAllChunkPositions
private static List<WorldUpgrader.FileToUpgrade> getAllChunkPositions(RegionStorageInfo p_326177_, Path p_326228_) -
processOnePosition
-
tryProcessOnePosition
protected abstract boolean tryProcessOnePosition(T p_321640_, ChunkPos p_321536_, ResourceKey<Level> p_321782_) -
onFileFinished
-