类 UserPatchBasePlugin
java.lang.Object
net.minecraftforge.gradle.common.BasePlugin<T>
net.minecraftforge.gradle.user.UserBasePlugin<UserPatchExtension>
net.minecraftforge.gradle.user.patch.UserPatchBasePlugin
- 所有已实现的接口:
DelayedBase.IDelayedResolver<UserPatchExtension>,org.gradle.api.Plugin<org.gradle.api.Project>
- 直接已知子类:
FmlUserPlugin,ForgeUserPlugin
-
字段概要
从类继承的字段 net.minecraftforge.gradle.common.BasePlugin
assetIndex, mcManifest, otherPlugin, project, version -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final voidvoidfinal booleanreturn true if this plugin can be applied over another BasePlugin.protected abstract voidAdd in the desired patching stages.protected voidconfigurePostDecomp(boolean decomp, boolean remove) Configure tasks and stuff after you know if the decomp file exists or not.protected voidAllows for the configuration of tasks in AfterEvaluateprotected voiddoVersionChecks(String version) protected abstract voiddoVersionChecks(String version, int buildNumber) protected StringgetApiCacheDir(UserPatchExtension exten) May invoke the extension object, or be hardcoded.protected abstract StringShould be with separate with periods.protected StringgetApiPath(UserPatchExtension exten) Should be with separate with slashes.protected StringgetApiVersion(UserPatchExtension exten) May invoke the extension object, or be hardcoded.protected StringName of the source dependency.For run configurationsprotected StringFor run configurations.protected StringFor run configurations.protected DelayedFileprotected Class<UserPatchExtension>This extension object will have the name "minecraft"protected StringgetMcVersion(UserPatchExtension exten) May invoke the extension object, or be hardcoded.final UserPatchExtensionFor run configurationsprotected StringFor run configurations.protected StringFor run configurations.protected StringName of the source dependency.protected StringgetSrgCacheDir(UserPatchExtension exten) May invoke the extension object, or be hardcoded.protected StringFor run configurationsprotected StringThis unlike the others, is evaluated as a delayed string, and may contain various tokens including: {API_NAME} {API_VERSION} {MC_VERSION}protected StringMay invoke the extension object, or be hardcoded.protected abstract StringTHIS HAPPENS EARLY!protected booleanMay invoke the extension object, or be hardcoded.resolve(String pattern, org.gradle.api.Project project, UserPatchExtension exten) 从类继承的方法 net.minecraftforge.gradle.user.UserBasePlugin
afterEvaluate, configureCompilation, configureDeobfuscation, configureDeps, configureIntellij, delayedDirtyFile, delayedDirtyFile, getApiName, injectIntellijRuns, setMinecraftDeps从类继承的方法 net.minecraftforge.gradle.common.BasePlugin
addFlatRepo, addMavenRepo, apply, applyExternalPlugin, delayedFile, delayedFileTree, delayedString, delayedZipTree, finalCall, getAssetIndex, getAssetIndexClosure, getExtension, getProject, getWithEtag, makeTask, makeTask, parseAssetIndex
-
构造器详细资料
-
UserPatchBasePlugin
public UserPatchBasePlugin()
-
-
方法详细资料
-
applyPlugin
public void applyPlugin()- 覆盖:
applyPlugin在类中UserBasePlugin<UserPatchExtension>
-
applyOverlayPlugin
public final void applyOverlayPlugin()- 指定者:
applyOverlayPlugin在类中BasePlugin<UserPatchExtension>
-
canOverlayPlugin
public final boolean canOverlayPlugin()从类复制的说明:BasePluginreturn true if this plugin can be applied over another BasePlugin.- 指定者:
canOverlayPlugin在类中BasePlugin<UserPatchExtension>- 返回:
- TRUE if this can be applied upon another base plugin.
-
getOverlayExtension
- 指定者:
getOverlayExtension在类中BasePlugin<UserPatchExtension>- 返回:
- the extension object with name EXT_NAME_MC
- 另请参阅:
-
delayedTaskConfig
protected void delayedTaskConfig()Allows for the configuration of tasks in AfterEvaluate -
doVersionChecks
- 指定者:
doVersionChecks在类中UserBasePlugin<UserPatchExtension>- 参数:
version- may have pre-release suffix _pre#
-
doVersionChecks
-
getDevJson
- 指定者:
getDevJson在类中BasePlugin<UserPatchExtension>
-
getSrcDepName
从类复制的说明:UserBasePluginName of the source dependency. eg: forgeSrc may not include delayed tokens.- 指定者:
getSrcDepName在类中UserBasePlugin<UserPatchExtension>- 返回:
- the name of the recompiled dependency
-
getBinDepName
从类复制的说明:UserBasePluginName of the source dependency. eg: forgeBin may not include delayed tokens.- 指定者:
getBinDepName在类中UserBasePlugin<UserPatchExtension>- 返回:
- the name of the bin-patched dependency
-
hasApiVersion
protected boolean hasApiVersion()从类复制的说明:UserBasePluginMay invoke the extension object, or be hardcoded. may not include delayed tokens.- 指定者:
hasApiVersion在类中UserBasePlugin<UserPatchExtension>- 返回:
- has an api version
-
getApiCacheDir
从类复制的说明:UserBasePluginMay 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}- 指定者:
getApiCacheDir在类中UserBasePlugin<UserPatchExtension>- 参数:
exten- the extension object- 返回:
- the API cache dir
-
getSrgCacheDir
从类复制的说明:UserBasePluginMay 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}- 指定者:
getSrgCacheDir在类中UserBasePlugin<UserPatchExtension>- 参数:
exten- the extension object- 返回:
- the SRG cache dir
-
getUserDevCacheDir
从类复制的说明:UserBasePluginMay 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}- 指定者:
getUserDevCacheDir在类中UserBasePlugin<UserPatchExtension>- 参数:
exten- the extension object- 返回:
- the userdev cache dir
-
getUserDev
从类复制的说明:UserBasePluginThis unlike the others, is evaluated as a delayed string, and may contain various tokens including: {API_NAME} {API_VERSION} {MC_VERSION}- 指定者:
getUserDev在类中UserBasePlugin<UserPatchExtension>- 返回:
- the userdev dep string
-
getExtensionClass
从类复制的说明:BasePluginThis extension object will have the name "minecraft"- 覆盖:
getExtensionClass在类中UserBasePlugin<UserPatchExtension>- 返回:
- extension object class
-
getApiVersion
从类复制的说明:UserBasePluginMay invoke the extension object, or be hardcoded. may not include delayed tokens.- 指定者:
getApiVersion在类中UserBasePlugin<UserPatchExtension>- 参数:
exten- the extension object- 返回:
- the api version
-
getMcVersion
从类复制的说明:UserBasePluginMay invoke the extension object, or be hardcoded. may not include delayed tokens.- 指定者:
getMcVersion在类中UserBasePlugin<UserPatchExtension>- 参数:
exten- the extension object- 返回:
- the MC version
-
getVersionsJsonUrl
THIS HAPPENS EARLY! no delay tokens or stuff!- 返回:
- url of the version json
-
getClientRunArgs
从类复制的说明:UserBasePluginFor run configurations- 指定者:
getClientRunArgs在类中UserBasePlugin<UserPatchExtension>- 返回:
- the client run arguments
-
getServerRunArgs
从类复制的说明:UserBasePluginFor run configurations- 指定者:
getServerRunArgs在类中UserBasePlugin<UserPatchExtension>- 返回:
- the server run arguments
-
configurePatching
Add in the desired patching stages. This happens during normal evaluation, and NOT AfterEvaluate.- 参数:
patch- patching task
-
getApiGroup
Should be with separate with periods.- 返回:
- API group
-
getApiPath
Should be with separate with slashes.- 参数:
exten- extension object- 返回:
- api path
-
getStartDir
从类复制的说明:UserBasePluginFor run configurations- 指定者:
getStartDir在类中UserBasePlugin<UserPatchExtension>- 返回:
- the start location
-
getClientRunClass
从类复制的说明:UserBasePluginFor run configurations. Is delayed.- 指定者:
getClientRunClass在类中UserBasePlugin<UserPatchExtension>- 返回:
- the client main class name
-
getClientTweaker
从类复制的说明:UserBasePluginFor run configurations. Is delayed.- 指定者:
getClientTweaker在类中UserBasePlugin<UserPatchExtension>- 返回:
- the client tweaker class name
-
getServerTweaker
从类复制的说明:UserBasePluginFor run configurations. Is delayed.- 指定者:
getServerTweaker在类中UserBasePlugin<UserPatchExtension>- 返回:
- the server tweaker class name
-
getServerRunClass
从类复制的说明:UserBasePluginFor run configurations. Is delayed.- 指定者:
getServerRunClass在类中UserBasePlugin<UserPatchExtension>- 返回:
- the server main class name
-
resolve
- 指定者:
resolve在接口中DelayedBase.IDelayedResolver<UserPatchExtension>- 覆盖:
resolve在类中UserBasePlugin<UserPatchExtension>
-
configurePostDecomp
protected void configurePostDecomp(boolean decomp, boolean remove) 从类复制的说明:UserBasePluginConfigure tasks and stuff after you know if the decomp file exists or not.- 覆盖:
configurePostDecomp在类中UserBasePlugin<UserPatchExtension>- 参数:
decomp- will decompile this taskremove- should remove old dependencies or not
-