Skip to content

Commit 9aec99e

Browse files
committed
Update API to 2.0.6
1 parent f76f008 commit 9aec99e

18 files changed

+1327
-45
lines changed

nbproject/build-impl.xml

+10-4
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ is divided into following sections:
191191
</not>
192192
</and>
193193
</condition>
194-
<property name="javac.fork" value="${jdkBug6558476}"/>
194+
<condition else="false" property="javac.fork">
195+
<or>
196+
<istrue value="${jdkBug6558476}"/>
197+
<istrue value="${javac.external.vm}"/>
198+
</or>
199+
</condition>
195200
<property name="jar.index" value="false"/>
196201
<property name="jar.index.metainf" value="${jar.index}"/>
197202
<property name="copylibs.rebase" value="true"/>
@@ -217,6 +222,7 @@ is divided into following sections:
217222
<condition else="" property="testng.debug.mode" value="-mixed">
218223
<istrue value="${junit+testng.available}"/>
219224
</condition>
225+
<property name="java.failonerror" value="true"/>
220226
</target>
221227
<target name="-post-init">
222228
<!-- Empty placeholder for easier customization. -->
@@ -693,7 +699,7 @@ is divided into following sections:
693699
<sequential>
694700
<property environment="env"/>
695701
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
696-
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
702+
<java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
697703
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
698704
<jvmarg value="${profiler.info.jvmargs.agent}"/>
699705
<jvmarg line="${profiler.info.jvmargs}"/>
@@ -768,7 +774,7 @@ is divided into following sections:
768774
<attribute default="${debug.classpath}" name="classpath"/>
769775
<element name="customize" optional="true"/>
770776
<sequential>
771-
<java classname="@{classname}" dir="${work.dir}" fork="true">
777+
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
772778
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
773779
<jvmarg line="${debug-args-line}"/>
774780
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
@@ -795,7 +801,7 @@ is divided into following sections:
795801
<attribute default="jvm" name="jvm"/>
796802
<element name="customize" optional="true"/>
797803
<sequential>
798-
<java classname="@{classname}" dir="${work.dir}" fork="true">
804+
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
799805
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
800806
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
801807
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>

nbproject/genfiles.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ [email protected]
44
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
55
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
66
nbproject/build-impl.xml.data.CRC32=49949466
7-
nbproject/build-impl.xml.script.CRC32=65fe64e0
8-
nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
7+
nbproject/build-impl.xml.script.CRC32=511a462a
8+
nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48

src/org/primesoft/asyncworldedit/api/directChunk/IBlockEntry.java

+19
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,25 @@ public interface IBlockEntry extends IVectorEntry {
7474
*/
7575
void setEmission(byte level);
7676

77+
/**
78+
* Get the sky light level
79+
* @return
80+
*/
81+
byte getSky();
82+
83+
/**
84+
* Set the sky light level
85+
* @param level
86+
*/
87+
void setSky(byte level);
88+
89+
90+
/**
91+
* Does the entry have sky light data
92+
* @return
93+
*/
94+
boolean hasSkyLight();
95+
7796

7897
/**
7998
* Does the entry have light data

src/org/primesoft/asyncworldedit/api/directChunk/IDirectChunkAPI.java

+29
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,33 @@ ISerializedEntity createEntity(UUID uuid, Vector position,
190190
* @return
191191
*/
192192
short getOpacityLevel(char id);
193+
194+
195+
/**
196+
* Get the material opacity level (how much it obscures light)
197+
* for skylight
198+
*
199+
* @param type
200+
* @param data
201+
* @return
202+
*/
203+
short getOpacityLevelSkyLight(int type, int data);
204+
205+
/**
206+
* Get the material opacity level (how much it obscures light)
207+
* for skylight
208+
*
209+
* @param block
210+
* @return
211+
*/
212+
short getOpacityLevelSkyLight(BaseBlock block);
213+
214+
/**
215+
* Get the material opacity level (how much it obscures light)
216+
* for skylight
217+
*
218+
* @param id
219+
* @return
220+
*/
221+
short getOpacityLevelSkyLight(char id);
193222
}

src/org/primesoft/asyncworldedit/api/directChunk/ISimpleChunkData.java

