From cdd1529a139ef103e8a4afef415d34eeff904ff8 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 19 Jun 2021 20:22:31 -0500 Subject: [PATCH] Add a int constructor to LodDataPoint --- src/main/java/com/seibel/lod/objects/LodDataPoint.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/seibel/lod/objects/LodDataPoint.java b/src/main/java/com/seibel/lod/objects/LodDataPoint.java index 117b5f425..5ed9d4514 100644 --- a/src/main/java/com/seibel/lod/objects/LodDataPoint.java +++ b/src/main/java/com/seibel/lod/objects/LodDataPoint.java @@ -9,7 +9,7 @@ import com.seibel.lod.handlers.LodDimensionFileHandler; * for a specific area in a LodChunk. * * @author James Seibel - * @version 6-13-2021 + * @version 6-19-2021 */ public class LodDataPoint { @@ -49,6 +49,13 @@ public class LodDataPoint color = newColor; } + public LodDataPoint(int newHeight, int newDepth, Color newColor) + { + height = (short) newHeight; + depth = (short) newDepth; + color = newColor; + } + /** * Outputs all data in a csv format