Commit graph

753 commits

Author SHA1 Message Date
Camotoy
d00d4f4dba
Throw specific error when encryption could not be initialized 2021-10-07 09:43:08 -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
Jesse Donkervliet
f287b501b3 fix: fixes two incorrect (swapped) packet IDs 2021-09-21 20:40:31 +02:00
Steveice10
e09374ad9f Update adventure and add legacy hover event serializer to default serializer. 2021-08-23 11:23:35 -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
Julian
df626fbe09
Do not use the deprecated method anymore. 2021-08-11 10:56:36 +02:00
Camotoy
e4272371e1
Fix negative Y position reading 2021-07-14 15:49:05 -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
Camotoy
ac342b72cc
Update to 1.17-pre3 2021-06-01 18:47:44 -04:00
Camotoy
13bf22b60c
Merge branch 'master' of https://github.com/Steveice10/MCProtocolLib into feature/1.17 2021-05-23 21:30:59 -04:00
Camotoy
104dd603b1
21w20a support 2021-05-19 22:21:58 -04:00
Camotoy
cd187d4cbe
Update to 21w18a 2021-05-05 12:30:25 -04:00
Camotoy
46a417b37c
Fix tags serialization 2021-05-05 11:58:05 -04:00
Camotoy
9541ab9bff
Update for 21w17a 2021-05-01 19:46:02 -04:00
Steveice10
8c204eb4c5 Remove deprecated MinecraftProtocol constructors.
PacketLib 2.0 update will introduce breaking changes anyway, so might as
well get this done now.
2021-04-20 18:37:33 -07:00
Steveice10
893cc683cb Update to latest PacketLib commit. 2021-04-20 18:28:14 -07:00
Steveice10
19a928364a Update version string to 1.16.5 2021-04-05 17:42:22 -07:00
darbyjack
3aa215984a Fixed parsing of the MOTD as Component 2021-04-05 12:43:47 -05:00
Steveice10
afca99c039 Fix IDs for crafting book state and displayed recipe packets. 2021-03-30 11:24:05 -07:00
Steveice10
bcf5232781 Tidy up auth data handling. 2021-03-30 11:23:41 -07:00
Camotoy
c9e70b8f59
Merge branch 'master' of https://github.com/Steveice10/MCProtocolLib into feature/1.17 2021-03-25 16:05:53 -04:00
Steven Smith
6ba99d1dbe
Merge pull request #612 from MatteCarra/ms-auth
Removed client token from MinecraftProtocol
2021-03-24 02:10:14 -07:00
Steveice10
840c8e2483 Clean up some Lombok annotations. 2021-03-24 02:04:16 -07:00
Marius Metzger
43e4461360 Add @With annotation to packet classes 2021-03-24 03:00:46 +00:00
Camotoy
b0b83242ea
Fix write as well 2021-01-13 23:30:50 -05:00
Camotoy
bf0a6be8fe
Fix ServerWorldBorderPacket initialization
Seems like these two were flipped around.
2021-01-13 19:58:40 -05:00
MatteCarra
95ba884563 Removed client token from MinecraftProtocol 2020-12-16 15:22:36 +01:00
David Choo
3b76ee2d23 Fix magic values of PistonValue 2020-12-09 15:35:46 -05:00
DoctorMacc
f7647a93ff
Actually fix merge 2020-12-04 19:21:27 -05:00
DoctorMacc
5e526ff01a
Merge branch 'master' of https://github.com/Steveice10/MCProtocolLib into feature/1.17 2020-12-04 18:02:46 -05:00
DoctorMacc
0ddc3a8664
Initial 20w49a implementation 2020-12-04 17:56:27 -05:00
Steveice10
26201a49f0 Allow specifying a custom GsonComponentSerializer to use. 2020-11-21 13:56:49 -08:00
Steveice10
ccbd52dffd Replace Message API with Adventure component parsing. 2020-11-21 13:42:36 -08:00
D3ATHBRINGER13
5993241c70 20w46a 2020-11-17 19:43:27 +00:00
DoctorMacc
1b167e197a
Make all recipes nullable
Cookable recipes can have a nullable result too - I'm going to assume that all recipe types can too.
2020-11-11 16:15:44 -05:00
DoctorMacc
befbfbf0ed
Allow recipe data to be null
Using datapacks, this can end up being null. Example: https://www.planetminecraft.com/data-pack/true-survival-a-hardcore-minecraft-experience/ (used to set recipes as doing nothing)
2020-11-08 18:18:12 -05:00
DoctorMacc
ea3d99d0f9
Update for 20w45a
Notably: biome data is currently set to non-null as there is no full chunk indicator anymore.
2020-11-04 17:36:44 -05:00
DoctorMacc
7321e8f0d7 Update to 1.16.4 2020-11-02 12:31:24 -08:00
DoctorMacc
c363fc3cb5 Update to 1.16.4-pre2 2020-11-02 12:31:24 -08:00
DoctorMacc
37af0d3a39 Add support for 1.16.4 2020-11-02 12:31:24 -08:00
DoctorMacc
971f6eebf9
Accomodate for encoding bug 2020-10-21 20:46:44 -04:00
DoctorMacc
e408dd250d
Add full support for the UNKNOWN gamemode
Previously we correctly handled the unknown gamemode for 'previous gamemode'; however, this functionality can extend to the main gamemode. The gamemode writing we've been doing has been replaced with the UNKNOWN enum, so we aren't dealing with a null value.
2020-10-21 17:02:39 -04:00
DaPorkchop_
cdcfff5b10 allow duplicate entries in palette 2020-10-18 21:41:56 +02:00
DaPorkchop_
3685d6b580 palette does not always start with zero... 2020-10-17 17:38:14 +02:00
DaPorkchop_
a05abf0403 use a Netty IntObjectMap instead of a standard Map 2020-10-14 15:03:29 +02:00
DaPorkchop_
8a000ddf2e remove useless imports in ListPalette 2020-10-14 14:57:56 +02:00
DaPorkchop_
4cefa46df3 don't allocate needless array when resizing palette 2020-10-14 14:56:42 +02:00
DaPorkchop_
1a2197fcc7 make MapPalette's idToState Map into an array 2020-10-14 14:52:38 +02:00
DaPorkchop_
f9e27b29e6 make ListPalette be backed by an array rather than a List 2020-10-14 14:51:53 +02:00
Steveice10
2ac116a075 Revise chunk storage code based on latest logic. 2020-10-13 16:18:56 -07:00
rtm516
23d78d7620
Add COPY_TO_CLIPBOARD ClickAction 2020-10-13 18:39:25 +01:00
DoctorMacc
ec052d7704
Remove unused imports 2020-09-26 17:23:27 -04:00
DoctorMacc
fc905c8d76
Re-implement as a constant 2020-09-26 17:21:57 -04:00
DoctorMacc
85c0811acf
Add an option to disable the automatic keep alive packet options
That way the clients/servers can more finely control the keep alive process.
2020-09-26 16:23:24 -04:00
DoctorMacc
ba0c6af56c
Merge latest master 2020-09-10 10:42:38 -04:00
DoctorMacc
fc0cc01e54
Update to 1.16.3 2020-09-10 10:36:36 -04:00
DoctorMacc
3dd0fd4679
Update for 1.16.3-rc1 2020-09-10 10:09:27 -04:00
Steveice10
6c66d7e27b Replace specifying proxy with specifying custom auth service clients. 2020-08-29 11:16:34 -07:00
DoctorMacc
564b0cc0e4
ClientPlayerAbilitiesPacket: fix flying 2020-08-27 22:26:37 -04:00
Mark Kennedy
7ccc9c32cf Dimension NBT cleanup 2020-08-12 23:56:17 +01:00
DoctorMacc
c29ca1d389 Fix incorrect value read/write in JoinGamePacket 2020-08-12 21:29:36 +01:00
D3ATHBRINGER13
1934c3e83d bump to full release 2020-08-11 15:13:01 +01:00
D3ATHBRINGER13
d0f1cac1b4
Merge pull request #4 from GeyserMC/feature/1.16.2
Feature/1.16.2
2020-08-11 01:54:51 +01:00
D3ATHBRINGER13
eefbf2802b Fix conflicts 2020-08-11 01:53:27 +01:00
DoctorMacc
82dcf31d03
Update to 1.16.2-rc2; add new entity statuses 2020-08-10 18:25:46 -04:00
DoctorMacc
2ee53b72d1
Fix join game test 2020-08-09 22:40:46 -04:00
DoctorMacc
7f43021d88
Add ignoreOldLight to ServerMultiBlockChangePacket 2020-08-07 20:36:38 -04:00
Mark Kennedy
1afe708af7
Bump to rc1 2020-08-07 20:34:57 -04:00
Mark Kennedy
22a0d1290b
Update to pre3 2020-08-07 20:34:44 -04:00
Mark Kennedy
c8a06b8fde Bump to rc1 2020-08-07 20:20:29 +01:00
Mark Kennedy
57a0a50448 Update to pre3 2020-08-07 16:17:45 +01:00
D3ATHBRINGER13
ef68b52248
Merge pull request #3 from GeyserMC/feature/1.16.2
Feature/1.16.2
2020-08-07 15:15:05 +01:00
DoctorMacc
da148409ff
Update to 1.16.2-pre2 2020-08-05 16:24:48 -04:00
DoctorMacc
e4546e3ee1
Add CommandParser.ANGLE; fix multi block change 2020-08-05 16:16:07 -04:00
DoctorMacc
7e20744931
Merge latest master 2020-08-05 16:07:23 -04:00
AJ Ferguson
7f952b5cc7 Code style 2020-07-31 11:33:58 -08:00
AJ Ferguson
9bcf62daf3 Add SoundEffect.BLOCK_SMITHING_TABLE_USE 2020-07-30 20:50:36 -08:00
AJ Ferguson
e2f3c5563c Add ParticleEffect.EVAPORATE
Used when a wet sponge is placed in the nether
2020-07-30 20:50:26 -08:00
AJ Ferguson
a3a896e066 Add DragonFireballEffectData 2020-07-30 20:01:30 -08:00
AJ Ferguson
7838085473 Fix SmokeEffectData magic values 2020-07-30 16:50:14 -08:00
D3ATHBRINGER13
b5926d5f95
Merge pull request #2 from GeyserMC/feature/1.16.2
Quick Fix
2020-07-30 00:36:08 +01:00
DoctorMacc
ba0c4e9ecd
Update to 1.16.2-pre1; fix swinging arm disconnecting 2020-07-29 19:26:00 -04:00
Mark Kennedy
27c4ae93b9 Bump to 1.16.2-pre1 2020-07-29 23:46:33 +01:00
XjCyan1de
d68a5c58aa
Fix ServerOpenHorseWindowPacket id 2020-07-29 20:27:52 +03:00
rtm516
41774b7260
Fix write of ClientSetDifficultyPacket 2020-07-27 20:07:51 +01:00
DoctorMacc
da45dc9165
20w30a 2020-07-24 10:37:32 -04:00
Mark Kennedy
97917c7b7d Merge remote-tracking branch 'origin/feature/1.16.2' into feature/1.16.2 2020-07-22 21:02:38 +01:00
Mark Kennedy
f0520fd362 Bump to 20w30a and add a sound I forgot 2020-07-22 21:01:29 +01:00
DoctorMacc
d45c08d2c4
Bump up protocol version; fix start game packet; fix entity numbering 2020-07-20 18:58:37 -04:00
Mark Kennedy
ef52234a46
Add piglin brute sounds and bump version 2020-07-20 18:30:13 -04:00
Mark Kennedy
2d65a9d3df Add piglin brute sounds and bump version 2020-07-20 15:08:31 +01:00
DoctorMacc
eb95f54d3d
Update chunk data packet (may not be finished) 2020-07-19 22:24:41 -04:00
DoctorMacc
63635274a4
Implement changes for ServerMultiBlockChangePacket 2020-07-19 21:57:46 -04:00
DoctorMacc
29402d2827
Fix MagicValues for CraftingBookStateType 2020-07-19 21:45:46 -04:00
DoctorMacc
57024e7e87
Clean up 2020-07-19 21:13:59 -04:00
Mark Kennedy
1ea5b07fb0 Update to 1.16.2
Start to update to 1.16.2
This is my first time working with packets, so sorry if there are a lot of issues.
2020-07-17 17:12:23 +01:00
Steveice10
46b46001f6 Remove equals and hashCode ignore from chunks and fix example. 2020-07-10 17:31:26 -07:00
Heath123
cf831e48af
Change variable names to fix build failure 2020-07-10 11:43:43 +01:00
Heath123
9996ede225
Actually fix FlexibleStorage thanks to @Johni0702
Co-authored-by: Jonas Herzig <me@johni0702.de>
2020-07-10 11:39:28 +01:00
Heath123
f03b458f40 Fix "set" in FlexibleStorage 2020-07-10 11:22:39 +01:00
rtm516
84735b8b6c Add HandPreference for better ClientSettingsPacket handling 2020-07-07 17:11:42 +01:00
DoctorMacc
5ae19c18d2 Move FlexibleStorage magic value constant to the beginning of the file 2020-07-02 17:59:48 -04:00
DoctorMacc
9d3bc72d8b Update Forge attributes 2020-07-02 17:55:45 -04:00
DoctorMacc
6aff3602c1 Final fixes 2020-07-02 17:43:17 -04:00
DoctorMacc
080055cb73 Remove the import, too. 2020-07-01 08:35:09 -04:00
DoctorMacc
06fe8d74c1 Remove @Nullable 2020-07-01 08:12:18 -04:00
DoctorMacc
f7235d65a2 Use Identifier for ServerEntityProperties; implement read and write methods for previous gamemode 2020-06-30 22:32:42 -04:00
DoctorMacc
10bb8e2744 Don't assert equipment item as null; read slot as byte and not int 2020-06-29 15:54:26 -04:00
rtm516
e4798a3861 Move to builder usage for HoverMessages 2020-06-29 13:23:47 +01:00
DoctorMacc
5c8a435832 Merge branch 'master' of https://github.com/Steveice10/MCProtocolLib into feature/1.16 2020-06-29 01:42:19 -04:00
Steveice10
0572ff9a3e Add method to copy messages into builders for modification. 2020-06-28 16:05:29 -07:00
rtm516
4f07aea25c Remove empty MessageStyle.java 2020-06-28 23:58:43 +01:00
rtm516
c88fac7156 Make suggested changes to Message related code 2020-06-28 23:44:26 +01:00
rtm516
74ee57a454 Fix ItemHoverMessage and add MessageSerializer.toJsonObject 2020-06-28 14:24:36 +01:00
rtm516
0ffcb7eb47 Add backwards compatability to HoverEvents
It now supports the depreciated value as well as the new contents
2020-06-28 13:06:08 +01:00
DoctorMacc
e9486c1220 Add UNDEFINED as a gamemode 2020-06-28 02:26:50 -04:00
DoctorMacc
ac50bdfdc2 Add test for ServerEntityEquipmentPacket and fix write method 2020-06-28 00:20:59 -04:00
RednedEpic
f88c15ee5c Add smithing WindowType 2020-06-27 22:59:19 -05:00
RednedEpic
2a70a11b07 Also add workaround for previous gamemode to ServerRespawnPacket 2020-06-27 22:55:47 -05:00
rtm516
762fca77e3 Fix HoverEvent messages 2020-06-26 23:20:09 +01:00
rtm516
b43dcab2e1 Remove unnecessary MessageSerializer function 2020-06-26 22:10:22 +01:00
rtm516
157133173c Fix messages with HoverEvents causing NPEs and unknown message errors 2020-06-26 21:49:37 +01:00
DoctorMacc
c2c8e2da2d Update ServerEntityEquipmentPacket 2020-06-25 21:47:11 -04:00
DoctorMacc
c614376c0c Add workaround for if previous gamemode is set to 255 2020-06-25 10:40:55 -04:00
DoctorMacc
f9d0a142a0 Work with namespaced and non-namespaced attribute values
Fixes CubeCraft and Mineplex servers
2020-06-24 22:04:27 -04:00
DoctorMacc
369120ac47 Read smithing crafting data 2020-06-24 19:19:25 -04:00
DoctorMacc
48a42d3e58 (Fully) remove beacon block value as it was likely removed 2020-06-24 11:12:10 -04:00
DoctorMacc
15d3b7436d Update for 1.16.1 2020-06-24 11:10:20 -04:00
DoctorMacc
d78305ef8d Remove debug line 2020-06-23 19:02:13 -04:00
DoctorMacc
c9494abc38 Add all known new block values 2020-06-23 19:01:09 -04:00
Tim203
b0229a67b5
Exclude chunks from the equals and hashcode method 2020-06-24 00:24:49 +02:00