Package ovh.mythmc.gestalt.loader
Class GestaltLoaderInitializationResponse
java.lang.Object
ovh.mythmc.gestalt.loader.GestaltLoaderInitializationResponse
Represents the outcome of a
GestaltLoader.initialize() call.
Contains a GestaltLoaderInitializationResponse.Type indicating the overall result and an optional set of
GestaltLoaderInitializationResponse.Warnings for non-fatal issues encountered during initialization (e.g., an
outdated JAR that could not be deleted).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerates the possible outcomes of aGestaltLoader.initialize()call.static enumNon-fatal warnings that may be attached to aGestaltLoaderInitializationResponse. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif initialization ended in a usable state, i.e., the type isGestaltLoaderInitializationResponse.Type.SUCCESSorGestaltLoaderInitializationResponse.Type.ALREADY_AVAILABLE.type()Returns the result type of this response.warnings()Returns the set of non-fatal warnings that occurred during initialization.protected GestaltLoaderInitializationResponsewarnings(GestaltLoaderInitializationResponse.Warning... warnings)
-
Method Details
-
type
Returns the result type of this response.- Returns:
- the response type
-
warnings
Returns the set of non-fatal warnings that occurred during initialization.- Returns:
- the set of warnings, possibly empty
-
warnings
protected GestaltLoaderInitializationResponse warnings(GestaltLoaderInitializationResponse.Warning... warnings) -
isSuccess
public boolean isSuccess()Returnstrueif initialization ended in a usable state, i.e., the type isGestaltLoaderInitializationResponse.Type.SUCCESSorGestaltLoaderInitializationResponse.Type.ALREADY_AVAILABLE.- Returns:
trueif Gestalt was successfully loaded or was already available
-