Commit graph

948 commits

Author SHA1 Message Date
Konicai
8a7d7b196b
Merge remote-tracking branch 'upstream/master' into feature/math-2.0
# Conflicts:
#	pom.xml
#	src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodec.java
2022-12-14 17:47:15 -05:00
Camotoy
ed9d799316
Update hardcoded block values in BlockEventPacket 2022-12-13 14:01:15 -05:00
Camotoy
5506b94bf6 More precisely replicate GameMode encoding/decoding 2022-12-07 22:48:54 -05:00
Camotoy
2345f2b98f
Changes added in 1.19.3-rc3 2022-12-06 16:50:50 -05:00
Camotoy
3c88c3b072
Merge branch 'feature/1.19.3' 2022-12-05 20:03:28 -05:00
Camotoy
3599568c88
Prepare for release protocol 2022-12-05 19:59:22 -05:00
Konicai
e07e4b0280
Add SITTING to Pose enum (#715) 2022-12-05 10:03:43 -05:00
Camotoy
bb9b7e8299
Update to 1.19.3-rc1 2022-12-02 14:12:06 -05:00
D3ATHBRINGER13
685882b90a 1.19.3-pre3 2022-11-29 21:21:02 +00:00
D3ATHBRINGER13
58a9b169be Fix gamemode id and argument types 2022-11-24 23:47:39 +00:00
D3ATHBRINGER13
633d5bb789 Add missing block entities 2022-11-24 23:13:07 +00:00
Konicai
8fa1ddfe33
Oops on id 2022-11-22 22:51:00 -05:00
Konicai
72bfe03411
Fix packet order (move ServerboundChatSessionUpdatePacket) 2022-11-22 22:48:15 -05:00
D3ATHBRINGER13
c36283771a Tests 2022-11-22 23:44:11 +00:00
D3ATHBRINGER13
609aaf9222 Fix recipes 2022-11-22 23:31:37 +00:00
D3ATHBRINGER13
85cd8aebc1 Update to 1.19.3-pre1 2022-11-22 21:38:40 +00:00
D3ATHBRINGER13
6f635848c7 Update to 22w46a 2022-11-21 21:00:24 +00:00
D3ATHBRINGER13
5009e6d048 Update to 22w45a 2022-11-13 17:20:02 +00:00
D3ATHBRINGER13
48ea5a2c53
Update the example to 1.19.2 (#712)
* Update the example to 1.19.2 and fix the malformed network codec left in the tests.

* We really need to decide on a standard name for this.
2022-11-05 16:30:19 -04:00
D3ATHBRINGER13
60175aba20 You always forget something. 2022-11-05 20:22:55 +00:00
D3ATHBRINGER13
4d1331437e Update to 22w44a 2022-11-04 23:36:41 +00:00
RednedEpic
5b08627ed1 Return MinecraftCodecHelper in createHelper 2022-10-29 18:07:07 -05:00
RednedEpic
f12139274f Update to Cloudburst math 2.0 2022-10-29 16:19:20 -05:00
D3ATHBRINGER13
f520809b49 Fix ClientboundPlayerInfoUpdatePacket, small changes to ClientboundLoginPacket and update test 2022-10-26 22:41:23 +01:00
D3ATHBRINGER13
a9f2011dc3 Fix indentation and move PlayerListEntryAction away from MagicValues 2022-10-25 20:18:48 +01:00
D3ATHBRINGER13
88bcae65a9 22w42a - Part 1 2022-10-23 22:35:58 +01:00
WinPlay02
b81e2cdb29
Fix public key in ClientboundPlayerInfoPacket (#706) 2022-08-16 11:42:04 -04:00
Camotoy
5bea6839ed
Actually fix encryption 2022-07-31 10:01:19 -04:00
Camotoy
e8343eb144
MCProtocolLib listening for server encryption works 2022-07-30 19:26:57 -04:00
Camotoy
9f78bd564e
Typo fix 2022-07-27 16:50:03 -04:00
D3ATHBRINGER13
54e6f9e17f
1.19.1 (#702)
Co-authored-by: Camotoy <20743703+Camotoy@users.noreply.github.com>
2022-07-27 13:04:06 -04:00
Camotoy
6b6a007d7c
Update for Java 1.19.1 2022-06-27 21:54:43 -04:00
Camotoy
54fc9f0750
Rename MessageType; use Object2IntMap for Statistics 2022-06-15 18:28:40 -04:00
D3ATHBRINGER13
94b07ea44a
Cleanup MinecraftProtocolTest (#698)
* Cleanup MinecraftProtocolTest

* Use try-with-resources.
2022-06-13 17:56:43 -04:00
davchoo
bb2b4144a9
Fix ClientboundMerchantOffersPacket serialization and deserialization 2022-06-09 18:06:41 -04:00
Camotoy
3023c4d1b0
The MessageType registry is flexible 2022-06-08 22:26:01 -04:00
Camotoy
bf3919a3a3
Fix LevelEvent read/write 2022-06-07 15:05:45 -04:00
Camotoy
1e5477faf8
Update to 1.19 release 2022-06-06 22:46:19 -04:00
RednedEpic
22134b4a6a Allow setting registry into codec helper 2022-06-05 11:56:31 -05:00
RednedEpic
849c540e96 Merge remote-tracking branch 'origin/feature/1.19-packetlib-refactor' into feature/1.19 2022-06-05 11:37:39 -05:00
Camotoy
2308bd8def
Use more Fastutil 2022-06-04 10:11:03 -04:00
Camotoy
dfb471df99
Use Fastutil 2022-06-04 10:05:39 -04:00
Camotoy
0f46b3bcf0
Use Int2ObjectMap for LevelEvents 2022-06-03 20:17:17 -04:00
davchoo
b5661ecb31
Add Warden sonic boom entity event
Remove EntityEvent from MagicValues
2022-05-31 14:27:34 -04:00
Camotoy
7bb0c9b3dc
Change IRON_GOLEM_ATTACK to be ATTACK 2022-05-31 14:11:13 -04:00
davchoo
5096d90655
Store BuiltinSound in ClientboundSoundEntityPacket instead of a soundId
Use generated output for BuiltinSound.
Remove SoundCategory from MagicValues
2022-05-30 01:57:11 -04:00
RednedEpic
8b4a2aaac8 Don't rely on this data always being the same here 2022-05-29 19:51:36 -05:00
RednedEpic
056e54b8e5 Remove copilot comment 2022-05-29 19:49:17 -05:00
RednedEpic
5eac59d8f4 Update to PacketLib 3.0 2022-05-29 19:48:37 -05:00
RednedEpic
3a51f530c6 PacketLib 3.0
Changes:
- Removed NetInput/NetOutput and replaced them with ByteBuf
- Added PacketSerializer to PacketDefinition
- Added packet codecs which implementations can supply with custom readers/writers for buffers
2022-05-29 12:40:39 -05:00
davchoo
3e163501aa
Combine SoundEvent and ParticleEvent into LevelEvent
Remove them from MagicValues
Add new Sculk Block charge level event + event data
Add new Sculk Shrieker shriek level event
2022-05-26 19:57:21 -04:00
Camotoy
4dff74676b
Fix NPE if player info had no signed data 2022-05-26 17:53:38 -04:00
davchoo
938c86df4c Fix PaintingType order and remove them from MagicValues
PIGSCENE for some reason is missing an underscore on Java
2022-05-26 16:28:36 -04:00
davchoo
a63853f9e5 Update block ids in ClientboundBlockEventPacket 2022-05-26 15:27:08 -04:00
davchoo
e52abe7df2 Fix ParticleType decoding in ClientboundLevelParticlesPacket and add new ParticleTypes 2022-05-26 14:41:03 -04:00
Camotoy
f63752c00e
Add new poses 2022-05-26 13:19:21 -04:00
Camotoy
9255986c37
Don't use MagicValues for MessageType and fix player chat decoding 2022-05-25 19:34:32 -04:00
Camotoy
0a733c7139
Switch all Position instances to Vector3i 2022-05-25 19:17:37 -04:00
Camotoy
055d1f5269
Add Cloudburst Math; add metadata types; other fixes 2022-05-25 18:42:42 -04:00
D3ATHBRINGER13
62ba5aa8a2 Fix tests a bit 2022-05-25 21:20:25 +01:00
D3ATHBRINGER13
d0e98a0516 1.19-pre3 2022-05-25 17:45:51 +01:00
D3ATHBRINGER13
d4fa7b4458 1.19-pre2 2022-05-23 18:08:06 +01:00
D3ATHBRINGER13
54073a6cf9 Missed some 2022-05-20 13:26:02 +01:00
D3ATHBRINGER13
5cad78b15e Update enums 2022-05-19 21:19:24 +01:00
D3ATHBRINGER13
54c47dcc65 Actually fix building 2022-05-19 20:33:01 +01:00
D3ATHBRINGER13
6d09b95665 Fix building 2022-05-19 20:01:31 +01:00
D3ATHBRINGER13
29c230f71d Main packet changes up to 1.19-pre1 2022-05-19 19:51:22 +01:00
Camotoy
0771504e12 Use spaces instead of tabs for project consistency 2022-03-05 16:57:28 -05:00
John
835929d57d
Make title in ClientboundOpenScreenPacket a component (#688) 2022-03-05 16:56:57 -05:00
Camotoy
7efa6360dc
Merge branch 'feature/1.18.2' 2022-02-28 09:59:36 -05:00
Camotoy
cbf30881e8
Initial 1.18.2 update 2022-02-26 22:59:26 -05:00
John
7211f65060
Change modifier of setState method (#685) 2022-02-14 21:26:29 -06:00
D3ATHBRINGER13
f4f2ec09fe
Optimize imports (#687) 2022-02-14 21:26:12 -06:00
Hugo Planque
7ff2c930df
Fix Kqueue init (#44) 2022-02-01 10:42:20 -05:00
blablubbabc
15df12a61a
Fixed: Added missing MoveToHotbarAction value for the swap with off-hand inventory action. (#682) 2022-01-11 10:30:42 -05:00
Oskar
d908cccadf
Sync the future on wait (#43) 2022-01-08 22:14:02 -05:00
Camotoy
4e4d8af687
Temp revert "Sync the future on wait (#43)" for snapshot
This reverts commit a09d0fd00a.
2022-01-08 22:12:55 -05:00
Oskar
a09d0fd00a
Sync the future on wait (#43) 2022-01-04 22:45:41 -06:00
Oskar
50b53e8902
Add switch case for KQueue in TcpServer#bindImpl (#42) 2022-01-04 22:43:57 -06:00
DefineOutside
25b0e55a5e
Fix resizing a singleton palette (#681) 2022-01-04 22:40:00 -06:00
Camotoy
6a23a780af Update for latest PacketLib changes 2021-12-20 20:42:34 -05:00
Camotoy
4cb1588e3f Add option to validate decompression 2021-12-20 20:38:15 -05:00
Camotoy
c247b1fde8
NONE is not a TeamColor 2021-12-11 15:52:17 -05:00
David Choo
a991afe629
Store EntityType in entity statistics; rename GenericStatistic (#674) 2021-12-07 19:34:03 -05:00
Camotoy
69709912fe
Fix potential IndexOutOfBounds error with BlockDestructionPacket 2021-12-01 10:12:17 -05:00
Camotoy
bcd83c673a
Enable encryption in the server listener 2021-11-30 20:25:10 -05:00
Camotoy
6edba113e2
Gracefully handle invalid block entity types 2021-11-30 15:00:50 -05:00
Camotoy
ed29b72e27
Fix block marker particle encoding 2021-11-29 22:26:58 -05:00
RednedEpic
c3bda123fd Bump to 1.18 release 2021-11-29 21:21:48 -06:00
David Choo
f7f84e73cf
Rename entity types to match Java and move away from MagicValues (#669)
* Rename entity types to match Java and move away from MagicValues

Removed WeatherEntityType since it was unused since 1.16

Renamed:
MINECART_CHEST -> CHEST_MINECART
MINECART_COMMAND_BLOCK -> COMMAND_BLOCK_MINECART
MINECART_FURNACE -> FURNACE_MINECART
MINECART_HOPPER -> HOPPER_MINECART
MINECART_SPAWNER -> SPAWNER_MINECART
MINECART_TNT -> TNT_MINECART
PRIMED_TNT -> TNT
THROWN_EGG -> EGG
THROWN_ENDERPEARL -> ENDER_PEARL
THROWN_EXP_BOTTLE -> EXPERIENCE_BOTTLE
THROWN_POTION -> POTION

* Use readEnum in EntityType

* Fix HORIZONTAL_VALUES in Direction

This fixes painting direction in ClientboundAddPaintingPacket
2021-11-26 22:49:51 -05:00
Camotoy
7f7808e231 Update to 1.18-rc3 2021-11-26 11:49:59 -05:00
Camotoy
825804d194 Update for 1.18-rc1 2021-11-25 11:54:26 -05:00
Camotoy
8eca14983a Update for PacketLib changes 2021-11-24 23:33:39 -05:00
Camotoy
9e38c61927 Remove allocations for packet receive and send events
These were just replaced with functions that call the session and packet.
2021-11-24 23:32:14 -05:00
Camotoy
a581308cff Update for MCProtocolLib changes 2021-11-24 19:29:37 -05:00
Camotoy
67fb81e027 Reduce unnecessary checks and only add encryption when enabled 2021-11-24 19:29:19 -05:00
Camotoy
1125e22038 Fix setting same ID block in singleton palette 2021-11-24 12:28:58 -05:00
Camotoy
a61bcb97f7 Use a constructor parameter to determine clientsideness in packet encoder 2021-11-24 11:21:14 -05:00
Camotoy
7eb2748a03 Update to 1.18-pre8 2021-11-24 10:47:15 -05:00
Camotoy
b71a7e2fa8
Update to 1.18-pre7 2021-11-23 13:34:21 -05:00