Class ChunkLightingManager
java.lang.Object
com.hypixel.hytale.server.core.universe.world.lighting.ChunkLightingManager
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LightCalculationprivate final com.hypixel.hytale.logger.HytaleLoggerprivate final it.unimi.dsi.fastutil.objects.ObjectArrayFIFOQueue<Vector3i> private final Semaphoreprivate final Threadprivate final World -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToQueue(Vector3i chunkPosition) protected com.hypixel.hytale.logger.HytaleLoggerintgetWorld()voidinit(WorldChunk worldChunk) booleanbooleaninvalidateLightAtBlock(WorldChunk worldChunk, int blockX, int blockY, int blockZ, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int oldHeight, int newHeight) booleaninvalidateLightInChunk(WorldChunk worldChunk) booleaninvalidateLightInChunkSection(WorldChunk worldChunk, int sectionIndex) booleaninvalidateLightInChunkSections(WorldChunk worldChunk, int sectionIndexFrom, int sectionIndexTo) voidbooleanisQueued(int chunkX, int chunkZ) booleanprivate voidvoidrun()voidsetLightCalculation(LightCalculation lightCalculation) voidstart()voidstop()
-
Field Details
-
logger
@Nonnull private final com.hypixel.hytale.logger.HytaleLogger logger -
thread
-
world
-
semaphore
-
set
-
queue
-
lightCalculation
-
-
Constructor Details
-
ChunkLightingManager
-
-
Method Details
-
getLogger
@Nonnull protected com.hypixel.hytale.logger.HytaleLogger getLogger() -
getWorld
-
setLightCalculation
-
getLightCalculation
-
start
public void start() -
run
public void run() -
process
-
interrupt
public boolean interrupt() -
stop
public void stop() -
init
-
addToQueue
-
isQueued
public boolean isQueued(int chunkX, int chunkZ) -
isQueued
-
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
-
invalidateLightInChunkSection
-
invalidateLightInChunkSections
public boolean invalidateLightInChunkSections(WorldChunk worldChunk, int sectionIndexFrom, int sectionIndexTo) -
invalidateLoadedChunks
public void invalidateLoadedChunks()
-