Skip to content

Commit

Permalink
Update API to 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
SBPrime committed Mar 28, 2017
1 parent f76f008 commit 9aec99e
Show file tree
Hide file tree
Showing 18 changed files with 1,327 additions and 45 deletions.
14 changes: 10 additions & 4 deletions nbproject/build-impl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ is divided into following sections:
</not>
</and>
</condition>
<property name="javac.fork" value="${jdkBug6558476}"/>
<condition else="false" property="javac.fork">
<or>
<istrue value="${jdkBug6558476}"/>
<istrue value="${javac.external.vm}"/>
</or>
</condition>
<property name="jar.index" value="false"/>
<property name="jar.index.metainf" value="${jar.index}"/>
<property name="copylibs.rebase" value="true"/>
Expand All @@ -217,6 +222,7 @@ is divided into following sections:
<condition else="" property="testng.debug.mode" value="-mixed">
<istrue value="${junit+testng.available}"/>
</condition>
<property name="java.failonerror" value="true"/>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
Expand Down Expand Up @@ -693,7 +699,7 @@ is divided into following sections:
<sequential>
<property environment="env"/>
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
<java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/>
Expand Down Expand Up @@ -768,7 +774,7 @@ is divided into following sections:
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
Expand All @@ -795,7 +801,7 @@ is divided into following sections:
<attribute default="jvm" name="jvm"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
Expand Down
4 changes: 2 additions & 2 deletions nbproject/genfiles.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=8064a381@1.75.2.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=49949466
nbproject/build-impl.xml.script.CRC32=65fe64e0
nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
nbproject/build-impl.xml.script.CRC32=511a462a
nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48
19 changes: 19 additions & 0 deletions src/org/primesoft/asyncworldedit/api/directChunk/IBlockEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,25 @@ public interface IBlockEntry extends IVectorEntry {
*/
void setEmission(byte level);

/**
* Get the sky light level
* @return
*/
byte getSky();

/**
* Set the sky light level
* @param level
*/
void setSky(byte level);


/**
* Does the entry have sky light data
* @return
*/
boolean hasSkyLight();


/**
* Does the entry have light data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,33 @@ ISerializedEntity createEntity(UUID uuid, Vector position,
* @return
*/
short getOpacityLevel(char id);


/**
* Get the material opacity level (how much it obscures light)
* for skylight
*
* @param type
* @param data
* @return
*/
short getOpacityLevelSkyLight(int type, int data);

/**
* Get the material opacity level (how much it obscures light)
* for skylight
*
* @param block
* @return
*/
short getOpacityLevelSkyLight(BaseBlock block);

/**
* Get the material opacity level (how much it obscures light)
* for skylight
*
* @param id
* @return
*/
short getOpacityLevelSkyLight(char id);
}
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
/*
* AsyncWorldEdit API
* Copyright (c) 2015, SBPrime <https://github.com/SBPrime/>
* Copyright (c) AsyncWorldEdit API contributors
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted free of charge provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution,
* 3. Redistributions of source code, with or without modification, in any form
* other then free of charge is not allowed,
* 4. Redistributions in binary form in any form other then free of charge is
* not allowed.
* 5. Any derived work based on or containing parts of this software must reproduce
* the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* derived work.
* 6. The original author of the software is allowed to change the license
* terms or the entire license of the software as he sees fit.
* 7. The original author of the software is allowed to sublicense the software
* or its parts using any license terms he sees fit.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*
* AsyncWorldEdit API
* Copyright (c) 2015, SBPrime <https://github.com/SBPrime/>
* Copyright (c) AsyncWorldEdit API contributors
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted free of charge provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution,
* 3. Redistributions of source code, with or without modification, in any form
* other then free of charge is not allowed,
* 4. Redistributions in binary form in any form other then free of charge is
* not allowed.
* 5. Any derived work based on or containing parts of this software must reproduce
* the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* derived work.
* 6. The original author of the software is allowed to change the license
* terms or the entire license of the software as he sees fit.
* 7. The original author of the software is allowed to sublicense the software
* or its parts using any license terms he sees fit.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.primesoft.asyncworldedit.api.directChunk;

Expand All @@ -55,6 +55,16 @@ public interface ISimpleChunkData extends IChunkDataCommon {
* @return
*/
byte getEmissionLight(int x, int y, int z);

/**
* Get block sky light from chunk data
*
* @param x
* @param y
* @param z
* @return
*/
byte getSkyLight(int x, int y, int z);

/**
* Get block material ID at provided possition
Expand Down Expand Up @@ -84,6 +94,16 @@ public interface ISimpleChunkData extends IChunkDataCommon {
* @param lightLevel
*/
void setEmissionLight(int x, int y, int z, byte lightLevel);

/**
* Set sky light to chunk data
*
* @param x
* @param y
* @param z
* @param lightLevel
*/
void setSkyLight(int x, int y, int z, byte lightLevel);

/**
* Set chunk block
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* AsyncWorldEdit API
* Copyright (c) 2017, SBPrime <https://github.com/SBPrime/>
* Copyright (c) AsyncWorldEdit API contributors
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted free of charge provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution,
* 3. Redistributions of source code, with or without modification, in any form
* other then free of charge is not allowed,
* 4. Redistributions in binary form in any form other then free of charge is
* not allowed.
* 5. Any derived work based on or containing parts of this software must reproduce
* the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* derived work.
* 6. The original author of the software is allowed to change the license
* terms or the entire license of the software as he sees fit.
* 7. The original author of the software is allowed to sublicense the software
* or its parts using any license terms he sees fit.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.primesoft.asyncworldedit.api.events;

/**
* This event is called when block render count is changed
* @author SBPrime
*/
public interface IBlockRenderCountEvent extends IPlayerEvent {
Integer getOld();
Integer getNew();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* AsyncWorldEdit API
* Copyright (c) 2017, SBPrime <https://github.com/SBPrime/>
* Copyright (c) AsyncWorldEdit API contributors
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted free of charge provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution,
* 3. Redistributions of source code, with or without modification, in any form
* other then free of charge is not allowed,
* 4. Redistributions in binary form in any form other then free of charge is
* not allowed.
* 5. Any derived work based on or containing parts of this software must reproduce
* the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* derived work.
* 6. The original author of the software is allowed to change the license
* terms or the entire license of the software as he sees fit.
* 7. The original author of the software is allowed to sublicense the software
* or its parts using any license terms he sees fit.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.primesoft.asyncworldedit.api.events;

import com.sk89q.worldedit.EditSession;

/**
* This event is invoked when setBlockCHangeLimit is called on an EditSession
* @author SBPrime
*/
public interface IEditSessionLimitChanged {
EditSession getEditSession();
}
49 changes: 49 additions & 0 deletions src/org/primesoft/asyncworldedit/api/events/IEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* AsyncWorldEdit API
* Copyright (c) 2017, SBPrime <https://github.com/SBPrime/>
* Copyright (c) AsyncWorldEdit API contributors
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted free of charge provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution,
* 3. Redistributions of source code, with or without modification, in any form
* other then free of charge is not allowed,
* 4. Redistributions in binary form in any form other then free of charge is
* not allowed.
* 5. Any derived work based on or containing parts of this software must reproduce
* the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* derived work.
* 6. The original author of the software is allowed to change the license
* terms or the entire license of the software as he sees fit.
* 7. The original author of the software is allowed to sublicense the software
* or its parts using any license terms he sees fit.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.primesoft.asyncworldedit.api.events;

/**
* Base event to handle them all
* @author SBPrime
*/
public interface IEvent {

}
Loading

0 comments on commit 9aec99e

Please sign in to comment.