Class WorldOpenFlows
java.lang.Object
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LevelStorageSource
private static final org.slf4j.Logger
private final Minecraft
private static final UUID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
askForBackup
(LevelStorageSource.LevelStorageAccess p_312560_, boolean p_233143_, Runnable p_233144_, Runnable p_312163_) static void
confirmWorldCreation
(Minecraft p_270593_, CreateWorldScreen p_270733_, com.mojang.serialization.Lifecycle p_270539_, Runnable p_270158_, boolean p_270709_) void
createFreshLevel
(String p_233158_, LevelSettings p_233159_, WorldOptions p_249243_, Function<RegistryAccess, WorldDimensions> p_249252_, Screen p_310233_) void
createLevelFromExistingSettings
(LevelStorageSource.LevelStorageAccess p_250919_, ReloadableServerResources p_248897_, LayeredRegistryAccess<RegistryLayer> p_250801_, WorldData p_251654_) createWorldAccess
(String p_233156_) private CompletableFuture
<Void> loadBundledResourcePack
(DownloadedPackSource p_312230_, LevelStorageSource.LevelStorageAccess p_310544_) private <D,
R> R loadWorldDataBlocking
(WorldLoader.PackConfig p_250997_, WorldLoader.WorldDataSupplier<D> p_251759_, WorldLoader.ResultFactory<D, R> p_249635_) loadWorldStem
(com.mojang.serialization.Dynamic<?> p_312184_, boolean p_233124_, PackRepository p_233125_) void
private void
openWorldCheckDiskSpace
(LevelStorageSource.LevelStorageAccess p_332115_, WorldStem p_329606_, DownloadedPackSource p_331698_, PackRepository p_334521_, Runnable p_330770_) private void
openWorldCheckVersionCompatibility
(LevelStorageSource.LevelStorageAccess p_335405_, LevelSummary p_331961_, com.mojang.serialization.Dynamic<?> p_333467_, Runnable p_328023_) private void
openWorldCheckWorldStemCompatibility
(LevelStorageSource.LevelStorageAccess p_329946_, WorldStem p_331923_, PackRepository p_329592_, Runnable p_331882_) private void
openWorldDoLoad
(LevelStorageSource.LevelStorageAccess p_329495_, WorldStem p_329186_, PackRepository p_331916_) private void
openWorldLoadBundledResourcePack
(LevelStorageSource.LevelStorageAccess p_332203_, WorldStem p_333813_, PackRepository p_328830_, Runnable p_331357_) private void
openWorldLoadLevelData
(LevelStorageSource.LevelStorageAccess p_330142_, Runnable p_335478_) private void
openWorldLoadLevelStem
(LevelStorageSource.LevelStorageAccess p_333651_, com.mojang.serialization.Dynamic<?> p_332568_, boolean p_334192_, Runnable p_332843_) private CompletableFuture
<Boolean> com.mojang.datafixers.util.Pair
<LevelSettings, WorldCreationContext>
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
WORLD_PACK_ID
-
minecraft
-
levelSource
-
-
Constructor Details
-
WorldOpenFlows
-
-
Method Details
-
createFreshLevel
public void createFreshLevel(String p_233158_, LevelSettings p_233159_, WorldOptions p_249243_, Function<RegistryAccess, WorldDimensions> p_249252_, Screen p_310233_) -
createWorldAccess
-
createLevelFromExistingSettings
public void createLevelFromExistingSettings(LevelStorageSource.LevelStorageAccess p_250919_, ReloadableServerResources p_248897_, LayeredRegistryAccess<RegistryLayer> p_250801_, WorldData p_251654_) -
loadWorldStem
public WorldStem loadWorldStem(com.mojang.serialization.Dynamic<?> p_312184_, boolean p_233124_, PackRepository p_233125_) throws Exception - Throws:
Exception
-
recreateWorldData
public com.mojang.datafixers.util.Pair<LevelSettings,WorldCreationContext> recreateWorldData(LevelStorageSource.LevelStorageAccess p_249540_) throws Exception - Throws:
Exception
-
loadWorldDataBlocking
private <D,R> R loadWorldDataBlocking(WorldLoader.PackConfig p_250997_, WorldLoader.WorldDataSupplier<D> p_251759_, WorldLoader.ResultFactory<D, R> p_249635_) throws Exception- Throws:
Exception
-
askForBackup
private void askForBackup(LevelStorageSource.LevelStorageAccess p_312560_, boolean p_233143_, Runnable p_233144_, Runnable p_312163_) -
confirmWorldCreation
public static void confirmWorldCreation(Minecraft p_270593_, CreateWorldScreen p_270733_, com.mojang.serialization.Lifecycle p_270539_, Runnable p_270158_, boolean p_270709_) -
openWorld
-
openWorldLoadLevelData
private void openWorldLoadLevelData(LevelStorageSource.LevelStorageAccess p_330142_, Runnable p_335478_) -
openWorldCheckVersionCompatibility
private void openWorldCheckVersionCompatibility(LevelStorageSource.LevelStorageAccess p_335405_, LevelSummary p_331961_, com.mojang.serialization.Dynamic<?> p_333467_, Runnable p_328023_) -
openWorldLoadLevelStem
private void openWorldLoadLevelStem(LevelStorageSource.LevelStorageAccess p_333651_, com.mojang.serialization.Dynamic<?> p_332568_, boolean p_334192_, Runnable p_332843_) -
openWorldCheckWorldStemCompatibility
private void openWorldCheckWorldStemCompatibility(LevelStorageSource.LevelStorageAccess p_329946_, WorldStem p_331923_, PackRepository p_329592_, Runnable p_331882_) -
openWorldLoadBundledResourcePack
private void openWorldLoadBundledResourcePack(LevelStorageSource.LevelStorageAccess p_332203_, WorldStem p_333813_, PackRepository p_328830_, Runnable p_331357_) -
openWorldCheckDiskSpace
private void openWorldCheckDiskSpace(LevelStorageSource.LevelStorageAccess p_332115_, WorldStem p_329606_, DownloadedPackSource p_331698_, PackRepository p_334521_, Runnable p_330770_) -
openWorldDoLoad
private void openWorldDoLoad(LevelStorageSource.LevelStorageAccess p_329495_, WorldStem p_329186_, PackRepository p_331916_) -
loadBundledResourcePack
private CompletableFuture<Void> loadBundledResourcePack(DownloadedPackSource p_312230_, LevelStorageSource.LevelStorageAccess p_310544_) -
promptBundledPackLoadFailure
-