Class ChunkLightingManager

java.lang.Object
com.hypixel.hytale.server.core.universe.world.lighting.ChunkLightingManager
All Implemented Interfaces:
Runnable

public class ChunkLightingManager extends Object implements Runnable
  • Field Details

    • logger

      @Nonnull private final com.hypixel.hytale.logger.HytaleLogger logger
    • thread

      @Nonnull private final Thread thread
    • world

      @Nonnull private final World world
    • semaphore

      private final Semaphore semaphore
    • set

      private final Set<Vector3i> set
    • queue

      private final it.unimi.dsi.fastutil.objects.ObjectArrayFIFOQueue<Vector3i> queue
    • lightCalculation

      private LightCalculation lightCalculation
  • Constructor Details

    • ChunkLightingManager

      public ChunkLightingManager(@Nonnull World world)
  • Method Details

    • getLogger

      @Nonnull protected com.hypixel.hytale.logger.HytaleLogger getLogger()
    • getWorld

      @Nonnull public World getWorld()
    • setLightCalculation

      public void setLightCalculation(LightCalculation lightCalculation)
    • getLightCalculation

      public LightCalculation getLightCalculation()
    • start

      public void start()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • process

      private void process(Vector3i chunkPosition)
    • interrupt

      public boolean interrupt()
    • stop

      public void stop()
    • init

      public void init(WorldChunk worldChunk)
    • addToQueue

      public void addToQueue(Vector3i chunkPosition)
    • isQueued

      public boolean isQueued(int chunkX, int chunkZ)
    • isQueued

      public boolean isQueued(Vector3i chunkPosition)
    • getQueueSize

      public int getQueueSize()
    • invalidateLightAtBlock

      public boolean invalidateLightAtBlock(WorldChunk worldChunk, int blockX, int blockY, int blockZ, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int oldHeight, int newHeight)
    • invalidateLightInChunk

      public boolean invalidateLightInChunk(WorldChunk worldChunk)
    • invalidateLightInChunkSection

      public boolean invalidateLightInChunkSection(WorldChunk worldChunk, int sectionIndex)
    • invalidateLightInChunkSections

      public boolean invalidateLightInChunkSections(WorldChunk worldChunk, int sectionIndexFrom, int sectionIndexTo)
    • invalidateLoadedChunks

      public void invalidateLoadedChunks()