Commit Graph

285 Commits

Author SHA1 Message Date
James Seibel 79441b0bdd Remove LodUtil.CEILED_DIMENSION_MAX_RENDER_DISTANCE
Reasoning: The value isn't in use anywhere, we shouldn't be setting a max value anyway since people can get on dimension roofs anyway, and it would be better to allow per-dimension values instead
2022-12-05 22:07:28 -06:00
James Seibel 24260a057a Prep the IChunkGenerator/BatchGenerator for using the API 2022-12-03 19:45:44 -06:00
coolGi 6fd47f360c Fix to issue 446. (special characters in folder name causes crash) 2022-12-01 21:32:37 +10:30
James Seibel be28ed8319 Separate inner classes and refactor world generator code 2022-11-25 17:11:54 -06:00
James Seibel 007e993148 reformat chunk generator code 2022-11-25 15:58:53 -06:00
James Seibel eb0bb8a67d Add a few missing comments to DhLoggerBuilder 2022-11-25 15:57:41 -06:00
James Seibel 00c7f7adaf Minor WorldGeneratorInjector refactoring 2022-11-25 10:08:47 -06:00
James Seibel 2b1837e812 Move Optifine code out of ReflectionHandler and into AbstractOptifineAccessor 2022-11-24 19:09:52 -06:00
James Seibel 4a7af41397 Put delayed objects in DhApiMain into a Delayed class
also improve a few comments
2022-11-24 18:24:13 -06:00
James Seibel aad3a5d2a3 rename DhApiResult.errorMessage -> message 2022-11-24 18:11:16 -06:00
James Seibel 0f06fedb95 rename DhApiEventInjector -> ApiEventInjector
This renaming was because the injector isn't designed to be used from the API, only internally; and externally available objects all start with "DhApi"
2022-11-24 18:05:07 -06:00
James Seibel 6ca2da3f7f Add one time API events (IE setup events)
This allows users to bind to setup events after they've happened and still have the event fire. This is useful for setup since mod load order isn't defined.
2022-11-21 19:26:14 -06:00
James Seibel 1b5a10591b Add IDhApiWorldProxy 2022-11-20 20:39:52 -06:00
James Seibel a935c648e2 un-deprecate McClientWrapper.getWrappedClientWorld()
This was originally done due to splitting up the code into server and client, however this object is just for the client so it shouldn't be an issue.
2022-11-20 20:27:04 -06:00
James Seibel 2ce8692d84 Merge branch 'main' of https://gitlab.com/jeseibel/distant-horizons-core 2022-11-19 19:06:46 -06:00
James Seibel 0249894386 Add raycasting methods to IDhApiTerrainDataRepo 2022-11-19 18:59:55 -06:00
James Seibel c2d8e16bc0 remove API debug code from ClientApi 2022-11-19 17:03:31 -06:00
James Seibel e6c833a643 Add raycasting to DhApiTerrainDataRepo 2022-11-19 17:02:26 -06:00
James Seibel d3e293db2c Improve the raycasting tests and fix a few directional issues 2022-11-19 17:01:29 -06:00
James Seibel 6eb97f654c Add RayCastUtil and unit tests 2022-11-19 10:20:14 -06:00
coolGi b64fdf214e Added the ChangelogScreen. New changelog screen done 2022-11-18 19:12:25 +10:30
coolGi 77519bde9d Updated updater screen (thanks a lot to Pankakes#0686) 2022-11-17 21:44:43 +10:30
James Seibel 103a03c90f partially functional raycasting 2022-11-16 22:35:56 -06:00
James Seibel d31013a680 Make the API TerrainRepo return all blocks in a given section instead of a single column 2022-11-14 21:40:40 -06:00
James Seibel d283922741 Minor refactoring 2022-11-14 21:39:38 -06:00
James Seibel 60af4429eb Add a couple missing parameters 2022-11-13 22:13:29 -06:00
James Seibel c67079c928 Rename FullDataPoint getDepth() -> getHeight() and getY() -> getBottomY() 2022-11-13 22:11:21 -06:00
James Seibel cd1c12be12 Implement DhApiTerrainDataPointRepo get methods 2022-11-13 21:49:26 -06:00
James Seibel 1099f5ec24 Add IDhApi Biome and BlockState Wrapper objects 2022-11-13 21:45:35 -06:00
James Seibel 0bd5730128 Add IDhLevel.getFileHandler() 2022-11-13 16:36:50 -06:00
James Seibel f11752da96 Refactor Dh Client/Server/ClientServer Level objects 2022-11-13 16:33:30 -06:00
James Seibel 51601e710a Add DhLodPos getSectionRelative and getSectionPos methods 2022-11-12 20:12:18 -06:00
James Seibel 3dfaed4409 Add a demo/debug method to DhApiTerrainDataRepo 2022-11-12 12:57:40 -06:00
James Seibel 571ecc5e9c minorly reformat IFullDataView 2022-11-12 12:35:37 -06:00
James Seibel c9947d0250 Remove LagSpikeCatcher from ClientApi 2022-11-12 12:35:03 -06:00
James Seibel 53813020d4 Add tryGet() and getMapping() to IDataSource objects 2022-11-12 12:00:22 -06:00
James Seibel 904288e6ec Refactor DataSources 2022-11-12 11:05:59 -06:00
James Seibel 244a1c273c refactor colorUtil 2022-11-10 07:48:48 -06:00
James Seibel 60112e9bce update a constructor comment 2022-11-10 07:48:31 -06:00
James Seibel 378c064629 Add DhBlockPos and DhChunkPos constructors to DhSectionPos 2022-11-10 07:47:59 -06:00
James Seibel 2429cbbb52 Add BitShiftUtil square() and pow() 2022-11-06 21:40:21 -06:00
James Seibel 8099925dc2 Refactor/comment DhSectionPos, DhLodPos, and DhLodUnit
Also add BitShiftUtil to hold bit shift operation aliases for easier reading
2022-11-06 21:25:37 -06:00
James Seibel ae7dd5ba7e minor formatting/comment updates 2022-11-06 16:59:00 -06:00
coolGi 4c2a2fffc1 Merge remote-tracking branch 'origin/main' 2022-11-04 17:35:52 +10:30
coolGi 87e40c0723 Added a lang auto formatter and a missing lang detector and fixed up the lang formatting and added missing options 2022-11-04 17:35:24 +10:30
Morippi 1965785ff6 small fix to cave culling 2022-11-03 18:59:08 +01:00
morippi 1caf6b03b4 I made some error with the commits 2022-11-03 17:51:21 +01:00
James Seibel f1ed837610 Merge branch 'main' of https://gitlab.com/jeseibel/distant-horizons-core 2022-10-31 22:16:16 -05:00
James Seibel cddf27be45 Rename DhWorld -> AbstractDhWorld and WorldEnv -> EWorldEnv 2022-10-31 20:28:58 -05:00
coolGi b9abfaa573 Resized the logo to be an aspect ratio of 2:1 and updated auto-updater's text 2022-10-30 18:35:45 +10:30