public class SkyLightStorage extends LightStorage<SkyLightStorage.Data>
Modifier and Type | Class and Description |
---|---|
static class |
SkyLightStorage.Data |
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.longs.LongSet |
field_15816 |
private it.unimi.dsi.fastutil.longs.LongSet |
field_15820 |
private boolean |
hasSkyLightUpdates |
private static Direction[] |
LIGHT_REDUCTION_DIRECTIONS |
private it.unimi.dsi.fastutil.longs.LongSet |
lightEnabled |
private it.unimi.dsi.fastutil.longs.LongSet |
pendingSkylightUpdates |
dirtySections, EMPTY, field_15797, field_15802, field_15804, hasLightUpdates, lightArrays, lightArraysToAdd, nonEmptySections, uncachedLightArrays
Modifier | Constructor and Description |
---|---|
protected |
SkyLightStorage(ChunkProvider chunkProvider) |
Modifier and Type | Method and Description |
---|---|
private void |
checkForUpdates() |
protected ChunkNibbleArray |
createLightArray(long pos) |
protected int |
getLight(long blockPos) |
protected boolean |
hasLightUpdates() |
protected boolean |
isAboveMinimumHeight(int blockY) |
protected boolean |
isAboveTopmostLightArray(long pos) |
protected boolean |
isLightEnabled(long sectionPos) |
protected boolean |
method_15565(long long2) |
private void |
method_20809(long long2) |
private void |
method_20810(long long2) |
protected void |
onChunkRemoved(long long2) |
protected void |
onLightArrayCreated(long blockPos) |
protected void |
setLightEnabled(long long2,
boolean bool) |
protected void |
updateLightArrays(ChunkLightProvider<SkyLightStorage.Data,?> lightProvider,
boolean doSkylight,
boolean skipEdgeLightPropagation) |
get, getInitialLevel, getLevel, getLightArray, getLightArray, getLightArray, hasLight, notifyChunkProvider, removeChunkData, set, setLevel, setLightArray, setRetainData, updateAll, updateSectionStatus
getPropagatedLevel, isMarker, propagateLevel, recalculateLevel, update
applyPendingUpdates, hasPendingUpdates, method_24206, method_24208, propagateLevel, removePendingUpdate, resetLevel, updateLevel
private static final Direction[] LIGHT_REDUCTION_DIRECTIONS
private final it.unimi.dsi.fastutil.longs.LongSet field_15820
private final it.unimi.dsi.fastutil.longs.LongSet pendingSkylightUpdates
private final it.unimi.dsi.fastutil.longs.LongSet field_15816
private final it.unimi.dsi.fastutil.longs.LongSet lightEnabled
private volatile boolean hasSkyLightUpdates
protected SkyLightStorage(ChunkProvider chunkProvider)
protected int getLight(long blockPos)
getLight
in class LightStorage<SkyLightStorage.Data>
protected void onLightArrayCreated(long blockPos)
onLightArrayCreated
in class LightStorage<SkyLightStorage.Data>
private void method_20809(long long2)
private void method_20810(long long2)
private void checkForUpdates()
protected void onChunkRemoved(long long2)
onChunkRemoved
in class LightStorage<SkyLightStorage.Data>
protected void setLightEnabled(long long2, boolean bool)
setLightEnabled
in class LightStorage<SkyLightStorage.Data>
protected boolean hasLightUpdates()
hasLightUpdates
in class LightStorage<SkyLightStorage.Data>
protected ChunkNibbleArray createLightArray(long pos)
createLightArray
in class LightStorage<SkyLightStorage.Data>
protected void updateLightArrays(ChunkLightProvider<SkyLightStorage.Data,?> lightProvider, boolean doSkylight, boolean skipEdgeLightPropagation)
updateLightArrays
in class LightStorage<SkyLightStorage.Data>
protected boolean isAboveMinimumHeight(int blockY)
protected boolean method_15565(long long2)
protected boolean isAboveTopmostLightArray(long pos)
protected boolean isLightEnabled(long sectionPos)