use of thpmc.vanilla_source.api.world.parallel.ParallelChunk in project VanillaSource by TheHollowPlanetMC.
the class ImplParallelWorld method hasSkyLight.
@Override
public boolean hasSkyLight(int blockX, int blockY, int blockZ) {
int chunkX = blockX >> 4;
int chunkZ = blockZ >> 4;
long coord = ChunkUtil.getCoordinateKey(chunkX, chunkZ);
ParallelChunk parallelChunk = chunkMap.get(coord);
if (parallelChunk == null)
return false;
return parallelChunk.hasSkyLight(blockX, blockY, blockZ);
}
Aggregations