Update Forge implementation and added build script.

Including:
* Update to new MCP names
* Adding of an build script (see maven 'forge' profile)
* Adding of an regeneration code
* Simplifying of the command registration
* Added command usage description to avoid empty help pages
* Added missing raw information
* Used a WeakReference as world reference to avoid keeping a world in memory
* Added mcmod.info
* Fixed player orientation
* Fixed printRaw not splitting the message correct
This commit is contained in:
davboecki
2013-09-29 15:30:06 +02:00
committed by wizjany
parent 4daef4aff2
commit bd98e98698
13 changed files with 370 additions and 117 deletions

33
pom.xml
View File

@@ -304,6 +304,39 @@
</build>
<profiles>
<!-- Build WorldEdit for MC-Forge -->
<profile>
<id>forge</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<property name="maven.build.directory" value="${project.build.directory}"/>
<property name="jchronic.path" value="${maven.dependency.com.sk89q.jchronic.jar.path}"/>
<property name="truezip.path" value="${maven.dependency.de.schlichtherle.truezip.jar.path}"/>
<property name="rhino.path" value="${maven.dependency.rhino.js.jar.path}"/>
<property name="snakeyaml.path" value="${maven.dependency.org.yaml.snakeyaml.jar.path}"/>
<property name="we.version" value="${project.version}"/>
<ant antfile="src/forge/ant/build.xml"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Attach javadocs and source .jars -->
<profile>
<id>attach-docs</id>