2024-02-10 22:28:56 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Warrior <50800980+Warriorrrr@users.noreply.github.com>
|
|
|
|
Date: Sat, 10 Feb 2024 10:05:59 +0100
|
|
|
|
Subject: [PATCH] Add getChunkSnapshot includeLightData parameter
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/Chunk.java b/src/main/java/org/bukkit/Chunk.java
|
2024-06-13 16:45:27 +02:00
|
|
|
index c2eb2edd87b4087bfcdffd98f0f8904fbfd4e657..bc8b5bc17706250b8535b1b309134843d2ce2bb1 100644
|
2024-02-10 22:28:56 +01:00
|
|
|
--- a/src/main/java/org/bukkit/Chunk.java
|
|
|
|
+++ b/src/main/java/org/bukkit/Chunk.java
|
2024-06-13 16:45:27 +02:00
|
|
|
@@ -103,6 +103,23 @@ public interface Chunk extends PersistentDataHolder {
|
2024-02-10 22:28:56 +01:00
|
|
|
@NotNull
|
|
|
|
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.
|
|
|
|
*
|