Class MinecraftProvider

java.lang.Object
net.fabricmc.loom.configuration.providers.minecraft.MinecraftProvider
Direct Known Subclasses:
LegacyMergedMinecraftProvider, MergedMinecraftProvider, SingleJarMinecraftProvider, SplitMinecraftProvider

public abstract class MinecraftProvider extends Object
  • Constructor Details

  • Method Details

    • provideClient

      protected boolean provideClient()
    • provideServer

      protected boolean provideServer()
    • provide

      public void provide() throws Exception
      Throws:
      Exception
    • cacheKey

      protected String cacheKey()
    • initFiles

      protected void initFiles()
    • extractBundledServerJar

      public final void extractBundledServerJar() throws IOException
      Throws:
      IOException
    • workingDir

      public File workingDir()
    • dir

      public File dir(String path)
    • file

      public File file(String path)
    • path

      public Path path(String path)
    • getMinecraftClientJar

      public File getMinecraftClientJar()
    • getMinecraftExtractedServerJar

      public @Nullable File getMinecraftExtractedServerJar()
    • getMinecraftServerJar

      public File getMinecraftServerJar()
    • minecraftVersion

      public String minecraftVersion()
    • getVersionInfo

      public MinecraftVersionMeta 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 the official mapping namespace into env-specific variants.
    • getJarPrefix

      public String getJarPrefix()
    • setJarPrefix

      public void setJarPrefix(String jarSuffix)
    • getServerBundleMetadata

      public @Nullable BundleMetadata getServerBundleMetadata()
    • getMinecraftJars

      public abstract List<Path> getMinecraftJars()
    • getOfficialNamespace

      public abstract MappingsNamespace getOfficialNamespace()
    • getProject

      protected org.gradle.api.Project getProject()
    • getExtension

      protected LoomGradleExtension getExtension()
    • refreshDeps

      public boolean refreshDeps()
    • minecraftWorkingDirectory

      public static File minecraftWorkingDirectory(org.gradle.api.Project project, String version)