public abstract class UserBasePlugin<T extends UserExtension> extends BasePlugin<T>
assetIndex, otherPlugin, project, version| Constructor and Description |
|---|
UserBasePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEvaluate() |
void |
applyPlugin() |
protected void |
configureCompilation()
This mod adds the API sourceSet, and correctly configures the
|
protected abstract void |
configureDeobfuscation(ProcessJarTask task)
Add Forge/FML ATs here.
|
protected void |
configureDeps() |
protected void |
configureIntellij() |
protected void |
configurePostDecomp(boolean decomp,
boolean remove)
Configure tasks and stuff after you know if the decomp file exists or not.
|
protected DelayedFile |
delayedDirtyFile(java.lang.String name,
java.lang.String classifier,
java.lang.String ext)
Returns a file in the DirtyDir if the deobfuscation task is dirty.
|
protected DelayedFile |
delayedDirtyFile(java.lang.String name,
java.lang.String classifier,
java.lang.String ext,
boolean usesMappings)
Returns a file in the DirtyDir if the deobfuscation task is dirty.
|
protected void |
delayedTaskConfig()
Allows for the configuration of tasks in AfterEvaluate
|
protected abstract void |
doVersionChecks(java.lang.String version) |
protected abstract java.lang.String |
getApiCacheDir(T exten)
May invoke the extension object, or be hardcoded.
|
abstract java.lang.String |
getApiName()
may not include delayed tokens.
|
protected abstract java.lang.String |
getApiVersion(T exten)
May invoke the extension object, or be hardcoded.
|
protected abstract java.lang.String |
getBinDepName()
Name of the source dependency.
|
protected abstract java.lang.Iterable<java.lang.String> |
getClientRunArgs()
For run configurations
|
protected abstract java.lang.String |
getClientRunClass()
For run configurations.
|
protected abstract java.lang.String |
getClientTweaker()
For run configurations.
|
protected java.lang.Class<T> |
getExtensionClass()
This extension object will have the name "minecraft"
|
protected abstract java.lang.String |
getMcVersion(T exten)
May invoke the extension object, or be hardcoded.
|
protected abstract java.lang.Iterable<java.lang.String> |
getServerRunArgs()
For run configurations
|
protected abstract java.lang.String |
getServerRunClass()
For run configurations.
|
protected abstract java.lang.String |
getServerTweaker()
For run configurations.
|
protected abstract java.lang.String |
getSrcDepName()
Name of the source dependency.
|
protected abstract java.lang.String |
getSrgCacheDir(T exten)
May invoke the extension object, or be hardcoded.
|
protected abstract java.lang.String |
getStartDir()
For run configurations
|
protected abstract java.lang.String |
getUserDev()
This unlike the others, is evaluated as a delayed string, and may contain various tokens including:
{API_NAME} {API_VERSION} {MC_VERSION}
|
protected abstract java.lang.String |
getUserDevCacheDir(T exten)
May invoke the extension object, or be hardcoded.
|
protected abstract boolean |
hasApiVersion()
May invoke the extension object, or be hardcoded.
|
void |
injectIntellijRuns(org.w3c.dom.Document doc,
java.lang.String module) |
java.lang.String |
resolve(java.lang.String pattern,
org.gradle.api.Project project,
T exten) |
protected void |
setMinecraftDeps(boolean decomp,
boolean remove) |
addFlatRepo, addMavenRepo, apply, applyExternalPlugin, applyOverlayPlugin, canOverlayPlugin, delayedFile, delayedFileTree, delayedString, delayedZipTree, finalCall, getAssetIndex, getAssetIndexClosure, getDevJson, getExtension, getOverlayExtension, getProject, getWithEtag, makeTask, makeTask, makeTask, parseAssetIndexpublic void applyPlugin()
applyPlugin in class BasePlugin<T extends UserExtension>public abstract java.lang.String getApiName()
protected abstract java.lang.String getSrcDepName()
protected abstract java.lang.String getBinDepName()
protected abstract boolean hasApiVersion()
protected abstract java.lang.String getApiVersion(T exten)
exten - the extension objectprotected abstract java.lang.String getMcVersion(T exten)
exten - the extension objectprotected abstract java.lang.String getApiCacheDir(T exten)
exten - the extension objectprotected abstract java.lang.String getSrgCacheDir(T exten)
exten - the extension objectprotected abstract java.lang.String getUserDevCacheDir(T exten)
exten - the extension objectprotected abstract java.lang.String getUserDev()
protected abstract java.lang.String getClientTweaker()
protected abstract java.lang.String getServerTweaker()
protected abstract java.lang.String getStartDir()
protected abstract java.lang.String getClientRunClass()
protected abstract java.lang.Iterable<java.lang.String> getClientRunArgs()
protected abstract java.lang.String getServerRunClass()
protected abstract java.lang.Iterable<java.lang.String> getServerRunArgs()
public java.lang.String resolve(java.lang.String pattern,
org.gradle.api.Project project,
T exten)
resolve in interface DelayedBase.IDelayedResolver<T extends UserExtension>resolve in class BasePlugin<T extends UserExtension>protected void configureDeps()
protected void configureCompilation()
protected void configureIntellij()
public final void injectIntellijRuns(org.w3c.dom.Document doc,
java.lang.String module)
throws org.w3c.dom.DOMException,
java.io.IOException
org.w3c.dom.DOMExceptionjava.io.IOExceptionpublic final void afterEvaluate()
afterEvaluate in class BasePlugin<T extends UserExtension>protected void delayedTaskConfig()
protected void configurePostDecomp(boolean decomp,
boolean remove)
decomp - will decompile this taskremove - should remove old dependencies or notprotected void setMinecraftDeps(boolean decomp,
boolean remove)
protected abstract void configureDeobfuscation(ProcessJarTask task)
task - the deobfuscation taskprotected abstract void doVersionChecks(java.lang.String version)
version - may have pre-release suffix _pre#protected DelayedFile delayedDirtyFile(java.lang.String name, java.lang.String classifier, java.lang.String ext)
name - the name..classifier - the classifierext - the extensionprotected DelayedFile delayedDirtyFile(java.lang.String name, java.lang.String classifier, java.lang.String ext, boolean usesMappings)
name - the name..classifier - the classifierext - the extensionusesMappings - whether or not MCP mappings are specifiedprotected java.lang.Class<T> getExtensionClass()
BasePlugingetExtensionClass in class BasePlugin<T extends UserExtension>