Fixlighting now also calculates heightmaps

Fixes #386 and #438 seems fixed, but that might be something else that fixed?
This commit is contained in:
dordsor21
2020-09-14 14:19:23 +01:00
parent 0685881f64
commit d6c9a887ac
24 changed files with 295 additions and 41 deletions

View File

@ -1,11 +1,14 @@
package com.boydti.fawe.beta;
import com.boydti.fawe.beta.implementation.lighting.HeightMapType;
import com.sk89q.jnbt.CompoundTag;
import com.sk89q.worldedit.extent.OutputExtent;
import com.sk89q.worldedit.function.operation.Operation;
import com.sk89q.worldedit.world.biome.BiomeType;
import com.sk89q.worldedit.world.block.BlockStateHolder;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import javax.annotation.Nullable;
@ -34,6 +37,9 @@ public interface IChunkSet extends IBlocks, OutputExtent {
@Override
void setSkyLight(int x, int y, int z, int value);
@Override
void setHeightMap(HeightMapType type, int[] heightMap);
void setLightLayer(int layer, char[] toSet);
void setSkyLightLayer(int layer, char[] toSet);
@ -76,6 +82,10 @@ public interface IChunkSet extends IBlocks, OutputExtent {
return -1;
}
default Map<HeightMapType, int[]> getHeightMaps() {
return new HashMap<>();
}
@Override
IChunkSet reset();