Rename and add DhApi to a few classes
This commit is contained in:
+12
-12
@@ -1,29 +1,29 @@
|
||||
package com.seibel.lod.core.api.external.data;
|
||||
|
||||
import com.seibel.lod.core.api.external.data.objects.TerrainDataPoint;
|
||||
import com.seibel.lod.core.api.external.data.objects.DhApiTerrainDataPoint;
|
||||
import com.seibel.lod.core.api.external.sharedObjects.DhApiResult;
|
||||
|
||||
|
||||
/**
|
||||
* Allows getting and setting any data Distant Horizons has stored.
|
||||
* Allows getting and setting any terrain data Distant Horizons has stored.
|
||||
*
|
||||
* TODO once 1.7's data refactor is complete ask Leetom and/or Leonardo for help on setting these up
|
||||
*
|
||||
* @author James Seibel
|
||||
* @version 2022-7-11
|
||||
* @version 2022-7-12
|
||||
*/
|
||||
public class TerrainDataApi
|
||||
public class DhApiTerrainDataRepo
|
||||
{
|
||||
/**
|
||||
* Returns the terrain data at the given block position.
|
||||
* Null if the position hasn't been generated.
|
||||
*/
|
||||
public static TerrainDataPoint getDataAtBlockPos(int blockPosX, int blockPosY, int blockPosZ)
|
||||
public static DhApiTerrainDataPoint getDataAtBlockPos(int blockPosX, int blockPosY, int blockPosZ)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
/** Sets the terrain data at the given block position. */
|
||||
public static DhApiResult setDataAtBlockPos(int blockPosX, int blockPosY, int blockPosZ, TerrainDataPoint newData)
|
||||
public static DhApiResult setDataAtBlockPos(int blockPosX, int blockPosY, int blockPosZ, DhApiTerrainDataPoint newData)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
@@ -32,12 +32,12 @@ public class TerrainDataApi
|
||||
* Returns the average color for the chunk at the given chunk position.
|
||||
* Returns null if the position hasn't been generated.
|
||||
*/
|
||||
public static TerrainDataPoint getDataAtChunkPos(int chunkPosX, int chunkPosZ)
|
||||
public static DhApiTerrainDataPoint getDataAtChunkPos(int chunkPosX, int chunkPosZ)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
/** Sets the terrain data at the given chunk position. */
|
||||
public static DhApiResult setDataAtChunkPos(int chunkPosX, int chunkPosZ, TerrainDataPoint newData)
|
||||
public static DhApiResult setDataAtChunkPos(int chunkPosX, int chunkPosZ, DhApiTerrainDataPoint newData)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
@@ -47,12 +47,12 @@ public class TerrainDataApi
|
||||
* May return inaccurate data if the whole region hasn't been generated yet.
|
||||
* Returns null if the position hasn't been generated.
|
||||
*/
|
||||
public static TerrainDataPoint getDataAtRegionPos(int regionPosX, int regionPosZ)
|
||||
public static DhApiTerrainDataPoint getDataAtRegionPos(int regionPosX, int regionPosZ)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
/** Sets the terrain data at the given chunk position. */
|
||||
public static DhApiResult setDataAtRegionPos(int regionPosX, int regionPosZ, TerrainDataPoint newData)
|
||||
public static DhApiResult setDataAtRegionPos(int regionPosX, int regionPosZ, DhApiTerrainDataPoint newData)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
@@ -63,12 +63,12 @@ public class TerrainDataApi
|
||||
* May return inaccurate data if the whole region hasn't been generated yet.
|
||||
* Returns null if the position hasn't been generated.
|
||||
*/
|
||||
public static TerrainDataPoint getDataAtDetailLevelAndPos(short detailLevel, int relativePosX, int relativePosY, int relativePosZ)
|
||||
public static DhApiTerrainDataPoint getDataAtDetailLevelAndPos(short detailLevel, int relativePosX, int relativePosY, int relativePosZ)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
/** Sets the terrain data at the given chunk position. */
|
||||
public static DhApiResult setDataAtRegionPos(short detailLevel, int relativePosX, int relativePosY, int relativePosZ, TerrainDataPoint newData)
|
||||
public static DhApiResult setDataAtRegionPos(short detailLevel, int relativePosX, int relativePosY, int relativePosZ, DhApiTerrainDataPoint newData)
|
||||
{
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
+3
-3
@@ -8,9 +8,9 @@ import java.awt.Color;
|
||||
* // TODO what additional data should this hold?
|
||||
*
|
||||
* @author James Seibel
|
||||
* @version 2022-7-11
|
||||
* @version 2022-7-12
|
||||
*/
|
||||
public class TerrainDataPoint
|
||||
public class DhApiTerrainDataPoint
|
||||
{
|
||||
/**
|
||||
* The average color for the given data point.
|
||||
@@ -21,7 +21,7 @@ public class TerrainDataPoint
|
||||
|
||||
/**
|
||||
* TODO is this data type correct?
|
||||
* TODO create a enum that contains useful values (block, chunk, region, etc.)
|
||||
* TODO create an API enum that contains useful values (block, chunk, region, etc.)
|
||||
* 0 = block
|
||||
*/
|
||||
public short detailLevel;
|
||||
Reference in New Issue
Block a user