Commit Graph

891 Commits

Author SHA1 Message Date
mworzala
49f8ae1223
feat: simplify sound events, fix update explosion packet 2024-04-25 08:45:35 -04:00
mworzala
f9c835ed6c
feat: first draft of cookies 2024-04-25 08:45:35 -04:00
mworzala
2b974d95f9
feat: more components 2024-04-25 08:45:34 -04:00
mworzala
c873d72f64
feat: functional components, but at what cost 2024-04-25 08:45:34 -04:00
mworzala
a9e056a119
chore: more components 2024-04-25 08:45:34 -04:00
mworzala
ac18b3fb38
chore: delete all old metadata classes for now, may return compatibility later 2024-04-25 08:45:33 -04:00
mworzala
e8d4f79ee3
feat: first version of a bunch of components 2024-04-25 08:45:33 -04:00
mworzala
d6d2e9c3e7
chore: rebase on adventure-nbt 2024-04-25 08:45:33 -04:00
mworzala
721f70a28e
feat: joinable server 2024-04-25 08:45:31 -04:00
mworzala
62cb99a524
chore: basic nbt reader/writer for protocol while waiting for adventure 2024-04-25 08:45:11 -04:00
mworzala
5188c15245
feat: initial conversion to adventure nbt. no tests, no anvil 2024-04-25 08:45:11 -04:00
mworzala
f76d421744
fix: write metadata optvarint as varint + 1 || 0 2024-04-23 23:17:50 -04:00
Maxim Breitman
7daf8d69b7
fix typo in Server#stop (#2093) 2024-04-11 22:25:50 +02:00
Maxim Breitman
f1a4882572
fix typo in Worker#close (#2092) 2024-04-11 21:33:15 +02:00
mworzala
54212ebc97
fix: death location type to WorldPos (same type as metadata), fix missing world pos serialization (was npe) 2024-04-10 08:31:47 -04:00
TheMode
b5c35e0144
NetworkBuffer.Type refactor (#2078)
* Refactor network buffer types

* Remove magical -1 return

* Style

* Type doesnt need to be sealed
2024-04-10 01:41:03 +00:00
Samuel
0c9527118a
Add unstable API for custom Login Plugin Messages (#2074)
* Add LoginPluginMessageBox to allow sending custom login plugin messages

* throw in ConnectionManager because AsyncUtils has a try catch

* Stack requests in AsyncPlayerPreLoginEvent so the user-facing API is scoped to the login stage

* Fix addPluginRequest javadoc

* feat: encapsulate velocityproxy logic, other minor tweaks

* fix: revert velocityproxy changes

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
2024-04-01 16:36:13 -04:00
DeidaraMC
63f02929ed chore: point position/offset particle packet construtors 2024-03-31 01:33:55 -04:00
TheMode
9cfffc6ee4
Static packet ids (#2034) 2024-03-19 17:42:06 +01:00
mworzala
58fd95879a
fix: correct painting metadata 2024-03-12 15:22:15 -04:00
iam4722202468
7aaa85cd47 change maxspeed to float 2024-03-09 23:44:51 -05:00
iam
d595ce3468
ParticlePacket constructor should use floats (#2009) 2024-02-29 07:18:42 +00:00
iam
5162a00b1e
Add particle data types (#2004)
* Add particle data types

* misc

* misc

* remove spaces

* defaults, tests, change what mattw said to

* RGBLike

* RGBLike

* RGBLike

* add back changes

* tests

* refactor

* annotations

* more fixes

* another test

* more tests + fix

* logging + checks consistency

* review changes

* review changes
2024-02-28 21:54:24 +00:00
Matt Worzala
2947279898
Remove FakePlayer (#2006)
* feat: remove FakePlayer

* fix: oops, demo server exists
2024-02-27 13:37:42 +00:00
mworzala
a5e0641444
fix: use formatter args in Check calls 2024-02-24 19:43:30 -05:00
mworzala
fb7e4b10e0
fix: require size when reading collection to prevent oom. Do not allow string longer than remaining bytes 2024-02-24 17:46:56 -05:00
mworzala
b58db7d5b0
fix: drain worker queue during worker shutdown 2024-02-21 13:39:25 -05:00
mworzala
c9a4b4b9c1
fix: do not check instance if player was kicked during config state 2024-02-17 22:01:56 -05:00
Phillipp Glanz
7ec3e3021e
Improved socket handling for the server (#1998)
* Improves socket handling from the server.
A logging is added which catches errors as soon as the server socket connection cannot be closed. In addition, the program terminates itself immediately to avoid further errors.

* Worker stop has been transferred.
The worker stop was implemented in a close method in the worker class and is now called from the server. The access modifier was adapted for this

* Adding a wakup call before the server closes its socket
2024-02-17 19:43:05 -05: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
mworzala
d6470594ae feat: handle ping request packet to make f3+3 ping graph functional
(cherry picked from commit 9fa936af0c298150a0d657415bea632b73f78048)
2024-02-09 14:27:43 -05:00
Kil'jaeden
12da0c7e4a Added support for trim registries (#128)
* trim_material and trim_pattern registries are now generated, loaded and sent to the clients

* fixed override_armor_materials

* allowing TrimMaterial and TrimPattern to be created dynamically

* cleanup and formatting

(cherry picked from commit 70e4355ca1)
2024-02-09 14:27:43 -05:00
mworzala
a14dbf5cdd fix: shaped recipe protocol reorder
(cherry picked from commit 9d6752c86f)
2024-02-09 14:27:43 -05:00
mudkip
cf8c275cf2 add hardcore property to config event (#117)
(cherry picked from commit f5f8e21427)
2024-02-09 14:27:43 -05:00
mworzala
d544c8776a fix: fakeplayer can spawn once again (#94)
(cherry picked from commit 5347c0b11f)
2024-02-09 14:27:43 -05:00
mworzala
f4cb5272f9 fix: re-merge connection states, remove OptifineSupport
(cherry picked from commit a0ca4895b1)
2024-02-09 14:27:43 -05:00
bea4dev
7cbce377a7 fix Low accuracy tick rate
(cherry picked from commit ce9d254a23791403a2b19ee4bb6bb52e175fa5dd)
(cherry picked from commit 4e33a5e6d8)
2024-02-09 14:27:43 -05:00
mworzala
84a1150afe fix: update advancement packet to 1.20.4
(cherry picked from commit 03ef3e2374)
2024-02-09 14:27:43 -05:00
mworzala
d7abff5c43 feat: conform to Adventure resource pack API, remove Minestom resource pack types
(cherry picked from commit 40ac94d092)
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
DeidaraMC
0bb237f737 explosion packet fix, add bundle packet, rename tick rate packet to match wiki.vg (#103)
* packet fixes

* explosion packet touchup

(cherry picked from commit d576228655)
2024-02-09 14:27:43 -05:00
Matt Worzala
58b550c5ff Fix testing (v2) (#99)
* Fix Minecraft changes since 1.19 (Block.GRASS, recipe packet, DamageType.VOID)

* Add packets in play state

* Fix some tests via TestConnectionImpl and API changes

* fix: add some missing entity metas, group projectiles

---------

Co-authored-by: GoldenStack <goldenfire64yt@gmail.com>
(cherry picked from commit 89a665fdf5)
2024-02-09 14:27:43 -05:00
DeidaraMC
ed13961e90 new scoreboard protocol number format conformance (#98)
* new scoreboard protocol conformance

* fix: pass number format through when reading scoreboard packet

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit 2003f75f1f)
2024-02-09 14:27:43 -05:00
mworzala
c9ee2b56b2 chore: revert (mostly) ConnectionManager#getOnlinePlayers change
(cherry picked from commit 8859af87ba)
2024-02-09 14:27:43 -05:00
mworzala
d72e56b4be fix: begin join game sequence only after client acks configuration finish
(cherry picked from commit 197daae608)
2024-02-09 14:27:43 -05:00
mworzala
055b927bca upgrade: minor fixes, disable some scoreboard stuff temporarily
(cherry picked from commit db28c44b40)
2024-02-09 14:27:43 -05:00
mworzala
5de3436c71 upgrade: 1.20.4 data, most missing packets
(cherry picked from commit dc6a6089f1)
2024-02-09 14:27:43 -05:00
mworzala
6416e8e441 upgrade: first join
(cherry picked from commit ed06d71ac8)
2024-02-09 14:27:43 -05:00
mworzala
772b484864 upgrade: NBT chat component serializer implementation
(cherry picked from commit ed240d6f14)
2024-02-09 14:27:43 -05:00
mworzala
fad5537017 chore: use common function to generate invalid state errors
(cherry picked from commit 7e47136f28)
2024-02-09 14:27:43 -05:00