public abstract class SectionLightStorage<M extends LightDataMap<M>> extends SectionDistanceGraph
修飾子とタイプ | フィールドと説明 |
---|---|
protected it.unimi.dsi.fastutil.longs.LongSet |
activeLightSections
Section positions with blocks in them that can be affected by lighting.
|
protected it.unimi.dsi.fastutil.longs.LongSet |
addedActiveLightSections |
protected it.unimi.dsi.fastutil.longs.LongSet |
addedEmptySections |
protected M |
cachedLightData |
protected it.unimi.dsi.fastutil.longs.LongSet |
changedLightPositions |
protected it.unimi.dsi.fastutil.longs.LongSet |
dirtyCachedSections |
protected static NibbleArray |
EMPTY_ARRAY |
protected boolean |
hasSectionsToUpdate |
protected it.unimi.dsi.fastutil.longs.Long2ObjectMap<NibbleArray> |
newArrays |
protected M |
uncachedLightData |
修飾子 | コンストラクタと説明 |
---|---|
protected |
SectionLightStorage(LightType lightTypeIn,
IChunkLightProvider chunkLightProvider,
M dataMap) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
cancelSectionUpdates(LightEngine<?,?> engine,
long sectionPosIn) |
protected void |
func_215523_k(long p_215523_1_) |
protected void |
func_215524_j(long p_215524_1_) |
protected void |
func_215526_b(long p_215526_1_,
boolean p_215526_3_) |
NibbleArray |
getArray(long sectionPosIn) |
protected NibbleArray |
getArray(long sectionPosIn,
boolean cached) |
protected NibbleArray |
getArray(M map,
long sectionPosIn) |
protected int |
getLevel(long sectionPosIn) |
protected int |
getLight(long worldPos) |
protected abstract int |
getLightOrDefault(long worldPos) |
protected NibbleArray |
getOrCreateArray(long sectionPosIn) |
protected int |
getSourceLevel(long pos) |
protected boolean |
hasSection(long sectionPosIn) |
protected boolean |
hasSectionsToUpdate() |
protected void |
processAllLevelUpdates() |
void |
retainChunkData(long sectionColumnPos,
boolean retain) |
protected void |
setData(long sectionPosIn,
NibbleArray array) |
protected void |
setLevel(long sectionPosIn,
int level) |
protected void |
setLight(long worldPos,
int lightLevel) |
protected void |
updateAndNotify() |
protected void |
updateSections(LightEngine<M,?> engine,
boolean updateSkyLight,
boolean updateBlockLight) |
protected void |
updateSectionStatus(long sectionPosIn,
boolean isEmpty) |
computeLevel, getEdgeLevel, isRoot, notifyNeighbors, updateSourceLevel
cancelUpdate, func_227465_a_, func_227467_c_, needsUpdate, processUpdates, propagateLevel, queuedUpdateSize, scheduleUpdate, scheduleUpdate
protected static final NibbleArray EMPTY_ARRAY
protected final it.unimi.dsi.fastutil.longs.LongSet activeLightSections
protected final it.unimi.dsi.fastutil.longs.LongSet addedEmptySections
protected final it.unimi.dsi.fastutil.longs.LongSet addedActiveLightSections
protected volatile M extends LightDataMap<M> uncachedLightData
protected final M extends LightDataMap<M> cachedLightData
protected final it.unimi.dsi.fastutil.longs.LongSet dirtyCachedSections
protected final it.unimi.dsi.fastutil.longs.LongSet changedLightPositions
protected final it.unimi.dsi.fastutil.longs.Long2ObjectMap<NibbleArray> newArrays
protected volatile boolean hasSectionsToUpdate
protected SectionLightStorage(LightType lightTypeIn, IChunkLightProvider chunkLightProvider, M dataMap)
protected boolean hasSection(long sectionPosIn)
@Nullable protected NibbleArray getArray(long sectionPosIn, boolean cached)
@Nullable protected NibbleArray getArray(M map, long sectionPosIn)
@Nullable public NibbleArray getArray(long sectionPosIn)
protected abstract int getLightOrDefault(long worldPos)
protected int getLight(long worldPos)
protected void setLight(long worldPos, int lightLevel)
protected int getLevel(long sectionPosIn)
getLevel
クラス内 LevelBasedGraph
protected int getSourceLevel(long pos)
getSourceLevel
クラス内 SectionDistanceGraph
protected void setLevel(long sectionPosIn, int level)
setLevel
クラス内 LevelBasedGraph
protected NibbleArray getOrCreateArray(long sectionPosIn)
protected void cancelSectionUpdates(LightEngine<?,?> engine, long sectionPosIn)
protected boolean hasSectionsToUpdate()
protected void updateSections(LightEngine<M,?> engine, boolean updateSkyLight, boolean updateBlockLight)
protected void func_215524_j(long p_215524_1_)
protected void func_215523_k(long p_215523_1_)
protected void func_215526_b(long p_215526_1_, boolean p_215526_3_)
public void retainChunkData(long sectionColumnPos, boolean retain)
protected void setData(long sectionPosIn, @Nullable NibbleArray array)
protected void updateSectionStatus(long sectionPosIn, boolean isEmpty)
protected void processAllLevelUpdates()
protected void updateAndNotify()