Commit Graph

235 Commits

Author SHA1 Message Date
James Seibel 7aa432951c Add Javadoc "since API 1.0.0" to API methods and objects 2023-08-16 07:42:12 -05:00
James Seibel 468c8b134c Remove unused EDhApiWorldGenThreadMode 2023-08-16 07:42:01 -05:00
James Seibel 8489003e0c Apply editorconfig auto formatting 2023-08-14 21:16:08 -05:00
coolGi 42f45f05c3 Merge remote-tracking branch 'origin/main' 2023-08-05 15:04:37 +09:30
James Seibel 622a1633fa Add config for Lod Shading so Old Lighting can be enabled for shaders 2023-08-01 20:11:21 -05:00
James Seibel 61c8288b99 Remove thread preset "paid for whole cpu" and tweak CPU preset options 2023-08-01 07:27:25 -05:00
James Seibel 9be69863ae Improve networked multiverse support
Also change "WorldChanged" -> "LevelChanged"
2023-07-29 09:04:02 -05:00
coolGi c8e6a56467 Changed noiseDropoff to an int, and changed the order of noise and fog 2023-07-21 19:51:15 +09:30
coolGi 24b32ad6c9 Slight changes to the api fabric.mod.json to make it look like a library in modmenu 2023-07-17 01:32:38 +09:30
James Seibel 581ac02472 remove unused imports 2023-07-08 11:32:44 -05:00
James Seibel f07973a1ce Refactor, remove unused class, add API docs 2023-07-04 15:41:08 -05:00
James Seibel 2fc74914b4 Merge branch 'distant-horizons-core-serverSupport' 2023-07-04 13:39:49 -05:00
James Seibel 2b0ee29a8c refactor and rename 2023-07-04 10:29:32 -05:00
James Seibel b50c2cf9a9 Add missing API Config javadocs 2023-07-03 06:50:12 -05:00
Cailin Smith 44a66a3d93 Add ability for servers to communicate with the client to set the world.
This prevents the client from accidentally selected the wrong world
folder to load LODs from, since levels of the same dimension can't
naturally be distinguished from each other. With level similarity
detection, this can sometimes work, but in general is not reliable. This
mechanism instead allows servers to send a packet to the client on load,
enabling the override system, and then a second packet on world change,
which specifically sets the world key, based on knowledge that only the
server has, leading to a reliable way of detecting the correct world.
2023-07-02 21:44:54 +02:00
James Seibel 52edbd7c18 Update javadocs for API enums
and move one core enum out of the API
2023-06-30 07:46:00 -05:00
James Seibel 10b9161188 update DhApiWorldGen javadoc 2023-06-30 07:30:40 -05:00
James Seibel 77b8b973dc Fix API fabric.mod.json crashing the game 2023-06-30 07:30:18 -05:00
James Seibel 77bc3bd3c2 add package-info files for api and coreapi package documentation 2023-06-29 20:56:14 -05:00
James Seibel 81ac90feb4 Add a build.gradle for API building with source files 2023-06-29 20:52:30 -05:00
James Seibel 48ef896e06 set the api version in ModInfo to 1.0.0 and add patch version to the API 2023-06-29 20:46:33 -05:00
James Seibel 7c9301745a Fix a couple API javadoc compiler errors 2023-06-26 07:26:50 -05:00
James Seibel 1dad6fd83f Overhaul Dh API event definition system
Whether an event is a one time event or a cancelable event is now defined via their interface.
Also replace DhApiLevelSaveEvent with DhApiChunkModifiedEvent
2023-06-23 23:07:41 -05:00
James Seibel b0f9122599 DhApiTerrainDataRepo reformat 2023-06-22 19:49:43 -05:00
James Seibel feb03efafa Add AbstractDhApiChunkWorldGenerator 2023-06-22 07:56:43 -05:00
James Seibel cf60322be6 Add a comment from leetom explaining granularity 2023-06-21 07:14:36 -05:00
James Seibel a3c991d769 Remove unimplemented IDhApiWorldGen.getThreadingMode() 2023-06-21 07:03:28 -05:00
James Seibel 56e4454e41 Fix Api runtime error and add comments on how to fix in future 2023-06-20 20:55:06 -05:00
TomTheFurry 2f249c39d4 fixed and optimize a lot of stuff. 2023-06-20 15:47:52 +08:00
James Seibel 173e216fa3 Add (untested) DhApiTerrainDataRepo.overwriteChunkDataAsync() 2023-06-19 22:04:10 -05:00
James Seibel e760c6a4e3 Add an API event for modified render and full data files 2023-06-19 21:41:42 -05:00
James Seibel 594f42a889 rename namespace lod -> distanthorizons 2023-06-17 17:45:21 -05:00
James Seibel fa8a62b8a9 rename IDhApiUnsafeWrapper method 2023-06-17 16:36:01 -05:00
James Seibel d335e10057 rename DhApiMain -> DhApi 2023-06-17 12:01:37 -05:00
James Seibel 6832d21a3b config renaming and add new configs to DhApi 2023-06-14 21:32:10 -05:00
James Seibel 12d5d9e32b Add an annotation to skip config enums 2023-06-12 20:24:49 -05:00
James Seibel 758ff8a527 rename config extendedNearClip -> overdrawPrevention
Also add a few new options for it
2023-06-11 22:16:40 -05:00
James Seibel f785e75622 Fix BlockToAvoid and TintWithAvoidedBlocks 2023-06-11 21:24:34 -05:00
James Seibel 190a55e98b Add threading config presets 2023-06-11 18:02:53 -05:00
James Seibel cd53cd8ffa rename a few configs Ultra -> Extreme 2023-06-11 15:46:06 -05:00
James Seibel 72b89814b6 Merge Horizontal Quality and Scale
The separation was confusing most of the time
2023-06-11 15:10:16 -05:00
James Seibel c9aa7553af Add config quality preset handler 2023-06-11 13:09:52 -05:00
James Seibel c9e2864c88 Update the config lang file
Also rename a few items
2023-06-09 22:10:27 -05:00
James Seibel f4ece1816d Overhaul the config and start adding summary options
also:
- add DH vs MC lighting engine option
- add a toggle for wireframe rendering
2023-06-07 22:59:26 -05:00
James Seibel 6124f5cb4f update ThreadingConfig Api 2023-06-05 20:16:33 -05:00
James Seibel 8f6109768c Move the world gen thread pool into the WorldGenQueue
We want Core to handle the world gen threads, not the individual world generators.
2023-06-05 19:50:21 -05:00
James Seibel 4b29e96686 Revert "remove IConfigEntry.setWithoutSaving()"
This reverts commit d992bd05f4.
2023-06-04 21:45:21 -05:00
James Seibel d992bd05f4 remove IConfigEntry.setWithoutSaving()
It wasn't implemented and was causing confusion since the listeners weren't being fired
2023-06-04 21:07:25 -05:00
coolGi e00d1c95e3 Added a comment to add DimensionWrapper (maybe to replace DimensionTypeWrapper) 2023-06-03 21:39:47 +09:30
James Seibel 09eea400eb Full data source and WorldGen refactoring 2023-05-29 10:43:06 -05:00