Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 7f97377

Browse files
committed
Merge branch premiumj API v1.0.0
2 parents 9aa2130 + c5345a0 commit 7f97377

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+5850
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*/nbproject/private/
1+
/*/private/
22
/*/build/
33
/*/dist/
44
/*/lib/

AsyncWorldEdit-api/build.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See commented blocks below for -->
3+
<!-- some examples of how to customize the build. -->
4+
<!-- (If you delete it and reopen the project it will be recreated.) -->
5+
<!-- By default, only the Clean and Build commands use this build script. -->
6+
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7+
<!-- the Compile on Save feature is turned off for the project. -->
8+
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9+
<!-- in the project's Project Properties dialog box.-->
10+
<project name="AsyncWorldEdit-api" default="default" basedir=".">
11+
<description>Builds, tests, and runs the project AsyncWorldEdit-api.</description>
12+
<import file="nbproject/build-impl.xml"/>
13+
<!--
14+
15+
There exist several targets which are by default empty and which can be
16+
used for execution of your tasks. These targets are usually executed
17+
before and after some main targets. They are:
18+
19+
-pre-init: called before initialization of project properties
20+
-post-init: called after initialization of project properties
21+
-pre-compile: called before javac compilation
22+
-post-compile: called after javac compilation
23+
-pre-compile-single: called before javac compilation of single file
24+
-post-compile-single: called after javac compilation of single file
25+
-pre-compile-test: called before javac compilation of JUnit tests
26+
-post-compile-test: called after javac compilation of JUnit tests
27+
-pre-compile-test-single: called before javac compilation of single JUnit test
28+
-post-compile-test-single: called after javac compilation of single JUunit test
29+
-pre-jar: called before JAR building
30+
-post-jar: called after JAR building
31+
-post-clean: called after cleaning build products
32+
33+
(Targets beginning with '-' are not intended to be called on their own.)
34+
35+
Example of inserting an obfuscator after compilation could look like this:
36+
37+
<target name="-post-compile">
38+
<obfuscate>
39+
<fileset dir="${build.classes.dir}"/>
40+
</obfuscate>
41+
</target>
42+
43+
For list of available properties check the imported
44+
nbproject/build-impl.xml file.
45+
46+
47+
Another way to customize the build is by overriding existing main targets.
48+
The targets of interest are:
49+
50+
-init-macrodef-javac: defines macro for javac compilation
51+
-init-macrodef-junit: defines macro for junit execution
52+
-init-macrodef-debug: defines macro for class debugging
53+
-init-macrodef-java: defines macro for class execution
54+
-do-jar: JAR building
55+
run: execution of project
56+
-javadoc-build: Javadoc generation
57+
test-report: JUnit report generation
58+
59+
An example of overriding the target for project execution could look like this:
60+
61+
<target name="run" depends="AsyncWorldEdit-api-impl.jar">
62+
<exec dir="bin" executable="launcher.exe">
63+
<arg file="${dist.jar}"/>
64+
</exec>
65+
</target>
66+
67+
Notice that the overridden target depends on the jar target and not only on
68+
the compile target as the regular run target does. Again, for a list of available
69+
properties which you can use, check the target you are overriding in the
70+
nbproject/build-impl.xml file.
71+
72+
-->
73+
</project>

AsyncWorldEdit-api/nbproject/build-impl.xml

