Commit Graph

1014 Commits

Author SHA1 Message Date
mworzala
1d54534562
fix: anvil not loading locations properly 2024-04-25 08:45:37 -04:00
mworzala
90d18c2a95
feat: partial anvil writing, update tests (still many broken) 2024-04-25 08:45:36 -04:00
mworzala
1246fa57d7
feat: anvil reading, other minor fixes 2024-04-25 08:45:36 -04:00
mworzala
49f8ae1223
feat: simplify sound events, fix update explosion packet 2024-04-25 08:45:35 -04:00
mworzala
4e6c15189c
feat: even more components (only 2 missing ones) 2024-04-25 08:45:35 -04:00
mworzala
a9e056a119
chore: more components 2024-04-25 08:45:34 -04:00
mworzala
5188c15245
feat: initial conversion to adventure nbt. no tests, no anvil 2024-04-25 08:45:11 -04:00
GreatWyrm
877e2bb4f2
chore: Cleanup some deprecations in the project (#2084) 2024-04-09 21:14:29 +00:00
DeidaraMC
a9f6d9f02b
feat: add TICK_END execution type to scheduler api (#2045)
* feat: implement TICK_END scheduler ExecutionType

* feat: add TICK_END scheduler ExecutionType

* fix: call processTickEnd on entity/instances, SchedulerImpl code cleanup

* deprecate ExecutionType#SYNC, replace with TICK_START

* chore: update scheduler test

* chore: scheduleEndOfTick cleanup

---------

Co-authored-by: iam <iam4722202468@users.noreply.github.com>
2024-03-30 23:51:08 -04:00
DeidaraMC
dc17d171ce
feat: vanilla style Instance#setWeather method overload, weather api improvements (#2064)
* feat: weather update

* chore: Weather#createIsRainingPacket use isRaining
2024-03-29 10:12:45 -04:00
iam
6e179dbd8a
Fix Lighting Invalidation (#2041)
-  Fix invalid lighting being sent to clients
-  Add cherry leaves to occludes
-  Fix lighting being generated when using loaded lighting
-  Send lighting to clients on block changes
-  Cleanup unused methods
-  Add sky lighting test for short grass
2024-03-24 16:23:26 -04:00
DeidaraMC
32f96683ee
feat: add weather to instances (#2032)
* feat: instance weather system

* chore: weather documentation

* chore: remove unused weather fields

* feat: linear weather interpolation

* chore: register weather command

---------

Co-authored-by: DeidaraMC <DeidaraMC>
Co-authored-by: mworzala <mattheworzala@gmail.com>
2024-03-19 16:44:51 +00:00
iam
7320437640
Optionally load vanilla biomes (#1988)
* Add biomes from vanilla

* cleanup

* rework biomes

* nullability

* getByName string

* expose vanilla biomes

* not null

* before rename

* rename

* nbt cache

* fix

* fix

* fix

* final on vanilla biome
2024-02-12 15:25:46 -05:00
iam4722202468
6d175c4ff9 expose internal and external lighting 2024-02-10 18:06:31 -05:00
iam4722202468
4fea03fe32 Never relight non-lighting chunk 2024-02-10 18:06:31 -05:00
iam4722202468
4b9e260f23 Don't relight dynamic chunk 2024-02-10 18:06:31 -05:00
iam4722202468
aca67fc5d8 Don't relight entire chunk 2024-02-10 18:06:31 -05:00
iam4722202468
225a834ef8 Add api to get lighting of instance 2024-02-10 18:06:31 -05:00
iam4722202468
9ed8605edc Documentation 2024-02-10 14:23:49 -05:00
NxDs
82725b5e32
Add BlockFace#fromDirection
(cherry picked from commit cc39a90857)
2024-02-09 15:04:36 -05:00
Spongecade
e9e58e4fce
Update Minecraft Wiki links to new domain
(cherry picked from commit 478eba12fb)
2024-02-09 15:03:05 -05:00
iam
f0f81803a5 Fix lighting tests & heightmap (#137)
* fix tests

* fix heightmap lookup

(cherry picked from commit 7d717ada584bc3a3feaeda470113bb4adeb774ae)
2024-02-09 14:27:43 -05:00
iam
8aedd5fc26 Send Lighting Immediately (#131)
Fix lighting

(cherry picked from commit 0494ee0b97c0ce28ffd6d744a494c65fa8308658)
2024-02-09 14:27:43 -05:00
mworzala
69aeb8e2ea fix: preserve instance tag on #copy() (fix #112)
(cherry picked from commit 5f49033842)
2024-02-09 14:27:43 -05:00
mworzala
833c5fe365 fix: test failures
(cherry picked from commit c0d3f01fa2)
2024-02-09 14:27:43 -05:00
mworzala
6f30edb411 feat: implement 1.20.2 client-rate-limited chunk batching
(cherry picked from commit e24cb62583)
2024-02-09 14:27:43 -05:00
mworzala
2f85ce0231 stable configuration state join
(cherry picked from commit 465af0e051)
2024-02-09 14:27:43 -05:00
GoldenStack
061c2c98f1 hollow-cube/remove-default-damage-behaviour (#64)
* Remove automatic void damage

* Remove automatic fire damage

(cherry picked from commit 517b195b5e)
2024-02-09 14:27:43 -05:00
iam
926871c86e hollow-cube/lighting-join-patch (#56)
(cherry picked from commit 010fe985bb)
2024-02-09 14:27:43 -05:00
mworzala
351d2197b1 collect all server options in ServerFlag file, other minor changes 2024-02-09 14:27:43 -05:00
Matt Worzala
c657be553f hollow-cube/prevent-block-placement-outside-world (#42)
* Prevent block place above 320

(cherry picked from commit d226c3994a)

* Move position of check

(cherry picked from commit ff7c4c108f)

* Add unit test

(cherry picked from commit 68500bf0d0)

* Add min y check

(cherry picked from commit 0ce77673a9)

---------

Co-authored-by: nucker <nuckermail@gmail.com>
(cherry picked from commit 8da8a70342)
2024-02-09 14:27:43 -05:00
iam
c616b3498a hollow-cube/lighting-memory-reduction
Lighting reduce memory + Fix lighting not sending + Performance (#31)

* Reduce memory

* Clone

* Executor pool + cleanup

* Cleanup

* Don't batch, it's slower

* Parallel chunk loading for test

* Check below chunk 6. Sky light data doesn't appear to be saved above the highest point in the chunk height map.

* Fix weird locking

* ඞ

* Fix test

* Fix indentation

* Use short instead of int

* Use short instead of int

* Start removing borders

* Borders gone

* Cleanup

* Cleanup

* Remove borders fully - Still needs cleanup

* Cleanup 1

* Cleanup 2

* Cleanup 3

* Cleanup 4

* Cache

* Performance

* Performance

* Cleanup

* Cleanup

* Refactor

* Cleanup from self-review

(cherry picked from commit 12aa1e6b7b)
2024-02-09 14:27:43 -05:00
mworzala
ef075bec3f hollow-cube/block-update-changes
(cherry picked from commit 74ca1041f3)
2024-02-09 14:27:43 -05:00
mworzala
bb6a93da89 hollow-cube/prevent-block-updates
(cherry picked from commit 55a1349049)
2024-02-09 14:27:43 -05:00
mworzala
b4c41adb7d hollow-cube/dimension-names
(cherry picked from commit 7493b640b7)
2024-02-09 14:27:43 -05:00
mworzala
37f6877b0a hollow-cube/block-handler-in-chunk-setblock
(cherry picked from commit 54e839e58a)
2024-02-09 14:27:43 -05:00
iam
b32146a316 hollow-cube/lighting-update-2
Delay light sending, send lighting slower, fix sending multiple times

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit 8a5c610b7b)
2024-02-09 14:27:43 -05:00
mworzala
4a261c365c hollow-cube/material-in-replacement-rule
(cherry picked from commit 438338381e)
2024-02-09 14:27:43 -05:00
mworzala
f019fe69d0 hollow-cube/respectful-chunk-sending
(cherry picked from commit 9f3ee89506)
2024-02-09 14:27:43 -05:00
Matt Worzala
969e0d6643 hollow-cube/1.20
* initial 1.20 support

* test fixes

* anvil 1.20, 1.20.1

(cherry picked from commit 716f32972a)
2024-02-09 14:27:43 -05:00
Matt Worzala
128c525b7c hollow-cube/placement-rule-improvement
* improve placement rule api and remove existing vanilla rules

* readme changes

(cherry picked from commit b0b640ccd7)
2024-02-09 14:27:43 -05:00
mworzala
2f6941c68e iam fix to lighting
(cherry picked from commit 8ff6339365)
2024-02-09 14:27:43 -05:00
iam
3a18235679 More aggressive lighting delay, resend neighbour lighting data after chunk generation (#16)
(cherry picked from commit 9c6cb1796c)
2024-02-09 14:27:43 -05:00
iam4722202468
7b7f0308aa Fix flexible palette out of bounds
(cherry picked from commit 5afce81de5)
2024-02-09 14:27:43 -05:00
iam
912fb34f17 hollow-cube/lighting (#13)
* Lighting

* Remove invalidate

* Private

* Fix chunk loading

* Small fixes

* Fix loading light from anvil world

* Fix solid

* Temporary

* Fix tests, add seagrass and tall seagrass to diffusion list

* Make test faster, replace hephaistos

* Cleanup

* Assume failed test

* Fix chunk not getting invalidated

(cherry picked from commit f13a7b49fa)
2024-02-09 14:27:43 -05:00
rad
99941e511c
add javadocs for BlockHandler#getBlockEntityTags() (#1930)
* add javadocs for getBlockEntityTags()

* Update BlockHandler.java
2023-08-28 11:34:22 +10:00
EpicPlayerA10
4f3c35ee87
Instance register and unregister events (#608)
* Added InstanceRegisterEvent and InstanceUnregisterEvent

* Add unit test
2023-03-31 07:35:24 +10:00
emortaldev
c995f9c3a9
Block event changes (#1675)
* Add cursor position to interact events

* Add block face to digging events

* Expose interact position in interact event
2023-01-16 18:57:18 -05:00
GreatWyrm
9890d71347
Minor Property Tweaks (#1591)
* Add System Property for changing Portal Teleport boundry, remove unnecessary PropertyUtils method

* Remove unneeded imports on changed files

* Restore getString in PropertyUtils, change to use JDK method
2022-12-30 21:52:16 -05:00
TheMode
c04028336d
Entity viewable tracking (#1494) 2022-12-31 02:47:18 +01:00