Package pro.gravit.launcher.core.backend
Interface LauncherBackendAPI
public interface LauncherBackendAPI
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classstatic interfacestatic final recordstatic classstatic interfacestatic interfacestatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionauthorize(String login, AuthMethodPassword password) downloadProfile(ProfileFeatureAPI.ClientProfile profile, LauncherBackendAPI.ClientProfileSettings settings, LauncherBackendAPI.DownloadCallback callback) CompletableFuture<byte[]> fetchTexture(Texture texture) <T extends Extension>
TgetExtension(Class<T> clazz) getUserSettings(String name, Function<String, UserSettings> ifNotExist) booleanhasPermission(String permission) init()booleanmakeResourceLayer(List<Path> overlayList) voidregisterUserSettings(String name, Class<? extends UserSettings> clazz) voidvoidselectAuthMethod(AuthMethod method) voidsetCallback(LauncherBackendAPI.MainCallback callback) voidshutdown()
-
Method Details
-
setCallback
-
init
-
selectAuthMethod
-
tryAuthorize
CompletableFuture<SelfUser> tryAuthorize() -
authorize
-
fetchProfiles
CompletableFuture<List<ProfileFeatureAPI.ClientProfile>> fetchProfiles() -
makeClientProfileSettings
LauncherBackendAPI.ClientProfileSettings makeClientProfileSettings(ProfileFeatureAPI.ClientProfile profile) -
saveClientProfileSettings
-
downloadProfile
CompletableFuture<LauncherBackendAPI.ReadyProfile> downloadProfile(ProfileFeatureAPI.ClientProfile profile, LauncherBackendAPI.ClientProfileSettings settings, LauncherBackendAPI.DownloadCallback callback) -
fetchTexture
-
getAvailableJava
CompletableFuture<List<LauncherBackendAPI.Java>> getAvailableJava() -
pingServer
CompletableFuture<LauncherBackendAPI.ServerPingInfo> pingServer(ProfileFeatureAPI.ClientProfile profile) -
registerUserSettings
-
getUserSettings
-
getPermissions
UserPermissions getPermissions() -
hasPermission
-
getUsername
String getUsername() -
getSelfUser
SelfUser getSelfUser() -
isTestMode
boolean isTestMode() -
makeResourceLayer
-
getExtension
-
shutdown
void shutdown()
-