Lines changed: 1448 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build.xml.data.CRC32=5a521ac3
2+
build.xml.script.CRC32=d085e50d
3+
build.xml.stylesheet.CRC32=[email protected]
4+
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5+
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6+
nbproject/build-impl.xml.data.CRC32=5a521ac3
7+
nbproject/build-impl.xml.script.CRC32=2c878d41
8+
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
annotation.processing.enabled=true
2+
annotation.processing.enabled.in.editor=false
3+
annotation.processing.processors.list=
4+
annotation.processing.run.all.processors=true
5+
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
6+
application.title=AsyncWorldEdit-api
7+
application.vendor=SBelter
8+
build.classes.dir=${build.dir}/classes
9+
build.classes.excludes=**/*.java,**/*.form
10+
# This directory is removed when the project is cleaned:
11+
build.dir=build
12+
build.generated.dir=${build.dir}/generated
13+
build.generated.sources.dir=${build.dir}/generated-sources
14+
# Only compile against the classpath explicitly listed here:
15+
build.sysclasspath=ignore
16+
build.test.classes.dir=${build.dir}/test/classes
17+
build.test.results.dir=${build.dir}/test/results
18+
# Uncomment to specify the preferred debugger connection transport:
19+
#debug.transport=dt_socket
20+
debug.classpath=\
21+
${run.classpath}
22+
debug.test.classpath=\
23+
${run.test.classpath}
24+
# Files in build.classes.dir which should be excluded from distribution jar
25+
dist.archive.excludes=
26+
# This directory is removed when the project is cleaned:
27+
dist.dir=dist
28+
dist.jar=${dist.dir}/AsyncWorldEdit-api.jar
29+
dist.javadoc.dir=${dist.dir}/javadoc
30+
endorsed.classpath=
31+
excludes=
32+
file.reference.spigot.jar=lib\\spigot.jar
33+
file.reference.WorldEdit.jar=lib\\WorldEdit.jar
34+
includes=**
35+
jar.compress=false
36+
javac.classpath=\
37+
${file.reference.WorldEdit.jar}:\
38+
${file.reference.spigot.jar}
39+
# Space-separated list of extra javac options
40+
javac.compilerargs=
41+
javac.deprecation=false
42+
javac.processorpath=\
43+
${javac.classpath}
44+
javac.source=1.6
45+
javac.target=1.6
46+
javac.test.classpath=\
47+
${javac.classpath}:\
48+
${build.classes.dir}
49+
javac.test.processorpath=\
50+
${javac.test.classpath}
51+
javadoc.additionalparam=
52+
javadoc.author=false
53+
javadoc.encoding=${source.encoding}
54+
javadoc.noindex=false
55+
javadoc.nonavbar=false
56+
javadoc.notree=false
57+
javadoc.private=false
58+
javadoc.splitindex=true
59+
javadoc.use=true
60+
javadoc.version=false
61+
javadoc.windowtitle=
62+
meta.inf.dir=${src.dir}/META-INF
63+
mkdist.disabled=true
64+
platform.active=JDK_1.6
65+
run.classpath=\
66+
${javac.classpath}:\
67+
${build.classes.dir}
68+
# Space-separated list of JVM arguments used when running the project.
69+
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
70+
# To set system properties for unit tests define test-sys-prop.name=value:
71+
run.jvmargs=
72+
run.test.classpath=\
73+
${javac.test.classpath}:\
74+
${build.test.classes.dir}
75+
source.encoding=UTF-8
76+
src.dir=src
77+
test.src.dir=test
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.java.j2seproject</type>
4+
<configuration>
5+
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
6+
<name>AsyncWorldEdit-api</name>
7+
<explicit-platform explicit-source-supported="true"/>
8+
<source-roots>
9+
<root id="src.dir"/>
10+
</source-roots>
11+
<test-roots>
12+
<root id="test.src.dir"/>
13+
</test-roots>
14+
</data>
15+
</configuration>
16+
</project>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* AsyncWorldEdit Premium is a commercial version of AsyncWorldEdit. This software
3+
* has been sublicensed by the software original author according to p7 of
4+
* AsyncWorldEdit license.
5+
*
6+
* AsyncWorldEdit Premium - donation version of AsyncWorldEdit, a performance
7+
* improvement plugin for Minecraft WorldEdit plugin.
8+
*
9+
* Copyright (c) 2015, SBPrime <https://github.com/SBPrime/>
10+
*
11+
* All rights reserved.
12+
*
13+
* 1. You may:
14+
* install and use AsyncWorldEdit in accordance with the Software documentation
15+
* and pursuant to the terms and conditions of this license
16+
* 2. You may not:
17+
* sell, redistribute, encumber, give, lend, rent, lease, sublicense, or otherwise
18+
* transfer Software, or any portions of Software, to anyone without the prior
19+
* written consent of Licensor
20+
* 3. The original author of the software is allowed to change the license
21+
* terms or the entire license of the software as he sees fit.
22+
* 4. The original author of the software is allowed to sublicense the software
23+
* or its parts using any license terms he sees fit.
24+
*
25+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
26+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
29+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
32+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35+
*/
36+
package org.primesoft.asyncworldedit.api;
37+
38+
import org.primesoft.asyncworldedit.api.directChunk.IDirectChunkAPI;
39+
40+
/**
41+
* The native minecraft API provider
42+
* @author SBPrime
43+
*/
44+
public interface IAdapter {
45+
/**
46+
* Get the adapter version
47+
* @return
48+
*/
49+
String getVersion();
50+
51+
/**
52+
* Get the direct chunk API
53+
* @return
54+
*/
55+
IDirectChunkAPI getDirectChunkAPI();
56+
}
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/*
2+
* AsyncWorldEdit Premium is a commercial version of AsyncWorldEdit. This software
3+
* has been sublicensed by the software original author according to p7 of
4+
* AsyncWorldEdit license.
5+
*
6+
* AsyncWorldEdit Premium - donation version of AsyncWorldEdit, a performance
7+
* improvement plugin for Minecraft WorldEdit plugin.
8+
*
9+
* Copyright (c) 2015, SBPrime <https://github.com/SBPrime/>
10+
*
11+
* All rights reserved.
12+
*
13+
* 1. You may:
14+
* install and use AsyncWorldEdit in accordance with the Software documentation
15+
* and pursuant to the terms and conditions of this license
16+
* 2. You may not:
17+
* sell, redistribute, encumber, give, lend, rent, lease, sublicense, or otherwise
18+
* transfer Software, or any portions of Software, to anyone without the prior
19+
* written consent of Licensor
20+
* 3. The original author of the software is allowed to change the license
21+
* terms or the entire license of the software as he sees fit.
22+
* 4. The original author of the software is allowed to sublicense the software
23+
* or its parts using any license terms he sees fit.
24+
*
25+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
26+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
29+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
32+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35+
*/
36+
package org.primesoft.asyncworldedit.api;
37+
38+
import org.primesoft.asyncworldedit.api.blockPlacer.IBlockPlacer;
39+
import org.primesoft.asyncworldedit.api.directChunk.IDirectChunkAPI;
40+
import org.primesoft.asyncworldedit.api.map.IMapUtils;
41+
import org.primesoft.asyncworldedit.api.playerManager.IPlayerManager;
42+
import org.primesoft.asyncworldedit.api.progressDisplay.IProgressDisplayManager;
43+
import org.primesoft.asyncworldedit.api.taskdispatcher.ITaskDispatcher;
44+
45+
/**
46+
* The main AsyncWorldEdit API class
47+
* @author SBPrime
48+
*/
49+
public interface IAsyncWorldEdit {
50+
/**
51+
* Get the progress display manager
52+
* @return
53+
*/
54+
IProgressDisplayManager getProgressDisplayManager();
55+
56+
57+
/**
58+
* Get the task dispatcher
59+
* @return
60+
*/
61+
ITaskDispatcher getTaskDispatcher();
62+
63+
64+
/**
65+
* Get the block placer
66+
* @return
67+
*/
68+
IBlockPlacer getBlockPlacer();
69+
70+
71+
/**
72+
* Get the physics watcher
73+
* @return
74+
*/
75+
IPhysicsWatch getPhysicsWatcher();
76+
77+
78+
/**
79+
* The player manager
80+
* @return
81+
*/
82+
IPlayerManager getPlayerManager();
83+
84+
85+
/**
86+
* Get the direct chunk API
87+
* @return
88+
*/
89+
IDirectChunkAPI getDirectChunkAPI();
90+
91+
92+
/**
93+
* Get the native API adapter
94+
* @return
95+
*/
96+
IAdapter getAdapter();
97+
98+
/**
99+
* Get the current version of the API
100+
* @return
101+
*/
102+
double getAPIVersion();
103+
104+
/**
105+
* Get the map manipulation utils
106+
* @return
107+
*/
108+
IMapUtils getMapUtils();
109+
}

0 commit comments

Comments
 (0)