public class ChunkLightingManager implements Runnable
Class ChunkLightingManager. Provides chunklightingmanager functionality for the Hytale server.
java.lang.Object > ChunkLightingManager
Field Summary
lightCalculation
private
LightCalculation
lightCalculation
Field lightCalculation.
pos
final
Vector3i
pos
Field pos.
currentSize
final
int
currentSize
Field currentSize.
sb
final
StringBuilder
sb
Field sb.
chunkPos
final
Vector3i
chunkPos
Field chunkPos.
chunk
final
WorldChunk
chunk
Field chunk.
section
final
BlockSection
section
Field section.
x
final
int
x
Field x.
z
final
int
z
Field z.
Method Detail
ChunkLightingManager
public
public
ChunkLightingManager
(@Nonnull final World world)
Method ChunkLightingManager.
- Parameters:
@Nonnull final Worldworld
Thread
public
new
Thread
((Runnable)
Method Thread.
- Parameters:
(Runnable(Runnable
getWorld
public
World
getWorld
()
Method getWorld.
start
public
void
start
()
Method start.
run
public
void
run
()
Method run.
if
public
else
if
(count <= currentSize)
Method if.
- Parameters:
count <=currentSize
interrupt
public
boolean
interrupt
()
Method interrupt.
stop
public
void
stop
()
Method stop.
isQueued
public
boolean
isQueued
(final int chunkX, final int chunkZ)
Method isQueued.
- Parameters:
final intchunkXfinal intchunkZ
getQueueSize
public
int
getQueueSize
()
Method getQueueSize.
invalidateLightAtBlock
public
boolean
invalidateLightAtBlock
(final WorldChunk worldChunk, final int blockX, final int blockY, final int blockZ, final BlockType blockType, final int oldHeight, final int newHeight)
Method invalidateLightAtBlock.
- Parameters:
final WorldChunkworldChunkfinal intblockXfinal intblockYfinal intblockZfinal BlockTypeblockTypefinal intoldHeightfinal intnewHeight
invalidateLightInChunkSection
Method invalidateLightInChunkSection.
- Parameters:
final WorldChunkworldChunkfinal intsectionIndex
invalidateLightInChunkSections
public
boolean
invalidateLightInChunkSections
(final WorldChunk worldChunk, final int sectionIndexFrom, final int sectionIndexTo)
Method invalidateLightInChunkSections.
- Parameters:
final WorldChunkworldChunkfinal intsectionIndexFromfinal intsectionIndexTo
invalidateLoadedChunks
public
void
invalidateLoadedChunks
()
Method invalidateLoadedChunks.