Class DynamicGraphMinFixedPoint

java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
Direct Known Subclasses:
ChunkTracker, LayerLightEngine, SectionTracker

public abstract class DynamicGraphMinFixedPoint extends Object
  • Field Details

    • NO_COMPUTED_LEVEL

      private static final int NO_COMPUTED_LEVEL
      See Also:
      Constant Field Values
    • levelCount

      private final int levelCount
    • queues

      private final it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet[] queues
    • computedLevels

      private final it.unimi.dsi.fastutil.longs.Long2ByteMap computedLevels
    • firstQueuedLevel

      private int firstQueuedLevel
    • hasWork

      private volatile boolean hasWork
  • Constructor Details

    • DynamicGraphMinFixedPoint

      protected DynamicGraphMinFixedPoint(int p_75543_, int p_75544_, int p_75545_)
  • Method Details

    • getKey

      private int getKey(int p_75549_, int p_75550_)
    • checkFirstQueuedLevel

      private void checkFirstQueuedLevel(int p_75547_)
    • removeFromQueue

      protected void removeFromQueue(long p_75601_)
    • removeIf

      public void removeIf(LongPredicate p_75582_)
    • dequeue

      private void dequeue(long p_75559_, int p_75560_, int p_75561_, boolean p_75562_)
    • enqueue

      private void enqueue(long p_75555_, int p_75556_, int p_75557_)
    • checkNode

      protected void checkNode(long p_75602_)
    • checkEdge

      protected void checkEdge(long p_75577_, long p_75578_, int p_75579_, boolean p_75580_)
    • checkEdge

      private void checkEdge(long p_75570_, long p_75571_, int p_75572_, int p_75573_, int p_75574_, boolean p_75575_)
    • checkNeighbor

      protected final void checkNeighbor(long p_75594_, long p_75595_, int p_75596_, boolean p_75597_)
    • hasWork

      protected final boolean hasWork()
    • runUpdates

      protected final int runUpdates(int p_75589_)
    • getQueueSize

      public int getQueueSize()
    • isSource

      protected abstract boolean isSource(long p_75551_)
    • getComputedLevel

      protected abstract int getComputedLevel(long p_75566_, long p_75567_, int p_75568_)
    • checkNeighborsAfterUpdate

      protected abstract void checkNeighborsAfterUpdate(long p_75563_, int p_75564_, boolean p_75565_)
    • getLevel

      protected abstract int getLevel(long p_75599_)
    • setLevel

      protected abstract void setLevel(long p_75552_, int p_75553_)
    • computeLevelFromNeighbor

      protected abstract int computeLevelFromNeighbor(long p_75590_, long p_75591_, int p_75592_)
    • queuedUpdateSize

      protected int queuedUpdateSize()