类 WorldOpenFlows
java.lang.Object
net.minecraft.client.gui.screens.worldselection.WorldOpenFlows
-
字段概要
字段修饰符和类型字段说明private final LevelStorageSource
private static final org.slf4j.Logger
private final Minecraft
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
askForBackup
(Screen pLastScreen, String pLevelName, boolean pCustomized, Runnable pLoadLevel) static void
confirmWorldCreation
(Minecraft pMinecraft, CreateWorldScreen pScreen, com.mojang.serialization.Lifecycle pLifecycle, Runnable pLoadWorld, boolean p_270709_) void
createFreshLevel
(String pLevelName, LevelSettings pLevelSettings, WorldOptions pWorldOptions, Function<RegistryAccess, WorldDimensions> pDimensionsGetter) void
createLevelFromExistingSettings
(LevelStorageSource.LevelStorageAccess pLevelStorage, ReloadableServerResources pResources, LayeredRegistryAccess<RegistryLayer> pRegistries, WorldData pWorldData) createWorldAccess
(String pLevelName) private void
doLoadLevel
(Screen pLastScreen, String pLevelName, boolean pSafeMode, boolean pCheckAskForBackup) private void
doLoadLevel
(Screen pLastScreen, String pLevelName, boolean pSafeMode, boolean pCheckAskForBackup, boolean confirmExperimentalWarning) private WorldLoader.PackConfig
getPackConfigFromLevelData
(LevelStorageSource.LevelStorageAccess pLevelStorage, boolean pFunctionCompilationLevel, PackRepository pPackConfig) void
private <D,
R> R loadWorldDataBlocking
(WorldLoader.PackConfig pPackConfig, WorldLoader.WorldDataSupplier<D> pWorldDataSupplier, WorldLoader.ResultFactory<D, R> pResultFactory) loadWorldStem
(LevelStorageSource.LevelStorageAccess pLevelStorage, boolean pSafeMode) private WorldStem
loadWorldStem
(LevelStorageSource.LevelStorageAccess pLevelStorage, boolean pSafeMode, PackRepository pPackRepository) private CompletableFuture<Boolean>
com.mojang.datafixers.util.Pair<LevelSettings,
WorldCreationContext> recreateWorldData
(LevelStorageSource.LevelStorageAccess pLevelStorage) private static void
safeCloseAccess
(LevelStorageSource.LevelStorageAccess pLevelStorage, String pLevelName)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
minecraft
-
levelSource
-
-
构造器详细资料
-
WorldOpenFlows
-
-
方法详细资料
-
loadLevel
-
createFreshLevel
public void createFreshLevel(String pLevelName, LevelSettings pLevelSettings, WorldOptions pWorldOptions, Function<RegistryAccess, WorldDimensions> pDimensionsGetter) -
createWorldAccess
-
createLevelFromExistingSettings
public void createLevelFromExistingSettings(LevelStorageSource.LevelStorageAccess pLevelStorage, ReloadableServerResources pResources, LayeredRegistryAccess<RegistryLayer> pRegistries, WorldData pWorldData) -
loadWorldStem
private WorldStem loadWorldStem(LevelStorageSource.LevelStorageAccess pLevelStorage, boolean pSafeMode, PackRepository pPackRepository) throws Exception - 抛出:
Exception
-
recreateWorldData
public com.mojang.datafixers.util.Pair<LevelSettings,WorldCreationContext> recreateWorldData(LevelStorageSource.LevelStorageAccess pLevelStorage) throws Exception - 抛出:
Exception
-
getPackConfigFromLevelData
private WorldLoader.PackConfig getPackConfigFromLevelData(LevelStorageSource.LevelStorageAccess pLevelStorage, boolean pFunctionCompilationLevel, PackRepository pPackConfig) -
loadWorldStem
public WorldStem loadWorldStem(LevelStorageSource.LevelStorageAccess pLevelStorage, boolean pSafeMode) throws Exception - 抛出:
Exception
-
loadWorldDataBlocking
private <D,R> R loadWorldDataBlocking(WorldLoader.PackConfig pPackConfig, WorldLoader.WorldDataSupplier<D> pWorldDataSupplier, WorldLoader.ResultFactory<D, R> pResultFactory) throws Exception- 抛出:
Exception
-
doLoadLevel
-
doLoadLevel
-
promptBundledPackLoadFailure
-
safeCloseAccess
private static void safeCloseAccess(LevelStorageSource.LevelStorageAccess pLevelStorage, String pLevelName) -
askForBackup
-
confirmWorldCreation
public static void confirmWorldCreation(Minecraft pMinecraft, CreateWorldScreen pScreen, com.mojang.serialization.Lifecycle pLifecycle, Runnable pLoadWorld, boolean p_270709_)
-