Class MinecraftExtension

java.lang.Object
com.gtnewhorizons.retrofuturagradle.MinecraftExtension
All Implemented Interfaces:
IMinecraftyExtension

public abstract class MinecraftExtension extends Object implements IMinecraftyExtension
Parameter block for the `minecraft {...}` Gradle script extension
  • Constructor Details

    • MinecraftExtension

      public MinecraftExtension(Project project)
  • Method Details

    • getSkipSlowTasks

      public abstract Property<Boolean> getSkipSlowTasks()
      Skips slow-running tasks (decompilation, jar merging, etc.) if the artifacts already exist, useful for development of the plugin.
    • getUsesFml

      public abstract Property<Boolean> getUsesFml()
      Whether FML is included in the decompiled environment, default is true.
    • getUsesForge

      public abstract Property<Boolean> getUsesForge()
      Whether Forge is included in the decompiled environment, default is true.
    • getExtraTweakClasses

      public abstract ListProperty<String> getExtraTweakClasses()
      Extra LaunchWrapper tweak classes to use when running Minecraft
    • getExtraRunJvmArguments

      public abstract ListProperty<String> getExtraRunJvmArguments()
      Extra JVM arguments to use when running Minecraft
    • getInjectedTags

      public abstract MapProperty<String,Object> getInjectedTags()
      A key-value map of tags to inject into the project either by way of token substitution (hacky, deprecated) or generating a small Java file with the tag values.
    • getTagReplacementFiles

      public abstract ListProperty<String> getTagReplacementFiles()
      Glob patterns on which to run tag replacement, deprecated as the implementation is very hacky, implemented for compat with FG buildscripts
    • getGroupsToExcludeFromAutoReobfMapping

      public abstract SetProperty<String> getGroupsToExcludeFromAutoReobfMapping()
      Dependency groups to exclude from automatic remapping from dev to reobf jars. Add reobfed dependencies manually to reobfJarConfiguration as needed
    • getUseDependencyAccessTransformers

      public abstract Property<Boolean> getUseDependencyAccessTransformers()
      Set to true to scan dependencies for access transformers (based on FMLAT entries in MANIFEST.MFs). False by default.
    • getDependenciesForAccessTransformerScan

      public abstract ConfigurableFileCollection getDependenciesForAccessTransformerScan()
      If getUseDependencyAccessTransformers() is true, this is the list of files to scan for AT entries. It's the compileClasspath configuration by default, use ConfigurableFileCollection.setFrom(Object...) if you want to replace it with something else.
    • setVersion

      @Deprecated public void setVersion(String version)
      Deprecated.
    • getVersion

      @Deprecated public String getVersion()
      Deprecated.
    • getMappings