Class LightEngine<M extends DataLayerStorageMap<M>,S extends LayerLightSectionStorage<M>>

java.lang.Object
net.minecraft.world.level.lighting.LightEngine<M,S>
All Implemented Interfaces:
LayerLightEventListener, LightEventListener
Direct Known Subclasses:
BlockLightEngine, SkyLightEngine

public abstract class LightEngine<M extends DataLayerStorageMap<M>,S extends LayerLightSectionStorage<M>> extends Object implements LayerLightEventListener
  • Field Details

    • MAX_LEVEL

      public static final int MAX_LEVEL
      See Also:
    • MIN_OPACITY

      protected static final int MIN_OPACITY
      See Also:
    • PULL_LIGHT_IN_ENTRY

      protected static final long PULL_LIGHT_IN_ENTRY
    • MIN_QUEUE_SIZE

      private static final int MIN_QUEUE_SIZE
      See Also:
    • PROPAGATION_DIRECTIONS

      protected static final Direction[] PROPAGATION_DIRECTIONS
    • chunkSource

      protected final LightChunkGetter chunkSource
    • storage

      protected final S extends LayerLightSectionStorage<M> storage
    • blockNodesToCheck

      private final it.unimi.dsi.fastutil.longs.LongOpenHashSet blockNodesToCheck
    • decreaseQueue

      private final it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue decreaseQueue
    • increaseQueue

      private final it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue increaseQueue
    • mutablePos

      private final BlockPos.MutableBlockPos mutablePos
    • CACHE_SIZE

      private static final int CACHE_SIZE
      See Also:
    • lastChunkPos

      private final long[] lastChunkPos
    • lastChunk

      private final LightChunk[] lastChunk
  • Constructor Details

  • Method Details