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
FieldsModifier and TypeFieldDescriptionprotected it.unimi.dsi.fastutil.longs.LongSetprivate LightChunkGetterprivate it.unimi.dsi.fastutil.longs.LongSetprotected it.unimi.dsi.fastutil.longs.LongSetprivate static Direction[]protected static intprotected static DataLayerprotected booleanprivate LightLayerprotected static intprotected static intprotected it.unimi.dsi.fastutil.longs.Long2ObjectMap<DataLayer>protected it.unimi.dsi.fastutil.longs.LongSetprotected it.unimi.dsi.fastutil.longs.LongSetprotected it.unimi.dsi.fastutil.longs.LongSetprivate it.unimi.dsi.fastutil.longs.LongSetprivate it.unimi.dsi.fastutil.longs.LongSetprotected Mprotected M -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLayerLightSectionStorage(LightLayer p_75745_, LightChunkGetter p_75746_, M p_75747_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckEdgesForSection(LayerLightEngine<M,?> p_75778_, long p_75779_)protected voidclearQueuedSectionBlocks(LayerLightEngine<?,?> p_75765_, long p_75766_)protected DataLayercreateDataLayer(long p_75797_)protected voidenableLightSources(long p_75775_, boolean p_75776_)protected DataLayergetDataLayer(long p_75759_, boolean p_75760_)protected DataLayergetDataLayer(M p_75762_, long p_75763_)getDataLayerData(long p_75794_)protected intgetLevel(long p_75781_)protected intgetLevelFromSource(long p_75771_)protected abstract intgetLightValue(long p_75786_)protected intgetStoredLevel(long p_75796_)protected booleanprotected voidmarkNewInconsistencies(LayerLightEngine<M,?> p_75767_, boolean p_75768_, boolean p_75769_)protected voidonNodeAdded(long p_75798_)protected voidonNodeRemoved(long p_75799_)protected voidqueueSectionData(long p_75755_, DataLayer p_75756_, boolean p_75757_)voidretainData(long p_75783_, boolean p_75784_)protected voidprotected voidsetLevel(long p_75749_, int p_75750_)protected voidsetStoredLevel(long p_75773_, int p_75774_)protected booleanstoringLightForSection(long p_75792_)protected voidprotected voidupdateSectionStatus(long p_75788_, boolean p_75789_)Methods inherited from class net.minecraft.server.level.SectionTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, updateMethods 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:
getLevelin classDynamicGraphMinFixedPoint
-
getLevelFromSource
protected int getLevelFromSource(long p_75771_)- Specified by:
getLevelFromSourcein classSectionTracker
-
setLevel
protected void setLevel(long p_75749_, int p_75750_)- Specified by:
setLevelin 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()
-