mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Add getChunkSnapshot includeLightData parameter
This commit is contained in:
parent
de70580ea9
commit
b9e525c8ec
1 changed files with 17 additions and 0 deletions
|
@ -103,6 +103,23 @@ public interface Chunk extends PersistentDataHolder {
|
||||||
@NotNull
|
@NotNull
|
||||||
ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain);
|
ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain);
|
||||||
|
|
||||||
|
// Paper start - Add getChunkSnapshot includeLightData parameter
|
||||||
|
/**
|
||||||
|
* Capture thread-safe read-only snapshot of chunk data
|
||||||
|
*
|
||||||
|
* @param includeMaxblocky if true, snapshot includes per-coordinate
|
||||||
|
* maximum Y values
|
||||||
|
* @param includeBiome if true, snapshot includes per-coordinate biome
|
||||||
|
* type
|
||||||
|
* @param includeBiomeTempRain if true, snapshot includes per-coordinate
|
||||||
|
* raw biome temperature and rainfall
|
||||||
|
* @param includeLightData Whether to include per-coordinate light emitted by blocks and sky light data
|
||||||
|
* @return ChunkSnapshot
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain, boolean includeLightData);
|
||||||
|
// Paper end - Add getChunkSnapshot includeLightData parameter
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if entities in this chunk are loaded.
|
* Checks if entities in this chunk are loaded.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue