Commit Graph
1404 Commits
Author SHA1 Message Date
gnembon f1586b3809 23w12a 2023-03-22 18:27:44 +01:00
replaceitem 8aae23c983 Fixed AnnotationParser not detecting USE_METHOD_NAME (#1677) 2023-03-15 14:46:31 +01:00
altrisi 0869cbb81c Move rule change event into a rule observer and outside the Java api
* Move rule change event into a rule observer, without exposing it

* Fix comment

* Fix formatting changes added by my IDE

Still trying to configure it to force correctly the new style

Also remove some finals
2023-03-08 21:31:34 +01:00
altrisi 06bdbdaed2 Add arithmetic shift, use logic shift in current right shift (#1670)
* Add arithmetic shift, use logic shift in current

* State that the MSBs will be cleared to zero in logic right shift
2023-03-08 21:26:27 +01:00
altrisi cc24f79d47 Allow scarpet function name to be different to annotated method name 2023-03-08 20:53:35 +01:00
altrisi 13882146fc Simplify app store rule cleaning 2023-03-08 16:41:43 +01:00
altrisi 883d887e11 Make OutputConverter.convert return Value
This is a breaking change, but there's only one use of the function on all github

The refactor also makes `register` take a function to `Value`, no one uses the one to `LazyValue` anyway. `registerToValue` is now deprecated
2023-03-08 14:07:50 +01:00
altrisi 93bec37dac Simplify and optimize bit roll operations
Suggested in #1666, ran many testing to check it gives the same results
2023-03-08 13:24:37 +01:00
gnembon 4c8e477f4b 1.19.4-pre1 2023-02-22 20:22:02 +01:00
gnembon 4d842ae382 not needed 2023-02-22 11:24:41 +01:00
gnembon 146573803c scarpet corountines idea 2023-02-22 02:33:03 +01:00
gnembon a295f81fa9 23w07a 2023-02-15 20:10:24 +01:00
gnembon 86a123d2f1 store rate limit prevention 2023-02-15 12:57:53 +01:00
gnembon 2ff1f4fb71 refactored nonscarpet references yeet 2023-02-11 01:33:23 +01:00
gnembon 41e33503fb 23w06a 2023-02-08 21:44:15 +01:00
gnembon 277872b33c warning cleanup 2023-02-08 21:13:15 +01:00
altrisi 5ab4a9e442 Document new and deprecated methods, catch exceptions 2023-02-08 21:13:14 +01:00
gnembon aea76d9764 removed static reference to server in annotation parser 2023-02-08 21:13:14 +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 15f99b3389 fixing mahusive JVM crash 2023-02-04 23:48:55 +01:00
gnembon 8f61271606 semi-auto cleanup 2023-02-04 13:26:21 +01:00
gnembon 85f7c64847 fixed use of client side classes in shape dispatcher 2023-01-31 21:54:34 +01:00
vlad2305m d49be89e23 Do not load clientside-only classes in serverside ShapeDispatcher code (#1642)
fixed use of client side classes in shape dispatcher
2023-01-31 21:39:37 +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 889e3b6999 Replace usages of j.u.Stack with fastutil's
Java's is synchronized everywhere, reducing performance given we don't need it to be. It's recommended to use `Deque` as a replacement, but given we have fastutil's, we use those

Closes #1640
2023-01-24 13:46:53 +01:00
altrisi fb7b1f79a5 Fix unchecked removal of commands by app name 2023-01-23 22:19:07 +01:00
altrisi 1eb25ba1b5 Improve unexpected java exception in scarpet error slightly 2023-01-20 18:53:26 +01:00
altrisi 583a372ba4 Migrate Context usage from recently merged PR 2023-01-20 18:09:15 +01:00
Ghoulboy 811b330446 Adding system_info('world_min_spawning_light') (#1475) 2023-01-20 14:01:37 +01:00
altrisi 914e129f6e Merge particle caches (#1528)
* Merge particle caches

* Reset this cache on world reload
2023-01-20 13:56:16 +01:00
altrisi 3050a82b96 Replace one missed usage
It was also using the copy-constructor, so this way it should also be more efficient
2023-01-19 01:47:33 +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
altrisi 2b95a878ad Remove now fixed flatWorldStructureSpawning rule and cleanup some unused mixins 2023-01-18 14:41:46 +01:00
altrisi 0e8b53c8d3 Add CarpetContext.s back temporarily as Deprecated for compatibility 2023-01-18 13:47:22 +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
altrisi 7efa9df3ee Simplify chunk refreshing and fix a bug in it
where block-specific distance is used instead of chunk distance
2022-12-28 16:32:01 +01:00
Ghoulboy 43bb84437f Add event for commands and make __on_player_message not trigger for them (#1525)
* Restoring old behaviour of __on_player_message

Fixes #1511

* Changed to PLAYER_COMMAND

* Updated docs

* Updated event_test.sc

* Updated editor keywords

* Fixed issue
2022-12-26 15:30:50 +01:00
gnembon 8c1c189caa 1.19.3-pre3 2022-11-29 21:31:07 +01:00
gnembon 1edd06605b 1.19.3-pre2 2022-11-24 06:10:18 +01:00
gnembon cda6994cae 45a great reg split 2022-11-10 20:51:10 +01:00
altrisi 1466006638 Don't compute tree size and depth with debugging disabled (#1588) 2022-11-09 09:59:00 +01:00
gnembon 4be362e58b 1.4.87 for 22w44a 2022-11-02 22:30:46 +01:00