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.
40
40
*/
41
41
package org .primesoft .asyncworldedit .api .directChunk ;
42
42
@@ -55,6 +55,16 @@ public interface ISimpleChunkData extends IChunkDataCommon {
55
55
* @return
56
56
*/
57
57
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 );
58
68
59
69
/**
60
70
* Get block material ID at provided possition
@@ -84,6 +94,16 @@ public interface ISimpleChunkData extends IChunkDataCommon {
84
94
* @param lightLevel
85
95
*/
86
96
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 );
87
107
88
108
/**
89
109
* Set chunk block
0 commit comments