Class LayerLightSectionStorage<M extends DataLayerStorageMap<M>>

java.lang.Object
net.minecraft.world.level.lighting.LayerLightSectionStorage<M>
Direct Known Subclasses:
BlockLightSectionStorage, SkyLightSectionStorage

public abstract class LayerLightSectionStorage<M extends DataLayerStorageMap<M>> extends Object
  • Field Details

    • layer

      private final LightLayer layer
    • chunkSource

      protected final LightChunkGetter chunkSource
    • sectionStates

      protected final it.unimi.dsi.fastutil.longs.Long2ByteMap sectionStates
    • columnsWithSources

      private final it.unimi.dsi.fastutil.longs.LongSet columnsWithSources
    • visibleSectionData

      protected volatile M extends DataLayerStorageMap<M> visibleSectionData
    • updatingSectionData

      protected final M extends DataLayerStorageMap<M> updatingSectionData
    • changedSections

      protected final it.unimi.dsi.fastutil.longs.LongSet changedSections
    • sectionsAffectedByLightUpdates

      protected final it.unimi.dsi.fastutil.longs.LongSet sectionsAffectedByLightUpdates
    • queuedSections

      protected final it.unimi.dsi.fastutil.longs.Long2ObjectMap<DataLayer> 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

  • Method Details

    • storingLightForSection

      protected boolean storingLightForSection(long p_75792_)
    • getDataLayer

      @Nullable protected DataLayer getDataLayer(long p_75759_, boolean p_75760_)
    • getDataLayer

      @Nullable protected DataLayer getDataLayer(M p_75762_, long p_75763_)
    • getDataLayerToWrite

      @Nullable protected DataLayer getDataLayerToWrite(long p_285278_)
    • getDataLayerData

      @Nullable public DataLayer getDataLayerData(long p_75794_)
    • 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

      protected DataLayer createDataLayer(long p_75797_)
    • hasInconsistencies

      protected boolean hasInconsistencies()
    • markNewInconsistencies

      protected void markNewInconsistencies(LightEngine<M,?> p_285081_)
    • 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

      protected void queueSectionData(long p_285403_, @Nullable DataLayer p_285498_)
    • 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

      public LayerLightSectionStorage.SectionType getDebugSectionType(long p_285114_)