Commit Graph
264 Commits
Author SHA1 Message Date
gnembon 2ff1f4fb71 refactored nonscarpet references yeet 2023-02-11 01:33:23 +01:00
gnembon 277872b33c warning cleanup 2023-02-08 21:13:15 +01:00
gnembon 75d94b0570 cleanup of scarpet dependencies 2023-02-08 21:13:14 +01:00
gnembon fd93785fec added nonnull assertions 2023-02-05 12:56:06 +01:00
gnembon 8f61271606 semi-auto cleanup 2023-02-04 13:26:21 +01:00
gnembon 2133675ac7 renamed sample_density with 'sample_noise'. sample noise values directly from the local router if possible. 2023-01-30 18:02:08 +01:00
gnembon 659f0106e3 renamed compute_density_function with 'sample_density' and tweaked its use 2023-01-28 19:51:13 +01:00
gnembon ea88c09c42 cached access to worldgen noise functions 2023-01-28 19:20:44 +01:00
Crec0 f2c658bf03 Add compute_density_function to replace removed `sample_noise (#1591) 2023-01-25 17:08:36 +01:00
gnembon a95622e749 22w04a 2023-01-24 21:52:01 +01:00
altrisi 17249c3c77 Refactor code to use ListValue.wrap(Stream)
Simplifies code (improving readability) and unifies `Stream<Value>` to `ListValue` handling
2023-01-19 01:40:29 +01:00
altrisi dd1dc3756a Remove a no longer necessary mixin
And tiny cleanup to another one
2023-01-19 00:30:23 +01:00
gnembon c7d506675e 23w03a 2023-01-18 22:11:19 +01:00
gnembon bd5dfdbf9f refactor limit access to built-in registries 2023-01-18 04:07:55 +01:00
gnembon 8dd08d5cb1 refactor access to context data 2023-01-16 19:01:10 +01:00
gnembon 8c1c189caa 1.19.3-pre3 2022-11-29 21:31:07 +01:00
gnembon cda6994cae 45a great reg split 2022-11-10 20:51:10 +01:00
gnembon 4be362e58b 1.4.87 for 22w44a 2022-11-02 22:30:46 +01:00
gnembon e0b6aae07b 22w43a 2022-10-26 23:26:27 +02:00
gnembon 9f776167e3 22w42a 2022-10-20 14:33:36 +02:00
altrisi 4f9bd3ab78 Simplify and standarize some conversions with ValueConversions 2022-10-02 18:49:49 +02:00
altrisi 3247b83272 Simplify and slightly optimize EntityClassDescriptor
Could probably also be a record, though I'll look into that at another time
2022-10-02 15:29:34 +02:00
gnembon bb12e3ddd1 code cleanup for getItemsStackFromValue and npp keywords 2022-08-28 20:01:40 +02:00
ch-yx d418b7d090 move getItemStackFromValue to ValueConversions 2022-08-28 18:59:11 +02:00
ch-yx 3f91c3b5cd rename it to item_display_name 2022-08-28 18:59:11 +02:00
ch-yx 5e5ce6f7d3 is that ok now? 2022-08-28 18:59:11 +02:00
ch-yx 8be1cc2003 rename to effective_light 2022-08-28 18:59:11 +02:00
ch-yx 46d8e8dd33 [] 2022-08-28 18:59:11 +02:00
ch-yx 8be36cb641 remove screen demo 2022-08-28 18:59:11 +02:00
ch-yx 0b49f54946 add item_display_name 2022-08-28 18:59:11 +02:00
ch-yx e2e5bb2242 light? 2022-08-28 18:59:11 +02:00
ch-yx a690e477ae draft 2022-08-28 18:59:11 +02:00
altrisi 2a4d678aa7 Remove the last few File usages
Barring one, given I've heard in hot code `Files.exists()` is slower than toFile().exists() if in the default `FileSystem`
2022-08-28 18:34:39 +02:00
gnembon 6d3c4fa508 1.19.1-rc2 2022-07-22 18:25:43 +02:00
altrisi 0a972d6c56 Settings rework and encapsulation (#1330)
* Settings rework and encapsulation

* Settings overhaul 3

Move everything in the new system to a new API package

Require rules using the new system to specify descriptions in their translation files

Implement temporary system on top of current translations to allow that to work properly

* Fix getRules fallback

* Final touches to settings refactor

* Mention that set shouldn't throw and remove comment

* Change translation keys to unify with translation PR

* Deprecate printAllRulesToLog to allow using any PrintStream

* Remove restriction of CarpetRules being Comparable

And fix overreaction in a deprecation message

* Bring back user input to rule observers

* Make Validator deprecation warning not spam on use

* Remove unneeded abstract methods in CarpetRule already inherited from CarpetRule

They literally do nothing, don't even force them to be implemented, and may be confusing as to why they're there or as if they are needed to be implemented

* Fix legacy SettingsManager field not being assigned correctly

* Finish fixing conflicts from future merge

* Actually fix remaining conflicts from future merge (missing imports)

* Import the newer rule in SettingsManager

* Refactor Validators

* Don't spam deprecation warnings on custom managers

* Get out the var

* Fix missing warning in old rule observers

* Update src/main/java/carpet/api/settings/Rule.java

* Remove `@ApiStatus.Experimental` annotations

* Fix incorrect `@deprecated` javadoc tags

By removing them given the class is deprecated anyway and else there's too much noise

* Add missing static import

* Remove TypedField and use a regular field

I liked that class tbh, but it's true that it wasn't really needed

* Move `field` assignment out of for removal

* Fix not following contract of `type()` returning boxed value

Previously handled by TypedField

* Fix few incorrect translation keys

* Remove resaving of comments when saving config files

Comments ignoring is still a thing when reading, so `locked` configs for example will keep comments

* Condense rule load messages in one

* Only print loaded settings message when at least one setting was changed

* Fix legacy validator detector

* Tweak and add more context to response to invalid values

* Fix strict validator not actually erroring on invalid input
2022-06-27 13:12:15 +02:00
gnembon 40af4f2200 1.4.78 for 1.19-pre5 2022-06-01 21:58:32 +02:00
altrisi f18cfb09d2 Fix more warnings and do some small optimizations (#1356)
* Fix more warnings and do some small optimizations

* Fix more warnings in ValueConversions

* Clean up some decompiler names and fix an unnecessary transformation around commands

* Use (way) more compact data structure for slot map

* Minor tweaks
Such as map directly in the collector

* I hate vanilla javac
Revert map changes in latest commit
2022-05-27 19:43:45 +02:00
altrisi a60bc386cb Refactor Module into a single record type and fix system globals (#1383) 2022-05-17 20:11:49 +02:00
gnembon 1a6b1df534 22w19a 2022-05-13 11:26:47 +02:00
gnembon 746c8548e9 22w16b with massive Component changes 2022-04-21 00:26:39 +02:00
altrisi 76861479e0 Add support for formatted names in create_marker (#1413) 2022-04-20 13:01:58 +02:00
gnembon 812d361af2 22w14a 2022-04-06 22:16:05 +02:00
gnembon ef3e71b9b6 22w13a 2022-03-31 20:23:49 +02:00
gnembon 842370f68d Merge branch 'master' into future
# Conflicts:
#	src/main/java/carpet/script/api/Auxiliary.java
2022-03-30 07:49:07 +02:00
gnembon c33c53c8c2 enable_hidden_dimensions is ded :( 2022-03-30 07:44:37 +02:00
gnembon ab07a6807a 22w12a 2022-03-24 21:48:29 +01:00
gnembon 2743908887 use proper registires, still issues. 2022-03-24 21:20:19 +01:00
gnembon 7c353d40f8 Merge branch 'master' into future 2022-03-24 21:18:53 +01:00
gnembon d1f3886845 use proper registires, still issues. 2022-03-24 21:18:32 +01:00
gnembon cd1854a734 Merge branch 'master' into future 2022-03-23 18:21:45 +01:00