RednedEpic
64410dbe48
Implement packet codec system to remove expensive protocol state switches
...
With the way this lib used to previously work, any time the protocol state changed, all the packet maps got cleared and had new packets inserted into them depending on the protocol state. This was unnecessarily expensive and although called rarely, it was not ideal.
The packet codecs added are static, immutable and can be reused across sessions. The codec system also opens up the door for multi-version capability in the future.
2021-11-13 16:44:55 -06:00
RednedEpic
c18fa85120
Remove duplicate registration
2021-11-13 13:57:21 -06:00
RednedEpic
c5032fb425
Update to new packetlib changes
2021-11-13 13:52:39 -06:00
Camotoy
87c0953d27
Set all fields as final; use constructor with NetInput
...
This allows all fields to be final, and prevents a setAccessible used on a no-args constructor.
2021-11-12 17:38:33 -05:00
Camotoy
73659fe559
Update example
2021-11-12 17:37:25 -05:00
D3ATHBRINGER13
8fcf4df994
Refactor to use Mojmap packet names ( #662 )
...
This allows packet name parity with Minecraft itself.
2021-11-12 12:59:12 -05:00
Camotoy
3e9c660e79
Use PacketLib 2.1-SNAPSHOT for now
2021-11-12 12:54:18 -05:00
David Choo
dff7c0544c
Add missing Generic Statistics ( #668 )
2021-11-11 14:19:08 -05:00
Camotoy
c2985e83ea
Update to Adventure 4.9.3
2021-10-31 14:56:02 -04:00
Josh Moore
728e673fcf
Updated Lombok to fix broken compilation when using Java 16 ( #665 )
...
- As suggested by: https://stackoverflow.com/a/66981165/9665770
- in extension: https://github.com/projectlombok/lombok/issues/2681
2021-10-19 21:49:27 -04:00
Camotoy
f1ac2de294
Use identifiers for all Effect classes; don't use MagicValues
...
We can just use the ordinal plus or minus one to determine what we're looking for.
2021-10-11 20:55:22 -04:00
Extollite
72ba6f58af
Fix project formatting style ( #663 )
2021-10-11 09:51:41 -04:00
Camotoy
e7979c45b6
Update Adventure version
2021-10-07 09:45:31 -04:00
Camotoy
a0ce555787
Use Mojang mapped name for UnexpectedEncryptionException
2021-10-07 09:44:34 -04:00
Camotoy
d00d4f4dba
Throw specific error when encryption could not be initialized
2021-10-07 09:43:08 -04:00
Camotoy
fcb508a414
Add Discord link
2021-10-04 20:41:27 -04:00
Steven Smith
6472a45e95
Merge pull request #657 from GeyserMC/feature/1.17.1
2021-09-23 01:46:56 -07:00
Camotoy
55e13e588a
Remove ServerSetCompressionPacket
...
This packet isn't used anymore.
2021-09-22 19:42:41 -04:00
Steven Smith
d9be754f05
Merge pull request #656 from jdonkervliet/master
2021-09-21 13:02:23 -07:00
Jesse Donkervliet
f287b501b3
fix: fixes two incorrect (swapped) packet IDs
2021-09-21 20:40:31 +02:00
Steveice10
270261ba2d
Update to latest MCAuthLib commit.
2021-09-06 15:05:31 -07:00
Steveice10
e09374ad9f
Update adventure and add legacy hover event serializer to default serializer.
2021-08-23 11:23:35 -07:00
Steveice10
133ecd07af
Bump version to 1.17.1-2-SNAPSHOT.
2021-08-22 18:12:30 -07:00
Steveice10
ee7c6195d8
Update to MCAuthLib 1.4 and bump version to 1.17.1-1.
...
MCAuthLib 1.4 includes a fix for a username-based attack on server-side authentication. Thanks to @Ry0taK for reporting.
2021-08-22 18:06:33 -07:00
Steven Smith
4a6aaa6213
Merge pull request #643 from GeyserMC/feature/1.17.1
2021-08-16 11:39:40 -07:00
Camotoy
e17787abe2
Handle the Brigadier Long argument type
...
See https://github.com/GeyserMC/Geyser/issues/2476
2021-08-16 12:34:46 -04:00
Steven Smith
da17aed49b
Merge pull request #641 from Newspicel/patch-1
2021-08-11 10:17:17 -07:00
Julian
df626fbe09
Do not use the deprecated method anymore.
2021-08-11 10:56:36 +02:00
Steven Smith
c5e4b66374
Merge pull request #634 from GeyserMC/feature/1.17.1
2021-07-14 19:45:43 -07:00
Camotoy
e4272371e1
Fix negative Y position reading
2021-07-14 15:49:05 -04:00
Steven Smith
9f79bf91da
Merge pull request #632 from GeyserMC/feature/1.17.1
2021-07-07 08:49:19 -07:00
Camotoy
85dc970041
Bump version
2021-07-07 10:54:50 -04:00
Camotoy
4156f6277b
Implement vibration signal packet
2021-07-07 10:51:57 -04:00
Camotoy
6e318f5b53
Update to release protocol
2021-07-05 22:30:19 -04:00
Camotoy
24a3880bd4
Update to 1.17.1-rc1
2021-07-04 10:43:26 -04:00
Camotoy
4154397c6b
Merge branch 'feature/1.17' of https://github.com/GeyserMC/MCProtocolLib into feature/1.17.1
2021-07-04 09:53:27 -04:00
Camotoy
ea40e15aa7
Address suggestions and fix tests
2021-06-28 10:11:26 -04:00
Camotoy
9db4bbca57
Update to 1.17.1-pre1
2021-06-20 12:35:34 -04:00
Camotoy
7248769028
Add more new level events
2021-06-16 18:34:26 -04:00
Camotoy
dd606b4753
Add new level events
2021-06-09 19:39:47 -04:00
Camotoy
5b5334c2be
Fix dust particle data
2021-06-08 20:07:34 -04:00
Camotoy
e3169866ef
Update to 1.17 release
2021-06-07 23:38:22 -04:00
Camotoy
2bd966a4ef
Implement new entity statuses
2021-06-07 19:13:45 -04:00
Camotoy
bc06ae50b7
Update block values
2021-06-04 21:25:33 -04:00
Camotoy
3e56be709e
Update to 1.17-rc1; some optimizations
2021-06-04 20:47:54 -04:00
Camotoy
eb026883b2
Support HangingDirection for glow item frames, too
2021-06-03 18:59:39 -04:00
Camotoy
5f523d309c
Bump for 1.17-pre5
2021-06-03 16:58:08 -04:00
Camotoy
5ff383d27a
Update to 1.17-pre4 and fix particles
2021-06-02 22:00:26 -04:00
Camotoy
ba26c10558
Fix sound
2021-06-01 22:25:38 -04:00
Camotoy
9ba9d7e055
Fix protocol version
2021-06-01 19:30:56 -04:00