Class LayerLightSectionStorage<M extends DataLayerStorageMap<M>>
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.SectionTracker
net.minecraft.world.level.lighting.LayerLightSectionStorage<M>
- Direct Known Subclasses:
BlockLightSectionStorage
,SkyLightSectionStorage
public abstract class LayerLightSectionStorage<M extends DataLayerStorageMap<M>>
extends SectionTracker
-
Field Summary
Modifier and TypeFieldDescriptionprotected it.unimi.dsi.fastutil.longs.LongSet
private LightChunkGetter
private it.unimi.dsi.fastutil.longs.LongSet
protected it.unimi.dsi.fastutil.longs.LongSet
private static Direction[]
protected static int
protected static DataLayer
protected boolean
private LightLayer
protected static int
protected static int
protected it.unimi.dsi.fastutil.longs.Long2ObjectMap<DataLayer>
protected it.unimi.dsi.fastutil.longs.LongSet
protected it.unimi.dsi.fastutil.longs.LongSet
protected it.unimi.dsi.fastutil.longs.LongSet
private it.unimi.dsi.fastutil.longs.LongSet
private it.unimi.dsi.fastutil.longs.LongSet
protected M
protected M
-
Constructor Summary
ModifierConstructorDescriptionprotected
LayerLightSectionStorage(LightLayer p_75745_, LightChunkGetter p_75746_, M p_75747_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkEdgesForSection(LayerLightEngine<M,?> p_75778_, long p_75779_)
protected void
clearQueuedSectionBlocks(LayerLightEngine<?,?> p_75765_, long p_75766_)
protected DataLayer
createDataLayer(long p_75797_)
protected void
enableLightSources(long p_75775_, boolean p_75776_)
protected DataLayer
getDataLayer(long p_75759_, boolean p_75760_)
protected DataLayer
getDataLayer(M p_75762_, long p_75763_)
getDataLayerData(long p_75794_)
protected int
getLevel(long p_75781_)
protected int
getLevelFromSource(long p_75771_)
protected abstract int
getLightValue(long p_75786_)
protected int
getStoredLevel(long p_75796_)
protected boolean
protected void
markNewInconsistencies(LayerLightEngine<M,?> p_75767_, boolean p_75768_, boolean p_75769_)
protected void
onNodeAdded(long p_75798_)
protected void
onNodeRemoved(long p_75799_)
protected void
queueSectionData(long p_75755_, DataLayer p_75756_, boolean p_75757_)
void
retainData(long p_75783_, boolean p_75784_)
protected void
protected void
setLevel(long p_75749_, int p_75750_)
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_)
Methods inherited from class net.minecraft.server.level.SectionTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, update
Methods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, checkNode, getQueueSize, hasWork, queuedUpdateSize, removeFromQueue, removeIf, runUpdates
-
Field Details
-
LIGHT_AND_DATA
protected static final int LIGHT_AND_DATA- See Also:
- Constant Field Values
-
LIGHT_ONLY
protected static final int LIGHT_ONLY- See Also:
- Constant Field Values
-
EMPTY
protected static final int EMPTY- See Also:
- Constant Field Values
-
EMPTY_DATA
-
DIRECTIONS
-
layer
-
chunkSource
-
dataSectionSet
protected final it.unimi.dsi.fastutil.longs.LongSet dataSectionSet -
toMarkNoData
protected final it.unimi.dsi.fastutil.longs.LongSet toMarkNoData -
toMarkData
protected final it.unimi.dsi.fastutil.longs.LongSet toMarkData -
visibleSectionData
-
updatingSectionData
-
changedSections
protected final it.unimi.dsi.fastutil.longs.LongSet changedSections -
sectionsAffectedByLightUpdates
protected final it.unimi.dsi.fastutil.longs.LongSet sectionsAffectedByLightUpdates -
queuedSections
-
untrustedSections
private final it.unimi.dsi.fastutil.longs.LongSet untrustedSections -
columnsToRetainQueuedDataFor
private final it.unimi.dsi.fastutil.longs.LongSet columnsToRetainQueuedDataFor -
toRemove
private final it.unimi.dsi.fastutil.longs.LongSet toRemove -
hasToRemove
protected volatile boolean hasToRemove
-
-
Constructor Details
-
LayerLightSectionStorage
-
-
Method Details
-
storingLightForSection
protected boolean storingLightForSection(long p_75792_) -
getDataLayer
-
getDataLayer
-
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_) -
getLevel
protected int getLevel(long p_75781_)- Specified by:
getLevel
in classDynamicGraphMinFixedPoint
-
getLevelFromSource
protected int getLevelFromSource(long p_75771_)- Specified by:
getLevelFromSource
in classSectionTracker
-
setLevel
protected void setLevel(long p_75749_, int p_75750_)- Specified by:
setLevel
in classDynamicGraphMinFixedPoint
-
createDataLayer
-
clearQueuedSectionBlocks
-
hasInconsistencies
protected boolean hasInconsistencies() -
markNewInconsistencies
protected void markNewInconsistencies(LayerLightEngine<M,?> p_75767_, boolean p_75768_, boolean p_75769_) -
checkEdgesForSection
-
onNodeAdded
protected void onNodeAdded(long p_75798_) -
onNodeRemoved
protected void onNodeRemoved(long p_75799_) -
enableLightSources
protected void enableLightSources(long p_75775_, boolean p_75776_) -
retainData
public void retainData(long p_75783_, boolean p_75784_) -
queueSectionData
-
updateSectionStatus
protected void updateSectionStatus(long p_75788_, boolean p_75789_) -
runAllUpdates
protected void runAllUpdates() -
swapSectionMap
protected void swapSectionMap()
-