Commit graph

746 commits

Author SHA1 Message Date
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
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
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
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
blablubbabc
15df12a61a
Fixed: Added missing MoveToHotbarAction value for the swap with off-hand inventory action. (#682) 2022-01-11 10:30:42 -05: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
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