+59-39
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
/*
2-
* AsyncWorldEdit API
3-
* Copyright (c) 2015, SBPrime <https://github.com/SBPrime/>
4-
* Copyright (c) AsyncWorldEdit API contributors
5-
*
6-
* All rights reserved.
7-
*
8-
* Redistribution and use in source and binary forms, with or without
9-
* modification, are permitted free of charge provided that the following
10-
* conditions are met:
11-
*
12-
* 1. Redistributions of source code must retain the above copyright notice, this
13-
* list of conditions and the following disclaimer.
14-
* 2. Redistributions in binary form must reproduce the above copyright notice,
15-
* this list of conditions and the following disclaimer in the documentation
16-
* and/or other materials provided with the distribution,
17-
* 3. Redistributions of source code, with or without modification, in any form
18-
* other then free of charge is not allowed,
19-
* 4. Redistributions in binary form in any form other then free of charge is
20-
* not allowed.
21-
* 5. Any derived work based on or containing parts of this software must reproduce
22-
* the above copyright notice, this list of conditions and the following
23-
* disclaimer in the documentation and/or other materials provided with the
24-
* derived work.
25-
* 6. The original author of the software is allowed to change the license
26-
* terms or the entire license of the software as he sees fit.
27-
* 7. The original author of the software is allowed to sublicense the software
28-
* or its parts using any license terms he sees fit.
29-
*
30-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
34-
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
35-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1+
/*
2+
* AsyncWorldEdit API
3+
* Copyright (c) 2015, SBPrime <https://github.com/SBPrime/>
4+
* Copyright (c) AsyncWorldEdit API contributors
5+
*
6+
* All rights reserved.
7+
*
8+
* Redistribution and use in source and binary forms, with or without
9+
* modification, are permitted free of charge provided that the following
10+
* conditions are met:
11+
*
12+
* 1. Redistributions of source code must retain the above copyright notice, this
13+
* list of conditions and the following disclaimer.
14+
* 2. Redistributions in binary form must reproduce the above copyright notice,
15+
* this list of conditions and the following disclaimer in the documentation
16+
* and/or other materials provided with the distribution,
17+
* 3. Redistributions of source code, with or without modification, in any form
18+
* other then free of charge is not allowed,
19+
* 4. Redistributions in binary form in any form other then free of charge is
20+
* not allowed.
21+
* 5. Any derived work based on or containing parts of this software must reproduce
22+
* the above copyright notice, this list of conditions and the following
23+
* disclaimer in the documentation and/or other materials provided with the
24+
* derived work.
25+
* 6. The original author of the software is allowed to change the license
26+
* terms or the entire license of the software as he sees fit.
27+
* 7. The original author of the software is allowed to sublicense the software
28+
* or its parts using any license terms he sees fit.
29+
*
30+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
34+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
35+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4040
*/
4141
package org.primesoft.asyncworldedit.api.directChunk;
4242

