54 Commits

Author SHA1 Message Date
Bud Gidiere
0a77487399
Replace Math with FastMath for improved performance.
FastMath is a drop in replacement for the native Java math class with improved performance and fall backs to the native Java math class if necessary.

https://commons.apache.org/proper/commons-math/javadocs/api-3.3/org/apache/commons/math3/util/FastMath.html

This requires further testing and might cause chunk borders due the FastMath giving slightly different results than the native Java math class.

I also added .idea/Terra.iml to the .gitignore
2020-11-18 17:23:09 -06:00
dfsek
19162a1924 Structure tree sapling overrides no longer require tree to be on ground level 2020-11-17 20:10:13 -07:00
dfsek
291d0aaf1c Remove unused Feature variable 2020-11-17 13:44:23 -07:00
dfsek
4c4c31db45 Cleanup EntityFeature code, account for Structure rotation in Features 2020-11-17 00:49:43 -07:00
dfsek
2750d46a98 [AUTO] Clean & reformat 2020-11-16 23:39:18 -07:00
dfsek
9a403805c9 Cleanup 2020-11-16 23:37:42 -07:00
dfsek
cb537d0514 Rewrite basically the whole generator again. Get rid of failsafe biomes because they are dumb 2020-11-16 23:32:04 -07:00
dfsek
deb7db9b25 Per-world noise gen is no longer dumb 2020-11-16 21:44:49 -07:00
dfsek
00c933c06e Fix stoopid NPE 2020-11-16 16:54:55 -07:00
dfsek
cab91ec15b Account for elevation in structure spawns 2020-11-16 16:18:34 -07:00
dfsek
9125590a02 Improvements to structure load command 2020-11-15 16:10:14 -07:00
dfsek
e5c5557398 Fix issue with EntityFeature spawning 2020-11-14 22:20:36 -07:00
dfsek
08d1ca02f9 Move StructureSpawnRequirements to separate classes. 2020-11-13 12:01:20 -07:00
dfsek
0e3577063e Move Rotation stuff for Structures to separate class 2020-11-09 00:39:09 -07:00
solonovamax
dc46e4596d
Add linting + fix warnings
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2020-11-07 18:27:39 -05:00
solonovamax
56671ac6a1
Fix formatting issues
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2020-11-07 11:14:06 -05:00
solonovamax
0c8c0723ef
Fix up issues with code
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2020-11-06 22:26:57 -05:00
dfsek
a362ed47ce Reformat again 2020-11-06 15:45:07 -07:00
dfsek
4f40550465 Reformat & add .editorconfig 2020-11-06 15:21:42 -07:00
dfsek
57f18477e4 Fix issue causing entities to spawn in ground 2020-11-04 21:38:18 -07:00
dfsek
d0891a0f95 Add EntityFeature to StructureConfig. 2020-11-04 20:40:58 -07:00
dfsek
17fe3530a4 Fix an elusive crash. 2020-10-26 16:33:11 -07:00
dfsek
224dfbe638 Clean up imports 2020-10-26 10:58:28 -07:00
dfsek
b0a3cf9ffe Catch more structure export exceptions, add more information to exception messages. 2020-10-24 01:50:12 -07:00
dfsek
24c17f2ee6 Cleanup Structures, fix several rotation issues 2020-10-22 17:36:43 -07:00
dfsek
562d93f4e9 Add serializable mob spawners and banners 2020-10-22 13:10:47 -07:00
dfsek
2741a761a0 Update to latest Gaea, allow configuration of terrain octaves/frequency 2020-10-17 16:49:43 -07:00
dfsek
d5705bbcb9 Implement structure pulldown offset 2020-10-13 17:19:08 -07:00
dfsek
3628b690e8 Add block pulldown/up to structures 2020-10-13 16:36:51 -07:00
dfsek
aa378b40ec Add y-level specific snow, more mountain biomes in default config. 2020-10-10 01:22:00 -07:00
dfsek
4e8ff7ffbb Fix lootable rotation issues 2020-10-09 17:49:29 -07:00
dfsek
2b460f8617 Implement loot system 2020-10-09 16:30:34 -07:00
dfsek
9a54f364be Fix y-level issues in structure spawn checking 2020-10-08 22:47:30 -07:00
dfsek
e6f6a63194 Fix structure spawn requirements, begin work on custom trees 2020-10-08 01:47:34 -07:00
dfsek
605dd6aadc Clean up configs 2020-10-05 22:54:28 -07:00
dfsek
0e760ec87e Use Vector2 for structures, move rotation stuff to new util class 2020-10-05 01:25:53 -07:00
dfsek
96d293eec5 Implement rotating rails/axes 2020-10-05 01:05:54 -07:00
dfsek
65d50d7def Begin work on config cleanup 2020-10-03 02:05:48 -07:00
dfsek
28ebd9c31d Save structure center Y level 2020-10-02 22:15:05 -07:00
dfsek
3d428c32d4 Fix structure MultipleFacing rotation 2020-10-02 22:05:25 -07:00
dfsek
e36e5f390c Clean up debug info 2020-10-01 18:22:38 -07:00
dfsek
6f11222a88 Completely redo config 2020-10-01 16:31:48 -07:00
dfsek
d239358afe Only use RandomPalette if palette contains multiple materials. 2020-10-01 00:39:18 -07:00
dfsek
0f29a506d0 Performance improvements 2020-09-30 21:18:30 -07:00
dfsek
eb208ed9fe Implement basic structure config 2020-09-29 01:38:17 -07:00
dfsek
89224723e6 Implement structure rotation 2020-09-28 23:11:59 -07:00
dfsek
e3a8a3386e Partially working structure rotation 2020-09-28 22:37:12 -07:00
dfsek
080a6d98f9 Implement basic structure gen 2020-09-28 02:16:49 -07:00
dfsek
81d607b900 Begin work on serialization, improve structure performance. 2020-09-27 01:36:06 -07:00
dfsek
5669a0e9c4 Implement new profiling system, begin work on structures. 2020-09-26 19:45:58 -07:00