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_332379_, String p_334432_, String p_334138_, MutableComponent p_332782_, MutableComponent p_331966_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
createStorage
(RegionStorageInfo p_328836_, Path p_332071_) private static List
<WorldUpgrader.FileToUpgrade> getAllChunkPositions
(RegionStorageInfo p_330333_, Path p_330743_) private List
<WorldUpgrader.DimensionToUpgrade<T>> private ListIterator
<WorldUpgrader.FileToUpgrade> getFilesToProcess
(RegionStorageInfo p_332870_, Path p_331013_) private void
onFileFinished
(RegionFile p_332836_) private boolean
processOnePosition
(ResourceKey<Level> p_328452_, T p_333889_, ChunkPos p_332028_) protected abstract boolean
tryProcessOnePosition
(T p_329483_, ChunkPos p_327751_, ResourceKey<Level> p_335733_) void
upgrade()
-
Field Details
-
upgradingStatus
-
finishedStatus
-
type
-
folderName
-
previousWriteFuture
-
dataFixType
-
-
Constructor Details
-
AbstractUpgrader
AbstractUpgrader(DataFixTypes p_332379_, String p_334432_, String p_334138_, MutableComponent p_332782_, MutableComponent p_331966_)
-
-
Method Details
-
upgrade
public void upgrade() -
getDimensionsToUpgrade
-
createStorage
-
getFilesToProcess
private ListIterator<WorldUpgrader.FileToUpgrade> getFilesToProcess(RegionStorageInfo p_332870_, Path p_331013_) -
getAllChunkPositions
private static List<WorldUpgrader.FileToUpgrade> getAllChunkPositions(RegionStorageInfo p_330333_, Path p_330743_) -
processOnePosition
-
tryProcessOnePosition
protected abstract boolean tryProcessOnePosition(T p_329483_, ChunkPos p_327751_, ResourceKey<Level> p_335733_) -
onFileFinished
-