@@ -55,6 +55,16 @@ public interface ISimpleChunkData extends IChunkDataCommon {
5555
* @return
5656
*/
5757
byte getEmissionLight(int x, int y, int z);
58+
59+
/**
60+
* Get block sky light from chunk data
61+
*
62+
* @param x
63+
* @param y
64+
* @param z
65+
* @return
66+
*/
67+
byte getSkyLight(int x, int y, int z);
5868

5969
/**
6070
* Get block material ID at provided possition
@@ -84,6 +94,16 @@ public interface ISimpleChunkData extends IChunkDataCommon {
8494
* @param lightLevel
8595
*/
8696
void setEmissionLight(int x, int y, int z, byte lightLevel);
97+
98+
/**
99+
* Set sky light to chunk data
100+
*
101+
* @param x
102+
* @param y
103+
* @param z
104+
* @param lightLevel
105+
*/
106+
void setSkyLight(int x, int y, int z, byte lightLevel);
87107

88108
/**
89109
* Set chunk block
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* AsyncWorldEdit API
3+
* Copyright (c) 2017, SBPrime <https://github.com/SBPrime/>
4+
* Copyright (c) AsyncWorldEdit API contributors
5+
*
6+
* All rights reserved.
7+
*
8+
* Redistribution and use in source and binary forms, with or without
9+
* modification, are permitted free of charge provided that the following
10+
* conditions are met:
11+
*
12+
* 1. Redistributions of source code must retain the above copyright notice, this
13+
* list of conditions and the following disclaimer.
14+
* 2. Redistributions in binary form must reproduce the above copyright notice,
15+
* this list of conditions and the following disclaimer in the documentation
16+
* and/or other materials provided with the distribution,
17+
* 3. Redistributions of source code, with or without modification, in any form
18+
* other then free of charge is not allowed,
19+
* 4. Redistributions in binary form in any form other then free of charge is
20+
* not allowed.
21+
* 5. Any derived work based on or containing parts of this software must reproduce
22+
* the above copyright notice, this list of conditions and the following
23+
* disclaimer in the documentation and/or other materials provided with the
24+
* derived work.
25+
* 6. The original author of the software is allowed to change the license
26+
* terms or the entire license of the software as he sees fit.
27+
* 7. The original author of the software is allowed to sublicense the software
28+
* or its parts using any license terms he sees fit.
29+
*
30+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
34+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
35+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40+
*/
41+
package org.primesoft.asyncworldedit.api.events;
42+
43+
/**
44+
* This event is called when block render count is changed
45+
* @author SBPrime
46+
*/
47+
public interface IBlockRenderCountEvent extends IPlayerEvent {
48+
Integer getOld();
49+
Integer getNew();
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* AsyncWorldEdit API
3+
* Copyright (c) 2017, SBPrime <https://github.com/SBPrime/>
4+
* Copyright (c) AsyncWorldEdit API contributors
5+
*
6+
* All rights reserved.
7+
*
8+
* Redistribution and use in source and binary forms, with or without
9+
* modification, are permitted free of charge provided that the following
10+
* conditions are met:
11+
*
12+
* 1. Redistributions of source code must retain the above copyright notice, this
13+
* list of conditions and the following disclaimer.
14+
* 2. Redistributions in binary form must reproduce the above copyright notice,
15+
* this list of conditions and the following disclaimer in the documentation
16+
* and/or other materials provided with the distribution,
17+
* 3. Redistributions of source code, with or without modification, in any form
18+
* other then free of charge is not allowed,
19+
* 4. Redistributions in binary form in any form other then free of charge is
20+
* not allowed.
21+
* 5. Any derived work based on or containing parts of this software must reproduce
22+
* the above copyright notice, this list of conditions and the following
23+
* disclaimer in the documentation and/or other materials provided with the
24+
* derived work.
25+
* 6. The original author of the software is allowed to change the license
26+
* terms or the entire license of the software as he sees fit.
27+
* 7. The original author of the software is allowed to sublicense the software
28+
* or its parts using any license terms he sees fit.
29+
*
30+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
34+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
35+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40+
*/
41+
package org.primesoft.asyncworldedit.api.events;
42+
43+
import com.sk89q.worldedit.EditSession;
44+
45+
/**
46+
* This event is invoked when setBlockCHangeLimit is called on an EditSession
47+
* @author SBPrime
48+
*/
49+
public interface IEditSessionLimitChanged {
50+
EditSession getEditSession();
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* AsyncWorldEdit API
3+
* Copyright (c) 2017, SBPrime <https://github.com/SBPrime/>
4+
* Copyright (c) AsyncWorldEdit API contributors
5+
*
6+
* All rights reserved.
7+
*
8+
* Redistribution and use in source and binary forms, with or without
9+
* modification, are permitted free of charge provided that the following
10+
* conditions are met:
11+
*
12+
* 1. Redistributions of source code must retain the above copyright notice, this
13+
* list of conditions and the following disclaimer.
14+
* 2. Redistributions in binary form must reproduce the above copyright notice,
15+
* this list of conditions and the following disclaimer in the documentation
16+
* and/or other materials provided with the distribution,
17+
* 3. Redistributions of source code, with or without modification, in any form
18+
* other then free of charge is not allowed,
19+
* 4. Redistributions in binary form in any form other then free of charge is
20+
* not allowed.
21+
* 5. Any derived work based on or containing parts of this software must reproduce
22+
* the above copyright notice, this list of conditions and the following
23+
* disclaimer in the documentation and/or other materials provided with the
24+
* derived work.
25+
* 6. The original author of the software is allowed to change the license
26+
* terms or the entire license of the software as he sees fit.
27+
* 7. The original author of the software is allowed to sublicense the software
28+
* or its parts using any license terms he sees fit.
29+
*
30+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
34+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
35+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40+
*/
41+
package org.primesoft.asyncworldedit.api.events;
42+
43+
/**
44+
* Base event to handle them all
45+
* @author SBPrime
46+
*/
47+
public interface IEvent {
48+
49+
}

0 commit comments

Comments
 (0)