java.lang.Object
com.fastasyncworldedit.core.extent.processor.lighting.NullRelighter
All Implemented Interfaces:
Relighter, AutoCloseable

public class NullRelighter extends Object implements Relighter
  • Field Details

  • Method Details

    • addChunk

      public boolean addChunk(int cx, int cz, byte[] fix, int bitmask)
      Description copied from interface: Relighter
      Add a chunk to be relit when Relighter.removeLighting() etc are called.
      Specified by:
      addChunk in interface Relighter
      Parameters:
      cx - chunk x
      cz - chunk z
      fix - byte array of Relighter.SkipReason for each chunksection in the chunk. Use case? No idea.
      bitmask - Initial bitmask of the chunk (if being edited beforehand)
      Returns:
      Was the chunk added
    • addLightUpdate

      public void addLightUpdate(int x, int y, int z)
      Description copied from interface: Relighter
      Add a block to be relit.
      Specified by:
      addLightUpdate in interface Relighter
      Parameters:
      x - block x
      y - block y
      z - block z
    • fixLightingSafe

      public void fixLightingSafe(boolean sky)
      Description copied from interface: Relighter
      Safely? Fix block lighting.
      Specified by:
      fixLightingSafe in interface Relighter
      Parameters:
      sky - whether to also relight sky light values
    • clear

      public void clear()
      Description copied from interface: Relighter
      Clear all chunks and blocks to be relit.
      Specified by:
      clear in interface Relighter
    • removeLighting

      public void removeLighting()
      Description copied from interface: Relighter
      Remove all block and sky light values (set to 0 light) in all chunks added to relighter.
      Specified by:
      removeLighting in interface Relighter
    • fixBlockLighting

      public void fixBlockLighting()
      Description copied from interface: Relighter
      Fix block light values in all chunks added to relighter.
      Specified by:
      fixBlockLighting in interface Relighter
    • fixSkyLighting

      public void fixSkyLighting()
      Description copied from interface: Relighter
      Fix sky light values in all chunks added to relighter.
      Specified by:
      fixSkyLighting in interface Relighter
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Relighter
      Are there any block or chunk added to be relit.
      Specified by:
      isEmpty in interface Relighter
      Returns:
      is the relight stuff to be relit empty
    • getLock

      public ReentrantLock getLock()
      Specified by:
      getLock in interface Relighter
    • isFinished

      public boolean isFinished()
      Description copied from interface: Relighter
      Returns true if the Relighter has been flushed
      Specified by:
      isFinished in interface Relighter
      Returns:
      true if finished
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception