Class LayerLightSectionStorage<M extends DataLayerStorageMap<M>>
java.lang.Object
net.minecraft.world.level.lighting.LayerLightSectionStorage<M>
- Direct Known Subclasses:
BlockLightSectionStorage
,SkyLightSectionStorage
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.longs.LongSet
protected final LightChunkGetter
private final it.unimi.dsi.fastutil.longs.LongSet
private final it.unimi.dsi.fastutil.longs.LongSet
protected boolean
private final LightLayer
protected final it.unimi.dsi.fastutil.longs.Long2ObjectMap<DataLayer>
protected final it.unimi.dsi.fastutil.longs.LongSet
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap
private final it.unimi.dsi.fastutil.longs.LongSet
protected final M
protected M
-
Constructor Summary
ModifierConstructorDescriptionprotected
LayerLightSectionStorage
(LightLayer p_75745_, LightChunkGetter p_75746_, M p_75747_) -
Method Summary
Modifier and TypeMethodDescriptionprotected DataLayer
createDataLayer
(long p_75797_) protected DataLayer
getDataLayer
(long p_75759_, boolean p_75760_) protected DataLayer
getDataLayer
(M p_75762_, long p_75763_) getDataLayerData
(long p_75794_) protected DataLayer
getDataLayerToWrite
(long p_285278_) getDebugSectionType
(long p_285114_) protected abstract int
getLightValue
(long p_75786_) protected int
getStoredLevel
(long p_75796_) protected boolean
private void
initializeSection
(long p_285124_) protected boolean
lightOnInSection
(long p_285433_) protected void
markNewInconsistencies
(LightEngine<M, ?> p_285081_) protected void
markSectionAndNeighborsAsAffected
(long p_281610_) protected void
onNodeAdded
(long p_75798_) protected void
onNodeRemoved
(long p_75799_) protected void
putSectionState
(long p_285451_, byte p_285078_) protected void
queueSectionData
(long p_285403_, DataLayer p_285498_) private void
removeSection
(long p_285477_) void
retainData
(long p_75783_, boolean p_75784_) protected void
setLightEnabled
(long p_285065_, boolean p_284938_) protected void
setStoredLevel
(long p_75773_, int p_75774_) protected boolean
storingLightForSection
(long p_75792_) protected void
protected void
updateSectionStatus
(long p_75788_, boolean p_75789_)
-
Field Details
-
layer
-
chunkSource
-
sectionStates
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap sectionStates -
columnsWithSources
private final it.unimi.dsi.fastutil.longs.LongSet columnsWithSources -
visibleSectionData
-
updatingSectionData
-
changedSections
protected final it.unimi.dsi.fastutil.longs.LongSet changedSections -
sectionsAffectedByLightUpdates
protected final it.unimi.dsi.fastutil.longs.LongSet sectionsAffectedByLightUpdates -
queuedSections
-
columnsToRetainQueuedDataFor
private final it.unimi.dsi.fastutil.longs.LongSet columnsToRetainQueuedDataFor -
toRemove
private final it.unimi.dsi.fastutil.longs.LongSet toRemove -
hasInconsistencies
protected volatile boolean hasInconsistencies
-
-
Constructor Details
-
LayerLightSectionStorage
-
-
Method Details
-
storingLightForSection
protected boolean storingLightForSection(long p_75792_) -
getDataLayer
-
getDataLayer
-
getDataLayerToWrite
-
getDataLayerData
-
getLightValue
protected abstract int getLightValue(long p_75786_) -
getStoredLevel
protected int getStoredLevel(long p_75796_) -
setStoredLevel
protected void setStoredLevel(long p_75773_, int p_75774_) -
markSectionAndNeighborsAsAffected
protected void markSectionAndNeighborsAsAffected(long p_281610_) -
createDataLayer
-
hasInconsistencies
protected boolean hasInconsistencies() -
markNewInconsistencies
-
onNodeAdded
protected void onNodeAdded(long p_75798_) -
onNodeRemoved
protected void onNodeRemoved(long p_75799_) -
setLightEnabled
protected void setLightEnabled(long p_285065_, boolean p_284938_) -
lightOnInSection
protected boolean lightOnInSection(long p_285433_) -
retainData
public void retainData(long p_75783_, boolean p_75784_) -
queueSectionData
-
updateSectionStatus
protected void updateSectionStatus(long p_75788_, boolean p_75789_) -
putSectionState
protected void putSectionState(long p_285451_, byte p_285078_) -
initializeSection
private void initializeSection(long p_285124_) -
removeSection
private void removeSection(long p_285477_) -
swapSectionMap
protected void swapSectionMap() -
getDebugSectionType
-