Add a int constructor to LodDataPoint

This commit is contained in:
James Seibel
2021-06-19 20:22:31 -05:00
parent 7915444713
commit cdd1529a13
@@ -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