public class PatcherProject
extends java.lang.Object
implements java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
PatcherProject(java.lang.String name,
PatcherPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doesGenPatches() |
void |
generateFrom(PatcherProject patcher)
The project from witch the patches for this project will be generated.
|
void |
genPatchesFrom(java.lang.String generateFrom)
The project from witch the patches for this project will be generated.
|
java.lang.String |
getCapName() |
protected groovy.lang.Closure<java.lang.String> |
getDelayedMainClassClient() |
protected groovy.lang.Closure<java.lang.String> |
getDelayedMainClassServer() |
protected groovy.lang.Closure<java.io.File> |
getDelayedPatchDir() |
protected groovy.lang.Closure<java.io.File> |
getDelayedResourcesDir() |
protected groovy.lang.Closure<java.lang.String> |
getDelayedRunArgsClient() |
protected groovy.lang.Closure<java.lang.String> |
getDelayedRunArgsServer() |
protected groovy.lang.Closure<java.io.File> |
getDelayedSourcesDir() |
protected groovy.lang.Closure<java.io.File> |
getDelayedTestResourcesDir() |
protected groovy.lang.Closure<java.io.File> |
getDelayedTestSourcesDir() |
protected groovy.lang.Closure<java.lang.String> |
getDelayedTweakClassClient() |
protected groovy.lang.Closure<java.lang.String> |
getDelayedTweakClassServer() |
java.lang.String |
getGenPatchesFrom() |
java.lang.String |
getMainClassClient() |
java.lang.String |
getMainClassServer() |
java.lang.String |
getName() |
java.lang.String |
getPatchAfter() |
java.io.File |
getPatchDir() |
java.lang.String |
getPatchPrefixChanged() |
java.lang.String |
getPatchPrefixOriginal() |
java.io.File |
getResourcesDir() |
java.io.File |
getRootDir() |
java.lang.String |
getRunArgsClient() |
java.lang.String |
getRunArgsServer() |
java.io.File |
getSourcesDir() |
java.io.File |
getTestResourcesDir() |
java.io.File |
getTestSourcesDir() |
java.lang.String |
getTweakClassClient() |
java.lang.String |
getTweakClassServer() |
boolean |
isApplyMcpPatches() |
boolean |
isGenMcpPatches() |
boolean |
isS2sKeepImports() |
void |
mainClassClient(java.lang.Object mainClass) |
void |
mainClassServer(java.lang.Object mainClass) |
void |
patchAfter(PatcherProject patcher)
Sets the project after which this project will apply its patches
All patches apply on top of the clean project anyways.
|
void |
patchAfter(java.lang.String patchAfter)
Sets the project after which this project will apply its patches
All patches apply on top of the clean project anyways.
|
void |
patchDir(java.lang.Object patchDir)
The directory where the patches are found, and to witch generated patches should be saved.
|
void |
patchPrefixChanged(java.lang.Object patchPrefixChanged) |
void |
patchPrefixOriginal(java.lang.Object patchPrefixOriginal) |
void |
resourcesDir(java.lang.Object resourcesDir)
The directory where the non-patch resources for this project are.
|
void |
rootDir(java.lang.Object rootDir)
The root directory of the project.
|
void |
runArgsClient(java.lang.Object mainClass) |
void |
runArgsServer(java.lang.Object mainClass) |
void |
setApplyMcpPatches(boolean applyMcpPatches) |
void |
setGenMcpPatches(boolean genMcpPatches) |
void |
setGenPatchesFrom(PatcherProject patcher)
The project from witch the patches for this project will be generated.
|
void |
setGenPatchesFrom(java.lang.String generateFrom)
The project from witch the patches for this project will be generated.
|
void |
setMainClassClient(java.lang.Object mainClass)
This is used for the run configs and the manifest of the universal jar.
|
void |
setMainClassServer(java.lang.Object mainClass)
This is used for the run configs and the manifest of the universal jar.
|
void |
setPatchAfter(PatcherProject patcher)
Sets the project after which this project will apply its patches
All patches apply on top of the clean project anyways.
|
void |
setPatchAfter(java.lang.String patchAfter)
Sets the project after which this project will apply its patches.
|
void |
setPatchDir(java.lang.Object patchDir)
The directory where the patches are found, and to whitch generated patches should be saved.
|
void |
setPatchPrefixChanged(java.lang.Object patchPrefixChanged)
The path prefix of the "changed" path in the patch files.
|
void |
setPatchPrefixOriginal(java.lang.Object patchPrefixOriginal)
The path prefix of the "original" path in the patch files.
|
void |
setResourcesDir(java.lang.Object resourcesDir)
The directory where the non-patch resources for this project are.
|
void |
setRootDir(java.lang.Object rootDir)
The root directory of the project.
|
void |
setRunArgsClient(java.lang.Object runArgs)
This is used for the run configs and the manifest of the universal jar.
|
void |
setRunArgsServer(java.lang.Object runArgs)
This is used for the run configs and the manifest of the universal jar.
|
void |
setS2sKeepImports(boolean value) |
void |
setSourcesDir(java.lang.Object sourcesDir)
The directory where the non-patch sources for this project are.
|
void |
setTestResourcesDir(java.lang.Object testResourcesDir)
The directory where the non-patch resources for this project are.
|
void |
setTestSourcesDir(java.lang.Object testSourcesDir)
The directory where the test sourcess for this project are.
|
void |
setTweakClassClient(java.lang.Object tweakClass)
This is used for the run configs and the manifest of the universal jar.
|
void |
setTweakClassServer(java.lang.Object tweakClass)
This is used for the run configs and the manifest of the universal jar.
|
void |
sourcesDir(java.lang.Object sourcesDir)
The directory where the non-patch sources for this project are.
|
void |
testResourcesDir(java.lang.Object testResourcesDir)
The directory where the non-patch resources for this project are.
|
void |
testSourcesDir(java.lang.Object testSourcesDir)
The directory where the test sourcess for this project are.
|
void |
tweakClassClient(java.lang.Object mainClass) |
void |
tweakClassServer(java.lang.Object mainClass) |
protected void |
validate()
Validates the object to ensure its been configured correctly and isnt missing something.
|
protected PatcherProject(java.lang.String name,
PatcherPlugin plugin)
public java.lang.String getName()
public java.lang.String getCapName()
public java.lang.String getPatchAfter()
public void setPatchAfter(java.lang.String patchAfter)
patchAfter - project to patch afterpublic void patchAfter(java.lang.String patchAfter)
patchAfter - project to patch afterpublic void setPatchAfter(PatcherProject patcher)
patcher - project to patch afterpublic void patchAfter(PatcherProject patcher)
patcher - project to patch afterpublic java.lang.String getGenPatchesFrom()
public void setGenPatchesFrom(java.lang.String generateFrom)
generateFrom - Project to generate patches frompublic void setGenPatchesFrom(PatcherProject patcher)
patcher - Project to generate patches frompublic void genPatchesFrom(java.lang.String generateFrom)
generateFrom - Project to generate patches fromprotected boolean doesGenPatches()
public void generateFrom(PatcherProject patcher)
patcher - Project to generate patches frompublic java.io.File getRootDir()
public void setRootDir(java.lang.Object rootDir)
rootDir - root directory of the projectpublic void rootDir(java.lang.Object rootDir)
rootDir - root directory of the projectpublic java.io.File getPatchDir()
public void setPatchDir(java.lang.Object patchDir)
patchDir - patch directory of the projectpublic void patchDir(java.lang.Object patchDir)
patchDir - patch directory of the projectpublic java.io.File getSourcesDir()
public void setSourcesDir(java.lang.Object sourcesDir)
sourcesDir - non-MC source directory of the projectpublic void sourcesDir(java.lang.Object sourcesDir)
sourcesDir - non-MC source directory of the projectpublic java.io.File getResourcesDir()
public void setResourcesDir(java.lang.Object resourcesDir)
resourcesDir - non-MC resource directory of the projectpublic void resourcesDir(java.lang.Object resourcesDir)
resourcesDir - non-MC resource directory of the projectpublic java.io.File getTestSourcesDir()
public void setTestSourcesDir(java.lang.Object testSourcesDir)
testSourcesDir - test source directory of the projectpublic void testSourcesDir(java.lang.Object testSourcesDir)
testSourcesDir - test source directory of the projectpublic java.io.File getTestResourcesDir()
public void setTestResourcesDir(java.lang.Object testResourcesDir)
testResourcesDir - test resource directory of the projectpublic void testResourcesDir(java.lang.Object testResourcesDir)
testResourcesDir - test resource directory of the projectpublic java.lang.String getMainClassClient()
public void setMainClassClient(java.lang.Object mainClass)
mainClass - main class namepublic void mainClassClient(java.lang.Object mainClass)
public java.lang.String getTweakClassClient()
public void setTweakClassClient(java.lang.Object tweakClass)
tweakClass - tweaker class namepublic void tweakClassClient(java.lang.Object mainClass)
public java.lang.String getRunArgsClient()
public void setRunArgsClient(java.lang.Object runArgs)
runArgs - argumentspublic void runArgsClient(java.lang.Object mainClass)
public java.lang.String getMainClassServer()
public void setMainClassServer(java.lang.Object mainClass)
mainClass - main class namepublic void mainClassServer(java.lang.Object mainClass)
public java.lang.String getTweakClassServer()
public void setTweakClassServer(java.lang.Object tweakClass)
tweakClass - tweaker class namepublic void tweakClassServer(java.lang.Object mainClass)
public java.lang.String getRunArgsServer()
public void setRunArgsServer(java.lang.Object runArgs)
runArgs - argumentspublic void runArgsServer(java.lang.Object mainClass)
public java.lang.String getPatchPrefixOriginal()
public void setPatchPrefixOriginal(java.lang.Object patchPrefixOriginal)
patchPrefixOriginal - prefixpublic void patchPrefixOriginal(java.lang.Object patchPrefixOriginal)
public java.lang.String getPatchPrefixChanged()
public void setPatchPrefixChanged(java.lang.Object patchPrefixChanged)
patchPrefixChanged - prefixpublic void patchPrefixChanged(java.lang.Object patchPrefixChanged)
protected void validate()
public boolean isGenMcpPatches()
public void setGenMcpPatches(boolean genMcpPatches)
public boolean isApplyMcpPatches()
public void setApplyMcpPatches(boolean applyMcpPatches)
public boolean isS2sKeepImports()
public void setS2sKeepImports(boolean value)
protected groovy.lang.Closure<java.lang.String> getDelayedMainClassClient()
protected groovy.lang.Closure<java.lang.String> getDelayedTweakClassClient()
protected groovy.lang.Closure<java.lang.String> getDelayedRunArgsClient()
protected groovy.lang.Closure<java.lang.String> getDelayedMainClassServer()
protected groovy.lang.Closure<java.lang.String> getDelayedTweakClassServer()
protected groovy.lang.Closure<java.lang.String> getDelayedRunArgsServer()
protected groovy.lang.Closure<java.io.File> getDelayedSourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedResourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedTestSourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedTestResourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedPatchDir()