Java Code Examples for cn.nukkit.level.format.generic.BaseFullChunk#setBlockSkyLight()
The following examples show how to use
cn.nukkit.level.format.generic.BaseFullChunk#setBlockSkyLight() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NukkitQueue.java From FastAsyncWorldedit with GNU General Public License v3.0 | 5 votes |
@Override public void setFullbright(BaseFullChunk sections) { for (int y = 0; y < 256; y++) { for (int z = 0; z < 16; z++) { for (int x = 0; x < 16; x++) { sections.setBlockSkyLight(x, y, z, 15); } } } }
Example 2
Source File: NukkitQueue.java From FastAsyncWorldedit with GNU General Public License v3.0 | 5 votes |
@Override public boolean removeSectionLighting(BaseFullChunk section, int layer, boolean hasSky) { int minY = layer << 4; int maxY = minY + 15; for (int y = minY; y < maxY; y++) { for (int z = 0; z < 16; z++) { for (int x = 0; x < 16; x++) { section.setBlockSkyLight(x, y, z, 0); section.setBlockLight(x, y, z, 0); } } } return true; }
Example 3
Source File: NukkitQueue.java From FastAsyncWorldedit with GNU General Public License v3.0 | 5 votes |
@Override public boolean removeLighting(BaseFullChunk sections, RelightMode mode, boolean hasSky) { for (int y = 0; y < 256; y++) { for (int z = 0; z < 16; z++) { for (int x = 0; x < 16; x++) { sections.setBlockSkyLight(x, y, z, 0); sections.setBlockLight(x, y, z, 0); } } } return true; }
Example 4
Source File: NukkitQueue.java From FastAsyncWorldedit with GNU General Public License v3.0 | 4 votes |
@Override public void setSkyLight(BaseFullChunk chunkSection, int x, int y, int z, int value) { chunkSection.setBlockSkyLight(x & 15, y, z & 15, value); }