Class SectionLightStorage<M extends LightDataMap<M>>

    • Field Detail

      • EMPTY_DATA

        protected static final NibbleArray EMPTY_DATA
      • DIRECTIONS

        private static final Direction[] DIRECTIONS
      • 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

        protected volatile M extends LightDataMap<M> visibleSectionData
      • updatingSectionData

        protected final M extends LightDataMap<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<NibbleArray> 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
    • Method Detail

      • storingLightForSection

        protected boolean storingLightForSection​(long p_215518_1_)
      • getDataLayer

        @Nullable
        protected NibbleArray getDataLayer​(long p_215520_1_,
                                           boolean p_215520_3_)
      • getDataLayer

        @Nullable
        protected NibbleArray getDataLayer​(M p_215531_1_,
                                           long p_215531_2_)
      • getDataLayerData

        @Nullable
        public NibbleArray getDataLayerData​(long p_222858_1_)
      • getLightValue

        protected abstract int getLightValue​(long p_215525_1_)
      • getStoredLevel

        protected int getStoredLevel​(long p_215521_1_)
      • setStoredLevel

        protected void setStoredLevel​(long p_215517_1_,
                                      int p_215517_3_)
      • setLevel

        protected void setLevel​(long p_215476_1_,
                                int p_215476_3_)
        Specified by:
        setLevel in class LevelBasedGraph
      • createDataLayer

        protected NibbleArray createDataLayer​(long p_215530_1_)
      • clearQueuedSectionBlocks

        protected void clearQueuedSectionBlocks​(LightEngine<?,​?> p_215528_1_,
                                                long p_215528_2_)
      • hasInconsistencies

        protected boolean hasInconsistencies()
      • markNewInconsistencies

        protected void markNewInconsistencies​(LightEngine<M,​?> p_215522_1_,
                                              boolean p_215522_2_,
                                              boolean p_215522_3_)
      • checkEdgesForSection

        private void checkEdgesForSection​(LightEngine<M,​?> p_241538_1_,
                                          long p_241538_2_)
      • onNodeAdded

        protected void onNodeAdded​(long p_215524_1_)
      • onNodeRemoved

        protected void onNodeRemoved​(long p_215523_1_)
      • enableLightSources

        protected void enableLightSources​(long p_215526_1_,
                                          boolean p_215526_3_)
      • retainData

        public void retainData​(long p_223113_1_,
                               boolean p_223113_3_)
      • queueSectionData

        protected void queueSectionData​(long p_215529_1_,
                                        @Nullable
                                        NibbleArray p_215529_3_,
                                        boolean p_215529_4_)
      • updateSectionStatus

        protected void updateSectionStatus​(long p_215519_1_,
                                           boolean p_215519_3_)
      • runAllUpdates

        protected void runAllUpdates()
      • swapSectionMap

        protected void swapSectionMap()