Commit Graph

5581 Commits

Author SHA1 Message Date
mworzala
101211c804 feat: anvil reading, other minor fixes 2024-06-07 21:28:21 -04:00
mworzala
2920cee2f6 fix: do not send close inventory packet when opening a new inventory while one is open 2024-06-07 21:28:21 -04:00
mworzala
c4af024bd5 feat: generate RecipeType (for ids) 2024-06-07 21:28:21 -04:00
mworzala
5096c7ad8f feat: simplify sound events, fix update explosion packet 2024-06-07 21:28:21 -04:00
mworzala
100661bbd1 feat: first draft of cookies 2024-06-07 21:28:21 -04:00
mworzala
35f122bc32 feat: even more components (only 2 missing ones) 2024-06-07 21:28:21 -04:00
mworzala
eccfaaca83 feat: more components 2024-06-07 21:28:21 -04:00
mworzala
444e74e532 chore: cleanup itemcomponenttype, update to datagen changes 2024-06-07 21:28:21 -04:00
mworzala
7ba6a6d4b3 feat: functional components, but at what cost 2024-06-07 21:28:21 -04:00
mworzala
b8a600bc7f chore: trying to fix nightmare loop 2024-06-07 21:28:21 -04:00
mworzala
4f12d65c7a chore: more components 2024-06-07 21:28:21 -04:00
mworzala
af85459761 chore: more components 2024-06-07 21:28:21 -04:00
mworzala
65e04d0a94 chore: delete all old metadata classes for now, may return compatibility later 2024-06-07 21:28:21 -04:00
mworzala
6300d7660c feat: first version of a bunch of components 2024-06-07 21:28:21 -04:00
mworzala
e857a290e2 chore: rebase on adventure-nbt 2024-06-07 21:28:21 -04:00
mworzala
0a6c82199a fix: oops, health is before potion still 2024-06-07 21:28:21 -04:00
mworzala
d2be7e1294 feat: joinable server 2024-06-07 21:28:21 -04:00
mworzala
18b6354d83 chore: basic nbt reader/writer for protocol while waiting for adventure 2024-06-07 21:28:21 -04:00
mworzala
e61dc8188f feat: initial conversion to adventure nbt. no tests, no anvil 2024-06-07 21:28:21 -04:00
FluxCapacitor2
19bb74e942 Make PlayerProjectile extend Entity instead of LivingEntity 2024-06-02 00:59:03 -04:00
mworzala
982233141e
fix: do not test block collision on entities without collision 2024-05-30 20:24:26 -04:00
felix
4a07089e71
Switch to the new adventure domain (#2165) 2024-05-30 15:12:25 +00:00
iam
1c7fc6c12e
Refactor lighting code, fix loaded chunks (#2164) 2024-05-30 06:59:26 +00:00
Minikloon
d46c626385 Add signum operator to Vec 2024-05-29 23:54:22 -04:00
mudkipdev
406c686efd add more command conditions 2024-05-29 23:47:56 -04:00
Samuel
5ac26b15c5
Fix Entity::getEffectLevel having two meanings when returning 0 (#2163) 2024-05-30 03:43:29 +00:00
iam4722202468
5035c2b9e3 fix light invalidation issue 2024-05-29 20:45:47 -04:00
Samuel
43ed60d937
Offer more control over LightingChunk invalidations (#2156)
* Offer more control over LightingChunk invalidations

* Respect freezeInvalidation on this other invalidate method

* Rename to invalidateNeighborsSection and remove redundant null check
2024-05-29 20:22:54 -04:00
iam4722202468
85942b6b27 make initial lighting not require send to fix race condition 2024-05-23 17:15:42 -04:00
Samuel
776ad02d63
Add BlockVec as a Point implementation (#2144)
* Add the BlockVec class

* Use BlockVec in BlockEvent

* Add usage notes
2024-05-23 16:52:16 -04:00
Samuel
1f07d38f2b
Add BoundingBox::fromPoints (#2145) 2024-05-22 18:59:13 -04:00
iam4722202468
33dff6f458 whoops 2024-05-11 04:12:13 -04:00
iam4722202468
667b9016ca reduce memory of loaded lighting 2024-05-09 23:10:01 -04:00
TogAr2
6b8a4e4cc9
Fix Aerodynamics#withGravity changing horizontal air resistance (#2125) 2024-05-04 04:51:06 +00:00
felix
4b9d79bed4
Fix wrong trim cache invalidation (#2126) 2024-05-03 13:45:17 -04:00
GoldenStack
fed512eaf6 Send an acknowledgement packet for item usage 2024-05-01 21:51:42 -04:00
DeidaraMC
ded0721b23
fix: Aerodynamics#withAirResistance not updating correctly (#2121) 2024-05-02 01:49:18 +00:00
DeidaraMC
ea4769817d fix: simulate phyiscs updating player onGround when it should not 2024-05-01 21:46:26 -04:00
DeidaraMC
5c050c66ca fix: Entity#onGround returning true when entities aren't actually on ground 2024-04-30 23:06:41 -04:00
DeidaraMC
5bf4b4445a fix: projectile entities positions becoming desynced from the client 2024-04-30 20:36:51 -04:00
mworzala
fe8a230abb
fix: correct entity opt_block_state metadata serializer 2024-04-30 16:50:46 -04:00
mworzala
e18d7fb798
fix: do not process disconnected queued config->play transition players 2024-04-30 13:56:38 -04:00
Alexander
2a7df1ab55
Lighting fix 35 (#2044)
* optimize light compute

* fix broken sections

* encodeHeightmap without magic

* separate heightmaps without empty sections optimization

* empty sections skip optimization

* working but not the best architecture

* AbstractHeightmap

* Anvil loading heightmaps.

* refactor

* Refactor

* some refactoring after refactoring

* test + cleanup

* refactor

* refactor

* refactor

* remove HeightMapContainer

---------

Co-authored-by: iam4722202468 <aceparent@gmail.com>
2024-04-30 03:52:21 +00:00
DeidaraMC
d0c7d7350e
fix: don't simulate movement if the chunk isn't loaded (#2112)
* fix: don't simulate movement if the chunk isn't loaded

* chore: changed wrong thing
2024-04-29 14:20:23 -04:00
Zax71
3de64aafd8
Sonatype -> mvnrepository (#2109)
The sonatype UI is broken for getting the latest version
2024-04-29 00:16:44 -04:00
oglass
5c23713c03
Use PlayerInstanceEvent instead of PlayerEvent (#2102) 2024-04-24 16:27:42 +00:00
mworzala
129fd8ca0f
fix: properly return missing optvarint 2024-04-23 23:20:27 -04:00
mworzala
f76d421744
fix: write metadata optvarint as varint + 1 || 0 2024-04-23 23:17:50 -04:00
DeidaraMC
e28adbca3e
fix: arrow meta shooter id set correctly (#2105) 2024-04-23 22:47:35 -04:00
mworzala
e8e22a2b15
fix: close current inventory when opening a book 2024-04-14 20:34:26 -04:00