Class MinecraftProvider
java.lang.Object
net.fabricmc.loom.configuration.providers.minecraft.MinecraftProvider
- Direct Known Subclasses:
LegacyMergedMinecraftProvider,MergedMinecraftProvider,SingleJarMinecraftProvider,SplitMinecraftProvider
-
Constructor Summary
ConstructorsConstructorDescriptionMinecraftProvider(MinecraftMetadataProvider metadataProvider, ConfigContext configContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcacheKey()final voidprotected LoomGradleExtension@Nullable Fileabstract MappingsNamespaceprotected org.gradle.api.Project@Nullable BundleMetadataprotected voidbooleanReturns true if the minecraft version is between Beta 1.0 (inclusive) and 1.3 (exclusive), which splits theofficialmapping namespace into env-specific variants.booleanstatic FileminecraftWorkingDirectory(org.gradle.api.Project project, String version) voidprovide()protected booleanprotected booleanbooleanvoidsetJarPrefix(String jarSuffix)
-
Constructor Details
-
MinecraftProvider
-
-
Method Details
-
provideClient
protected boolean provideClient() -
provideServer
protected boolean provideServer() -
provide
- Throws:
Exception
-
cacheKey
-
initFiles
protected void initFiles() -
extractBundledServerJar
- Throws:
IOException
-
workingDir
-
dir
-
file
-
path
-
getMinecraftClientJar
-
getMinecraftExtractedServerJar
-
getMinecraftServerJar
-
minecraftVersion
-
getVersionInfo
-
isLegacyVersion
public boolean isLegacyVersion()- Returns:
- true if the minecraft version is older than 1.3.
-
isLegacySplitOfficialNamespaceVersion
public boolean isLegacySplitOfficialNamespaceVersion()Returns true if the minecraft version is between Beta 1.0 (inclusive) and 1.3 (exclusive), which splits theofficialmapping namespace into env-specific variants. -
getJarPrefix
-
setJarPrefix
-
getServerBundleMetadata
-
getMinecraftJars
-
getOfficialNamespace
-
getProject
protected org.gradle.api.Project getProject() -
getExtension
-
refreshDeps
public boolean refreshDeps() -
minecraftWorkingDirectory
-