package net.minecraft.client.gui.screens.worldselection; import java.nio.file.Path; import java.util.Optional; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.core.LayeredRegistryAccess; import net.minecraft.server.RegistryLayer; import net.minecraft.world.level.gamerules.GameRules; import net.minecraft.world.level.storage.LevelDataAndDimensions; import org.jspecify.annotations.Nullable; @FunctionalInterface @Environment(EnvType.CLIENT) public interface CreateWorldCallback { boolean create( CreateWorldScreen createWorldScreen, LayeredRegistryAccess finalLayers, LevelDataAndDimensions.WorldDataAndGenSettings worldDataAndGenSettings, Optional gameRules, @Nullable Path tempDataPackDir ); }