1.21.2 update
~~Third snapshot was released last wednesday, so the release will probably still take some time.~~ ~~Rc1 was released on thursday, so the release will probably happen next week tuesday.~~ ~~This PR should be complete and ready, after testing.~~ Vanilla 1.21.2 and Spigot 1.21.2 are out, I've tested this PR on Fabric 1.21.2 and Spigot 1.21.2. Additionally, I've tested this PR on 1.20.6, 1.16.2 and 1.8.8.
TODO
- [x] Update all registry mappings
- [x] Update packet mappings
- [x] Implement
WrapperPlayServerRecipeBookSettings - [x] Implement every implementation of
RecipeDisplay... - [x] Mark old recipe wrappers as obsolete, mojang has completely rewritten them
- [x] Update packet serialization structures of existing packets
- [x] ClientboundExplodePacket :(
- [x] ClientboundPlaceGhostRecipePacket
- [x] ClientboundPlayerPositionPacket
- [x] ClientboundSetTimePacket
- [x] ClientboundTeleportEntityPacket
- [x] ClientboundUpdateRecipesPacket
- [x] CommonPlayerSpawnInfo -> respawn packet + login packet
- [x] ServerboundEditBookPacket limits?
- [x] ServerboundPlaceRecipePacket
- [x] ServerboundPlayerInputPacket
- [x] ServerboundRecipeBookSeenRecipePacket
- [x] ClientboundGameProfilePacket/ClientboundLoginFinishedPacket
- [x] Implement
- [x] Update block tags / item tags
- [x] early testing using on fabric
- see https://github.com/booky10/packetevents/tree/testing/fabric-1-21-2, combines this pr + #1032
- [x] Figure out how to handle attributes loosing their prefix
- [x] Check color nbt format for particles
Noteworthy changes:
- Custom recipe ingredients no longer allow for item components to be assigned, may affect something
- The player inventory or the item cursor can no longer be updated using magic numbers and normal slot change packets, this is now done with
WrapperPlayServerSetPlayerInventoryandWrapperPlayServerSetCursorItemrespectively- Packetevents "transforms" incorrectly used
WrapperPlayServerSetSlotpackets to these new packets for now
- Packetevents "transforms" incorrectly used
- Both the
BOATentity type andCHEST_BOATentity types have been split into separate entity types for each boat type - Packetevents no longer defines base components of item types in code, but loads a generated version-specific definition from file
Booky on it again 💪🏻 Extremely cool to see you constantly working on the latest snapshot support, so PacketEvents supports the latest Minecraft release almost the moment it drops!
I've tested re-encoding all packets (especially recipes) with a fabric server and fabric client, so this PR should be ready Should of course still be tested again after Paper (and Spigot) are done with upgrading to 1.21.2
1.21.2 has been released an hour ago and this PR has now been tested on Spigot 1.21.2.
Mojang has released 1.21.3, fixing crucial bugs, such as salmons being too small. Tthis PR should still work fine, nothing changed on the server side - except salmons of course