Class CurvedSpacetimeGameProvider
java.lang.Object
io.codetoil.curved_spacetime.loader.quiltmc.CurvedSpacetimeGameProvider
- All Implemented Interfaces:
org.quiltmc.loader.impl.game.GameProvider
public class CurvedSpacetimeGameProvider
extends Object
implements org.quiltmc.loader.impl.game.GameProvider
Describes Curved Spacetime to Quilt Loader as the "game" it is loading.
Quilt is built to load mods for a game, so running anything else under it means supplying a
provider that answers what that game is: its id and version, the jars it lives in, the built-in
module it contributes, and how to launch it. That last part is why
io.codetoil.curved_spacetime.Start.start must keep its signature — this provider invokes
it reflectively, so a change there fails at run time rather than compile time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.quiltmc.loader.impl.game.GameProvider
org.quiltmc.loader.impl.game.GameProvider.BuiltinMod -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.quiltmc.loader.impl.util.ArgumentsCollection<org.quiltmc.loader.impl.game.GameProvider.BuiltinMod> org.quiltmc.loader.impl.entrypoint.GameTransformergetGameJars(String namespace) String[]getLaunchArguments(boolean sanitize) org.quiltmc.loader.impl.game.MappingConfigurationbooleanvoidinitialize(org.quiltmc.loader.impl.launch.common.QuiltLauncher launcher) booleanbooleanisGameClass(String name) voidlaunch(ClassLoader classLoader) booleanlocateGame(org.quiltmc.loader.impl.launch.common.QuiltLauncher launcher, String[] args) booleanvoidunlockClassPath(org.quiltmc.loader.impl.launch.common.QuiltLauncher launcher) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.quiltmc.loader.impl.game.GameProvider
canOpenGui, displayCrash, requiresPackageAccessFix
-
Constructor Details
-
CurvedSpacetimeGameProvider
public CurvedSpacetimeGameProvider()Creates the game provider.Instantiated by Quilt Loader through its service loader; the jars are not located until
locateGame(QuiltLauncher, String[])runs.
-
-
Method Details
-
getGameId
- Specified by:
getGameIdin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getGameName
- Specified by:
getGameNamein interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getRawGameVersion
- Specified by:
getRawGameVersionin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getNormalizedGameVersion
- Specified by:
getNormalizedGameVersionin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getBuiltinMods
- Specified by:
getBuiltinModsin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getGameJars
-
getEntrypoint
- Specified by:
getEntrypointin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getLaunchDirectory
- Specified by:
getLaunchDirectoryin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getMappingConfiguration
public org.quiltmc.loader.impl.game.MappingConfiguration getMappingConfiguration()- Specified by:
getMappingConfigurationin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
requiresUrlClassLoader
public boolean requiresUrlClassLoader()- Specified by:
requiresUrlClassLoaderin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
locateGame
public boolean locateGame(org.quiltmc.loader.impl.launch.common.QuiltLauncher launcher, String[] args) - Specified by:
locateGamein interfaceorg.quiltmc.loader.impl.game.GameProvider
-
isGameClass
- Specified by:
isGameClassin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
initialize
public void initialize(org.quiltmc.loader.impl.launch.common.QuiltLauncher launcher) - Specified by:
initializein interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getArguments
public org.quiltmc.loader.impl.util.Arguments getArguments()- Specified by:
getArgumentsin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getLaunchArguments
- Specified by:
getLaunchArgumentsin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
getEntrypointTransformer
public org.quiltmc.loader.impl.entrypoint.GameTransformer getEntrypointTransformer()- Specified by:
getEntrypointTransformerin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
hasAwtSupport
public boolean hasAwtSupport()- Specified by:
hasAwtSupportin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
unlockClassPath
public void unlockClassPath(org.quiltmc.loader.impl.launch.common.QuiltLauncher launcher) - Specified by:
unlockClassPathin interfaceorg.quiltmc.loader.impl.game.GameProvider
-
launch
- Specified by:
launchin interfaceorg.quiltmc.loader.impl.game.GameProvider
-