public abstract class UserBasePlugin<T extends UserBaseExtension> extends BasePlugin<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
useLocalCache
A boolean used to cache the output of useLocalCache;
|
otherPlugin, project, replacer| Constructor and Description |
|---|
UserBasePlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAtsToDeobf() |
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 java.lang.Object |
chooseDeobfOutput(java.lang.String globalPattern,
java.lang.String localPattern,
java.lang.String appendage,
java.lang.String classifier)
This method returns an object that resolved to the correct pattern based on the useLocalCache() method
|
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 |
configureEclipse()
Configures the eclipse classpath
Also creates task that generate the eclipse run configs and attaches them to the eclipse task.
|
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 void |
doDepAtExtraction() |
protected void |
doDevTimeDeobf() |
protected abstract java.util.List<java.lang.String> |
getClientJvmArgs(T ext)
For run configurations.
|
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 TaskDepDummy |
getDummyDep(java.lang.String config,
DelayedFile dummy,
java.lang.String taskName) |
protected abstract java.util.List<java.lang.String> |
getServerJvmArgs(T ext)
For run configurations.
|
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 |
makeDecompTasks(java.lang.String globalPattern,
java.lang.String localPattern,
java.lang.Object inputJar,
java.lang.String inputTask,
java.lang.Object mcpPatchSet) |
protected void |
makeObfSource() |
protected void |
makeRunTasks() |
protected void |
mapConfigurations() |
protected void |
setupReobf(TaskSingleReobf reobf)
Sets up the default settings for reobf tasks.
|
protected boolean |
useLocalCache(T extension)
This method is called sufficiently late.
|
addFlatRepo, addMavenRepo, apply, applyExternalPlugin, buildProject, cacheFile, delayedFile, delayedString, delayedTree, doFGVersionCheck, getExtension, getWithEtag, makeTask, makeTask, makeTask, maybeMakeTask, maybeMakeTask, maybeMakeTask, onVersionCheck, parseAndStoreVersion, parseAndStoreVersionprotected boolean useLocalCache
public final void applyPlugin()
applyPlugin in class BasePlugin<T extends UserBaseExtension>protected void afterEvaluate()
afterEvaluate in class BasePlugin<T extends UserBaseExtension>protected abstract void applyUserPlugin()
protected void setupReobf(TaskSingleReobf reobf)
reobf - The task to setupprotected void makeDecompTasks(java.lang.String globalPattern,
java.lang.String localPattern,
java.lang.Object inputJar,
java.lang.String inputTask,
java.lang.Object mcpPatchSet)
protected final java.lang.Object chooseDeobfOutput(java.lang.String globalPattern,
java.lang.String localPattern,
java.lang.String appendage,
java.lang.String classifier)
protected boolean useLocalCache(T extension)
extension - The extension object of this pluginprotected void configureCompilation()
protected void createSourceCopyTasks()
protected void doDevTimeDeobf()
protected void doDepAtExtraction()
protected void makeObfSource()
protected void makeRunTasks()
protected final TaskDepDummy getDummyDep(java.lang.String config, DelayedFile dummy, java.lang.String taskName)
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.util.List<java.lang.String> getClientJvmArgs(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 abstract java.util.List<java.lang.String> getServerJvmArgs(T ext)
ext - the Extension objectprotected void configureEclipse()
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