public abstract class UserBasePlugin<T extends UserExtension> extends BasePlugin<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
useLocalCache
A boolean used to cache the output of useLocalCache;
|
otherPlugin, project| Constructor and Description |
|---|
UserBasePlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAtsToDeobf() |
protected void |
addEclipseRuns()
Creates task that generate the eclipse run configs and attaches them to the eclipse task.
|
protected abstract void |
afterDecomp(boolean isDecomp,
boolean useLocalCache,
java.lang.String mcConfig)
This method should add the MC dependency to the supplied config, as well as do any extra configuration that requires the provided information.
|
protected void |
afterEvaluate() |
void |
applyPlugin() |
protected abstract void |
applyUserPlugin() |
protected void |
configureCompilation()
Creates the api SourceSet and configures the classpaths of all the SourceSets to have MC and the MC deps in them.
|
protected void |
configureIntellij()
Adds the intellij run configs and makes a few other tweaks to the intellij project creation
|
protected void |
createSourceCopyTasks()
Creates and partially configures the source replacement tasks.
|
protected abstract java.util.List<java.lang.String> |
getClientRunArgs(T ext)
For run configurations.
|
protected abstract java.lang.String |
getClientRunClass(T ext)
To be inserted into GradleStart.
|
protected abstract java.lang.String |
getClientTweaker(T ext)
To be inserted into GradleStart.
|
protected abstract java.util.List<java.lang.String> |
getServerRunArgs(T ext)
For run configurations.
|
protected abstract java.lang.String |
getServerRunClass(T ext)
To be inserted into GradleStartServer.
|
protected abstract java.lang.String |
getServerTweaker(T ext)
To be inserted into GradleStartServer.
|
protected abstract java.lang.Object |
getStartDir()
The location where the GradleStart files will be generated to.
|
protected abstract boolean |
hasClientRun()
This method is called early, and not late.
|
protected abstract boolean |
hasServerRun()
This method is called early, and not late.
|
void |
injectIntellijRuns(org.w3c.dom.Document doc,
java.lang.String module) |
protected void |
mapConfigurations() |
protected void |
tasksClient(java.lang.String globalPattern,
java.lang.String localPattern) |
protected void |
tasksMerged(java.lang.String globalPattern,
java.lang.String localPattern) |
protected void |
tasksServer(java.lang.String globalPattern,
java.lang.String localPattern) |
protected boolean |
useLocalCache(T extension)
This method is called sufficiently late.
|
addFlatRepo, addMavenRepo, apply, applyExternalPlugin, applyOverlayPlugin, buildProject, cacheFile, canOverlayPlugin, delayedFile, delayedString, delayedTree, getExtension, getOverlayExtension, getWithEtag, makeTask, makeTask, makeTask, maybeMakeTask, maybeMakeTask, maybeMakeTask, parseAndStoreVersion, parseAndStoreVersionprotected boolean useLocalCache
useLocalCachepublic final void applyPlugin()
applyPlugin in class BasePlugin<T extends UserExtension>protected void afterEvaluate()
afterEvaluate in class BasePlugin<T extends UserExtension>protected abstract void applyUserPlugin()
protected void tasksClient(java.lang.String globalPattern,
java.lang.String localPattern)
protected void tasksServer(java.lang.String globalPattern,
java.lang.String localPattern)
protected void tasksMerged(java.lang.String globalPattern,
java.lang.String localPattern)
protected boolean useLocalCache(T extension)
extension - The extension object of this pluginprotected void configureCompilation()
protected void createSourceCopyTasks()
protected void mapConfigurations()
protected void addAtsToDeobf()
protected abstract void afterDecomp(boolean isDecomp,
boolean useLocalCache,
java.lang.String mcConfig)
isDecomp - Whether to use the recmpield MC artifactuseLocalCache - Whetehr or not ATs were applied to this artifactmcConfig - Which gradle configuration to add the MC dep toprotected abstract boolean hasServerRun()
protected abstract boolean hasClientRun()
protected abstract java.lang.Object getStartDir()
protected abstract java.lang.String getClientTweaker(T ext)
ext - the Extension objectprotected abstract java.lang.String getServerTweaker(T ext)
ext - the Extension objectprotected abstract java.lang.String getClientRunClass(T ext)
ext - the Extension objectprotected abstract java.util.List<java.lang.String> getClientRunArgs(T ext)
ext - the Extension objectprotected abstract java.lang.String getServerRunClass(T ext)
ext - the Extension objectprotected abstract java.util.List<java.lang.String> getServerRunArgs(T ext)
ext - the Extension objectprotected void addEclipseRuns()
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.IOException