2016-11-28 04:34:12 +01:00
|
|
|
package com.boydti.fawe.example;
|
|
|
|
|
|
|
|
public interface Relighter {
|
2016-11-28 07:19:23 +01:00
|
|
|
boolean addChunk(int cx, int cz, byte[] skipReason, int bitmask);
|
2016-11-28 04:34:12 +01:00
|
|
|
|
|
|
|
void addLightUpdate(int x, int y, int z);
|
|
|
|
|
|
|
|
void fixLightingSafe(boolean sky);
|
|
|
|
|
2018-01-16 01:30:55 +01:00
|
|
|
default void removeAndRelight(boolean sky) {
|
|
|
|
removeLighting();
|
|
|
|
fixLightingSafe(sky);
|
|
|
|
}
|
|
|
|
|
|
|
|
void removeLighting();
|
|
|
|
|
2016-11-28 04:34:12 +01:00
|
|
|
void fixBlockLighting();
|
|
|
|
|
|
|
|
void fixSkyLighting();
|
|
|
|
|
|
|
|
boolean isEmpty();
|
2016-11-28 07:19:23 +01:00
|
|
|
|
|
|
|
public static class SkipReason {
|
|
|
|
public static final byte NONE = 0;
|
|
|
|
public static final byte AIR = 1;
|
|
|
|
public static final byte SOLID = 2;
|
|
|
|
}
|
2016-11-28 04:34:12 +01:00
|
|
|
}
|