类 UserBasePlugin<T extends UserExtension>

java.lang.Object
net.minecraftforge.gradle.common.BasePlugin<T>
net.minecraftforge.gradle.user.UserBasePlugin<T>
所有已实现的接口:
DelayedBase.IDelayedResolver<T>, org.gradle.api.Plugin<org.gradle.api.Project>
直接已知子类:
UserLibBasePlugin, UserPatchBasePlugin

public abstract class UserBasePlugin<T extends UserExtension> extends BasePlugin<T>
  • 构造器详细资料

    • UserBasePlugin

      public UserBasePlugin()
  • 方法详细资料

    • applyPlugin

      public void applyPlugin()
      指定者:
      applyPlugin 在类中 BasePlugin<T extends UserExtension>
    • getApiName

      public abstract String getApiName()
      may not include delayed tokens.
      返回:
      name of API, eg "forge", "fml", "liteloader"
    • getSrcDepName

      protected abstract String getSrcDepName()
      Name of the source dependency. eg: forgeSrc may not include delayed tokens.
      返回:
      the name of the recompiled dependency
    • getBinDepName

      protected abstract String getBinDepName()
      Name of the source dependency. eg: forgeBin may not include delayed tokens.
      返回:
      the name of the bin-patched dependency
    • hasApiVersion

      protected abstract boolean hasApiVersion()
      May invoke the extension object, or be hardcoded. may not include delayed tokens.
      返回:
      has an api version
    • getApiVersion

      protected abstract String getApiVersion(T exten)
      May invoke the extension object, or be hardcoded. may not include delayed tokens.
      参数:
      exten - the extension object
      返回:
      the api version
    • getMcVersion

      protected abstract String getMcVersion(T exten)
      May invoke the extension object, or be hardcoded. may not include delayed tokens.
      参数:
      exten - the extension object
      返回:
      the MC version
    • getApiCacheDir

      protected abstract String getApiCacheDir(T exten)
      May invoke the extension object, or be hardcoded. This unlike the others, is evaluated as a delayed file, and may contain various tokens including: {API_NAME} {API_VERSION} {MC_VERSION}
      参数:
      exten - the extension object
      返回:
      the API cache dir
    • getSrgCacheDir

      protected abstract String getSrgCacheDir(T exten)
      May invoke the extension object, or be hardcoded. This unlike the others, is evaluated as a delayed file, and may contain various tokens including: {API_NAME} {API_VERSION} {MC_VERSION}
      参数:
      exten - the extension object
      返回:
      the SRG cache dir
    • getUserDevCacheDir

      protected abstract String getUserDevCacheDir(T exten)
      May invoke the extension object, or be hardcoded. This unlike the others, is evaluated as a delayed file, and may contain various tokens including: {API_NAME} {API_VERSION} {MC_VERSION}
      参数:
      exten - the extension object
      返回:
      the userdev cache dir
    • getUserDev

      protected abstract String getUserDev()
      This unlike the others, is evaluated as a delayed string, and may contain various tokens including: {API_NAME} {API_VERSION} {MC_VERSION}
      返回:
      the userdev dep string
    • getClientTweaker

      protected abstract String getClientTweaker()
      For run configurations. Is delayed.
      返回:
      the client tweaker class name
    • getServerTweaker

      protected abstract String getServerTweaker()
      For run configurations. Is delayed.
      返回:
      the server tweaker class name
    • getStartDir

      protected abstract String getStartDir()
      For run configurations
      返回:
      the start location
    • getClientRunClass

      protected abstract String getClientRunClass()
      For run configurations. Is delayed.
      返回:
      the client main class name
    • getClientRunArgs

      protected abstract Iterable<String> getClientRunArgs()
      For run configurations
      返回:
      the client run arguments
    • getServerRunClass

      protected abstract String getServerRunClass()
      For run configurations. Is delayed.
      返回:
      the server main class name
    • getServerRunArgs

      protected abstract Iterable<String> getServerRunArgs()
      For run configurations
      返回:
      the server run arguments
    • resolve

      public String resolve(String pattern, org.gradle.api.Project project, T exten)
      指定者:
      resolve 在接口中 DelayedBase.IDelayedResolver<T extends UserExtension>
      覆盖:
      resolve 在类中 BasePlugin<T extends UserExtension>
    • configureDeps

      protected void configureDeps()
    • configureCompilation

      protected void configureCompilation()
      This mod adds the API sourceSet, and correctly configures the
    • configureIntellij

      protected void configureIntellij()
    • injectIntellijRuns

      public final void injectIntellijRuns(Document doc, String module) throws DOMException, IOException
      抛出:
      DOMException
      IOException
    • afterEvaluate

      public final void afterEvaluate()
      覆盖:
      afterEvaluate 在类中 BasePlugin<T extends UserExtension>
    • delayedTaskConfig

      protected void delayedTaskConfig()
      Allows for the configuration of tasks in AfterEvaluate
    • configurePostDecomp

      protected void configurePostDecomp(boolean decomp, boolean remove)
      Configure tasks and stuff after you know if the decomp file exists or not.
      参数:
      decomp - will decompile this task
      remove - should remove old dependencies or not
    • setMinecraftDeps

      protected void setMinecraftDeps(boolean decomp, boolean remove)
    • configureDeobfuscation

      protected abstract void configureDeobfuscation(ProcessJarTask task)
      Add Forge/FML ATs here. This happens during normal evaluation, and NOT AfterEvaluate.
      参数:
      task - the deobfuscation task
    • doVersionChecks

      protected abstract void doVersionChecks(String version)
      参数:
      version - may have pre-release suffix _pre#
    • delayedDirtyFile

      protected DelayedFile delayedDirtyFile(String name, String classifier, String ext)
      Returns a file in the DirtyDir if the deobfuscation task is dirty. Otherwise, returns the cached one.
      参数:
      name - the name..
      classifier - the classifier
      ext - the extension
      返回:
      delayed file
    • delayedDirtyFile

      protected DelayedFile delayedDirtyFile(String name, String classifier, String ext, boolean usesMappings)
      Returns a file in the DirtyDir if the deobfuscation task is dirty. Otherwise, returns the cached one.
      参数:
      name - the name..
      classifier - the classifier
      ext - the extension
      usesMappings - whether or not MCP mappings are specified
      返回:
      delayed file
    • getExtensionClass

      protected Class<T> getExtensionClass()
      从类复制的说明: BasePlugin
      This extension object will have the name "minecraft"
      覆盖:
      getExtensionClass 在类中 BasePlugin<T extends UserExtension>
      返回:
      extension object class