Set up the API packages for data and overriding

data - getting/setting terrain data
overriding - overriding DH systems
This commit is contained in:
James Seibel
2022-07-11 21:31:33 -05:00
parent 9a91b8f306
commit 6629ec9dc0
36 changed files with 45 additions and 50 deletions
@@ -4,12 +4,6 @@ package com.seibel.lod.core.api.external;
* This stores objects and variables that
* are shared between the different external api classes. <br> <br>
*
* The external api package is designed to hold any code that
* interfaces between Distant Horizons and other mods or projects. <Br>
* <strong>For example:</strong> if a weather mod wanted to disable LOD rendering during a blizzard
* they would do that through a method in the external api.
*
*
* @author James Seibel
* @version 2022-6-2
*/
@@ -0,0 +1 @@
The external api package holds any code that interfaces between Distant Horizons and other mods or projects.
@@ -19,8 +19,10 @@
package com.seibel.lod.core.api.external.config;
import com.seibel.lod.core.api.external.apiObjects.enums.*;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.enums.EDhApiDistanceGenerationMode;
import com.seibel.lod.core.api.external.config.objects.enums.EDhApiBlocksToAvoid;
import com.seibel.lod.core.api.external.config.objects.enums.EDhApiLightGenerationMode;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.implementation.objects.GenericEnumConverter;
import com.seibel.lod.core.api.implementation.wrappers.DhApiConfig;
import com.seibel.lod.core.config.Config.Client.WorldGenerator;
@@ -0,0 +1 @@
The config api package holds objects and methods for getting/setting Distant Horizons' config values.
@@ -19,13 +19,11 @@
package com.seibel.lod.core.api.external.config.client;
import com.seibel.lod.core.api.external.apiObjects.enums.EDhApiBufferRebuildTimes;
import com.seibel.lod.core.api.external.apiObjects.enums.EDhApiGpuUploadMethod;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.enums.EDhApiGpuUploadMethod;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.implementation.objects.GenericEnumConverter;
import com.seibel.lod.core.api.implementation.wrappers.DhApiConfig;
import com.seibel.lod.core.config.Config.Client.Advanced.Buffers;
import com.seibel.lod.core.enums.config.EBufferRebuildTimes;
import com.seibel.lod.core.enums.config.EGpuUploadMethod;
/**
@@ -19,8 +19,8 @@
package com.seibel.lod.core.api.external.config.client;
import com.seibel.lod.core.api.external.apiObjects.enums.EDhApiDebugMode;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.enums.EDhApiDebugMode;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.implementation.objects.GenericEnumConverter;
import com.seibel.lod.core.api.implementation.wrappers.DhApiConfig;
import com.seibel.lod.core.config.Config.Client.Advanced.Debugging;
@@ -19,8 +19,9 @@
package com.seibel.lod.core.api.external.config.client;
import com.seibel.lod.core.api.external.apiObjects.enums.*;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.enums.*;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.methods.config.objects.enums.*;
import com.seibel.lod.core.api.implementation.objects.GenericEnumConverter;
import com.seibel.lod.core.api.implementation.objects.RenderModeEnabledConverter;
import com.seibel.lod.core.api.implementation.wrappers.DhApiConfig;
@@ -19,8 +19,9 @@
package com.seibel.lod.core.api.external.config.client;
import com.seibel.lod.core.api.external.apiObjects.enums.*;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.enums.*;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.methods.config.objects.enums.*;
import com.seibel.lod.core.api.implementation.objects.GenericEnumConverter;
import com.seibel.lod.core.api.implementation.wrappers.DhApiConfig;
import com.seibel.lod.core.enums.rendering.*;
@@ -19,8 +19,8 @@
package com.seibel.lod.core.api.external.config.client;
import com.seibel.lod.core.api.external.apiObjects.enums.EDhApiServerFolderNameMode;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.enums.EDhApiServerFolderNameMode;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.implementation.objects.GenericEnumConverter;
import com.seibel.lod.core.api.implementation.wrappers.DhApiConfig;
import com.seibel.lod.core.config.Config.Client.Multiplayer;
@@ -19,7 +19,7 @@
package com.seibel.lod.core.api.external.config.client;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.implementation.wrappers.DhApiConfig;
import com.seibel.lod.core.config.Config.Client.Advanced.Threading;
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* Assembly classes are used to reference the package they are in.
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* NONE, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* CONSTANT <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* OFF, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* NONE <br>
@@ -18,7 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* AUTO <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* USE_DEFAULT_FOG_COLOR, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* NEAR, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* USE_OPTIFINE_FOG_SETTING, <br>
@@ -1,4 +1,4 @@
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* LINEAR, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* AUTO <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* AUTO, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* BASIC <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* ABOVE_CAMERA, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* LOWEST <br>
@@ -17,12 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
import com.seibel.lod.core.util.LodUtil;
import java.util.ArrayList;
import java.util.Collections;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* BLOCK <Br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* FAST, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* DEFAULT, <br>
@@ -18,7 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* AUTO, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* NEVER, <br>
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.lod.core.api.external.apiObjects.enums;
package com.seibel.lod.core.api.external.config.objects.enums;
/**
* LOW, <br>
@@ -1,4 +1,4 @@
package com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces;
package com.seibel.lod.core.api.external.config.objects.wrapperInterfaces;
/**
* An interface for Distant Horizon's Config.
@@ -0,0 +1 @@
The data api package holds objects and methods for getting/setting terrain data stored by Distant Horizons.
@@ -0,0 +1 @@
The overide api package holds objects and methods for overriding Distant Horizons' backend systems, so they can be replaced and improved.
@@ -1,6 +1,6 @@
package com.seibel.lod.core.api.implementation.wrappers;
import com.seibel.lod.core.api.external.apiObjects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.external.config.objects.wrapperInterfaces.IDhApiConfig;
import com.seibel.lod.core.api.implementation.interfaces.IConverter;
import com.seibel.lod.core.api.implementation.objects.DefaultConverter;
import com.seibel.lod.core.config.types.ConfigEntry;
+1 -1
View File
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import com.seibel.lod.core.api.external.apiObjects.enums.DhApiEnumAssembly;
import com.seibel.lod.core.api.external.config.objects.enums.DhApiEnumAssembly;
import com.seibel.lod.core.enums.rendering.EFogDrawMode;
import com.seibel.lod.core.enums.CoreEnumAssembly;
import com.seibel.lod.core.enums.config.EVerticalQuality;