Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getWorld()
- setLightCalculation(LightCalculation)
- getLightCalculation()
- start()
- run()
- interrupt()
- stop()
- init(ChunkGrid, Ref)
- addToQueue(Vector3i)
- isQueued(int, int)
- isQueued(Vector3i)
- getQueueSize()
- invalidateLightAtBlock(ChunkGrid, int, int, int, BlockType, int, int)
- invalidateLightInChunkSection(ChunkGrid, int, int, int)
- invalidateLightInChunkSections(ChunkGrid, int, int, int, int)
- invalidateLoadedChunks()
Class ChunkLightingManager
java.lang.Object
com.hypixel.hytale.server.core.universe.world.lighting.ChunkLightingManager
- All Implemented Interfaces:
Runnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToQueue(org.joml.Vector3i chunkPosition) intgetWorld()voidinit(ChunkGrid chunkGrid, Ref<ChunkStore> sectionRef) booleanbooleaninvalidateLightAtBlock(ChunkGrid chunkGrid, int blockX, int blockY, int blockZ, BlockType blockType, int oldHeight, int newHeight) booleaninvalidateLightInChunkSection(ChunkGrid chunkGrid, int chunkX, int chunkZ, int sectionIndex) Light crosses section borders, so the vertical neighbours re-light with the section.booleaninvalidateLightInChunkSections(ChunkGrid chunkGrid, int chunkX, int chunkZ, int sectionIndexFrom, int sectionIndexTo) voidbooleanisQueued(int chunkX, int chunkZ) Deprecated.booleanisQueued(org.joml.Vector3i chunkPosition) voidrun()voidsetLightCalculation(LightCalculation lightCalculation) voidstart()voidstop()
-
Constructor Details
-
ChunkLightingManager
-
-
Method Details
-
getWorld
-
setLightCalculation
-
getLightCalculation
-
start
public void start() -
run
-
interrupt
public boolean interrupt() -
stop
public void stop() -
init
-
addToQueue
public void addToQueue(org.joml.Vector3i chunkPosition) -
isQueued
Deprecated. -
isQueued
public boolean isQueued(org.joml.Vector3i chunkPosition) -
getQueueSize
public int getQueueSize() -
invalidateLightAtBlock
-
invalidateLightInChunkSection
public boolean invalidateLightInChunkSection(@Nonnull ChunkGrid chunkGrid, int chunkX, int chunkZ, int sectionIndex) Light crosses section borders, so the vertical neighbours re-light with the section. The calculation widens over X and Z itself. -
invalidateLightInChunkSections
public boolean invalidateLightInChunkSections(@Nonnull ChunkGrid chunkGrid, int chunkX, int chunkZ, int sectionIndexFrom, int sectionIndexTo) -
invalidateLoadedChunks
public void invalidateLoadedChunks()
-