-
Nested Class Summary
Nested Classes
-
Method Summary
boolean
addChunk(int cx,
int cz,
byte[] skipReason,
int bitmask)
void
void
Clear all chunks and blocks to be relit.
void
Fix block light values in all chunks added to relighter.
void
Safely? Fix block lighting.
void
Fix sky light values in all chunks added to relighter.
boolean
Are there any block or chunk added to be relit.
boolean
Returns true if the Relighter has been flushed
default void
Remove lighting and then relight safely.
void
Remove all block and sky light values (set to 0 light) in all chunks added to relighter.
-
Method Details
-
addChunk
boolean addChunk(int cx,
int cz,
byte[] skipReason,
int bitmask)
- Parameters:
cx
- chunk x
cz
- chunk z
skipReason
- byte array of Relighter.SkipReason
for each chunksection in the chunk. Use case? No idea.
bitmask
- Initial bitmask of the chunk (if being edited beforehand)
- Returns:
- Was the chunk added
-
addLightUpdate
void addLightUpdate(int x,
int y,
int z)
Add a block to be relit.
- Parameters:
x
- block x
y
- block y
z
- block z
-
fixLightingSafe
void fixLightingSafe(boolean sky)
Safely? Fix block lighting.
- Parameters:
sky
- whether to also relight sky light values
-
removeAndRelight
default void removeAndRelight(boolean sky)
Remove lighting and then relight safely.
- Parameters:
sky
- whether to also relight sky light values
-
clear
void clear()
Clear all chunks and blocks to be relit.
-
removeLighting
void removeLighting()
Remove all block and sky light values (set to 0 light) in all chunks added to relighter.
-
fixBlockLighting
void fixBlockLighting()
Fix block light values in all chunks added to relighter.
-
fixSkyLighting
void fixSkyLighting()
Fix sky light values in all chunks added to relighter.
-
isEmpty
boolean isEmpty()
Are there any block or chunk added to be relit.
- Returns:
- is the relight stuff to be relit empty
-
-
isFinished
boolean isFinished()
Returns true if the Relighter has been flushed
- Returns:
- true if finished