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 ChunkLightingManagerchunkLightingManagerfinal LightCalculationdelegate
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 WorldChunkworldChunkfinal intblockXfinal intblockYfinal intblockZ@Nonnull final BlockTypeblockTypefinal intoldHeightfinal intnewHeight
invalidateLightInChunkSections
public
boolean
invalidateLightInChunkSections
(@Nonnull final WorldChunk worldChunk, final int sectionIndexFrom, final int sectionIndexTo)
Method invalidateLightInChunkSections.
- Parameters:
@Nonnull final WorldChunkworldChunkfinal intsectionIndexFromfinal intsectionIndexTo
setFullBright
Method setFullBright.
- Parameters:
@Nonnull final WorldChunkworldChunkfinal intchunkY
ChunkLightDataBuilder
public
new
ChunkLightDataBuilder
(section.getGlobalChangeCounter()
Method ChunkLightDataBuilder.
- Parameters:
section.getGlobalChangeCounter(section.getGlobalChangeCounter(