类 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
-
字段概要
从类继承的字段 net.minecraftforge.gradle.common.BasePlugin
assetIndex, mcManifest, otherPlugin, project, version -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final voidvoidprotected voidThis mod adds the API sourceSet, and correctly configures theprotected abstract voidAdd Forge/FML ATs here.protected voidprotected voidprotected voidconfigurePostDecomp(boolean decomp, boolean remove) Configure tasks and stuff after you know if the decomp file exists or not.protected DelayedFiledelayedDirtyFile(String name, String classifier, String ext) Returns a file in the DirtyDir if the deobfuscation task is dirty.protected DelayedFiledelayedDirtyFile(String name, String classifier, String ext, boolean usesMappings) Returns a file in the DirtyDir if the deobfuscation task is dirty.protected voidAllows for the configuration of tasks in AfterEvaluateprotected abstract voiddoVersionChecks(String version) protected abstract StringgetApiCacheDir(T exten) May invoke the extension object, or be hardcoded.abstract Stringmay not include delayed tokens.protected abstract StringgetApiVersion(T exten) May invoke the extension object, or be hardcoded.protected abstract StringName of the source dependency.For run configurationsprotected abstract StringFor run configurations.protected abstract StringFor run configurations.This extension object will have the name "minecraft"protected abstract StringgetMcVersion(T exten) May invoke the extension object, or be hardcoded.For run configurationsprotected abstract StringFor run configurations.protected abstract StringFor run configurations.protected abstract StringName of the source dependency.protected abstract StringgetSrgCacheDir(T exten) May invoke the extension object, or be hardcoded.protected abstract StringFor run configurationsprotected abstract StringThis unlike the others, is evaluated as a delayed string, and may contain various tokens including: {API_NAME} {API_VERSION} {MC_VERSION}protected abstract StringgetUserDevCacheDir(T exten) May invoke the extension object, or be hardcoded.protected abstract booleanMay invoke the extension object, or be hardcoded.final voidinjectIntellijRuns(Document doc, String module) protected voidsetMinecraftDeps(boolean decomp, boolean remove) 从类继承的方法 net.minecraftforge.gradle.common.BasePlugin
addFlatRepo, addMavenRepo, apply, applyExternalPlugin, applyOverlayPlugin, canOverlayPlugin, delayedFile, delayedFileTree, delayedString, delayedZipTree, finalCall, getAssetIndex, getAssetIndexClosure, getDevJson, getExtension, getOverlayExtension, getProject, getWithEtag, makeTask, makeTask, parseAssetIndex
-
构造器详细资料
-
UserBasePlugin
public UserBasePlugin()
-
-
方法详细资料
-
applyPlugin
public void applyPlugin()- 指定者:
applyPlugin在类中BasePlugin<T extends UserExtension>
-
getApiName
may not include delayed tokens.- 返回:
- name of API, eg "forge", "fml", "liteloader"
-
getSrcDepName
Name of the source dependency. eg: forgeSrc may not include delayed tokens.- 返回:
- the name of the recompiled dependency
-
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
May invoke the extension object, or be hardcoded. may not include delayed tokens.- 参数:
exten- the extension object- 返回:
- the api version
-
getMcVersion
May invoke the extension object, or be hardcoded. may not include delayed tokens.- 参数:
exten- the extension object- 返回:
- the MC version
-
getApiCacheDir
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
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
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
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
For run configurations. Is delayed.- 返回:
- the client tweaker class name
-
getServerTweaker
For run configurations. Is delayed.- 返回:
- the server tweaker class name
-
getStartDir
For run configurations- 返回:
- the start location
-
getClientRunClass
For run configurations. Is delayed.- 返回:
- the client main class name
-
getClientRunArgs
For run configurations- 返回:
- the client run arguments
-
getServerRunClass
For run configurations. Is delayed.- 返回:
- the server main class name
-
getServerRunArgs
For run configurations- 返回:
- the server run arguments
-
resolve
- 指定者:
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
-
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 taskremove- should remove old dependencies or not
-
setMinecraftDeps
protected void setMinecraftDeps(boolean decomp, boolean remove) -
configureDeobfuscation
Add Forge/FML ATs here. This happens during normal evaluation, and NOT AfterEvaluate.- 参数:
task- the deobfuscation task
-
doVersionChecks
- 参数:
version- may have pre-release suffix _pre#
-
delayedDirtyFile
Returns a file in the DirtyDir if the deobfuscation task is dirty. Otherwise, returns the cached one.- 参数:
name- the name..classifier- the classifierext- 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 classifierext- the extensionusesMappings- whether or not MCP mappings are specified- 返回:
- delayed file
-
getExtensionClass
从类复制的说明:BasePluginThis extension object will have the name "minecraft"- 覆盖:
getExtensionClass在类中BasePlugin<T extends UserExtension>- 返回:
- extension object class
-