FullBrightLightCalculation

public class FullBrightLightCalculation implements LightCalculation

Class FullBrightLightCalculation. Provides fullbrightlightcalculation functionality for the Hytale server.

java.lang.Object > FullBrightLightCalculation

Field Summary

delegate

private LightCalculation delegate

Field delegate.

result

final CalculationResult result

Field result.

worldChunk

final WorldChunk worldChunk

Field worldChunk.

handled

final boolean handled

Field handled.

section

final BlockSection section

Field section.

light

final ChunkLightDataBuilder light

Field light.

Method Detail

FullBrightLightCalculation

public public FullBrightLightCalculation (final ChunkLightingManager chunkLightingManager, final LightCalculation delegate)

Method FullBrightLightCalculation.

Parameters:
final ChunkLightingManager chunkLightingManager
final LightCalculation delegate

init

public void init (@Nonnull final WorldChunk worldChunk)

Method init.

Parameters:
@Nonnull final WorldChunk worldChunk

calculateLight

public CalculationResult calculateLight (@Nonnull final Vector3i chunkPosition)

Method calculateLight.

Parameters:
@Nonnull final Vector3i chunkPosition

invalidateLightAtBlock

public boolean invalidateLightAtBlock (@Nonnull final WorldChunk worldChunk, final int blockX, final int blockY, final int blockZ, @Nonnull final BlockType blockType, final int oldHeight, final int newHeight)

Method invalidateLightAtBlock.

Parameters:
@Nonnull final WorldChunk worldChunk
final int blockX
final int blockY
final int blockZ
@Nonnull final BlockType blockType
final int oldHeight
final int newHeight

invalidateLightInChunkSections

public boolean invalidateLightInChunkSections (@Nonnull final WorldChunk worldChunk, final int sectionIndexFrom, final int sectionIndexTo)

Method invalidateLightInChunkSections.

Parameters:
@Nonnull final WorldChunk worldChunk
final int sectionIndexFrom
final int sectionIndexTo

setFullBright

public void setFullBright (@Nonnull final WorldChunk worldChunk, final int chunkY)

Method setFullBright.

Parameters:
@Nonnull final WorldChunk worldChunk
final int chunkY

ChunkLightDataBuilder

public new ChunkLightDataBuilder (section.getGlobalChangeCounter()

Method ChunkLightDataBuilder.

Parameters:
section.getGlobalChangeCounter( section.getGlobalChangeCounter(