11package org .geysermc .mcprotocollib .protocol .codec ;
22
33import org .geysermc .mcprotocollib .protocol .data .ProtocolState ;
4+ import org .geysermc .mcprotocollib .protocol .packet .common .clientbound .ClientboundClearDialogPacket ;
45import org .geysermc .mcprotocollib .protocol .packet .common .clientbound .ClientboundCustomPayloadPacket ;
56import org .geysermc .mcprotocollib .protocol .packet .common .clientbound .ClientboundCustomReportDetailsPacket ;
67import org .geysermc .mcprotocollib .protocol .packet .common .clientbound .ClientboundDisconnectPacket ;
1314import org .geysermc .mcprotocollib .protocol .packet .common .clientbound .ClientboundTransferPacket ;
1415import org .geysermc .mcprotocollib .protocol .packet .common .clientbound .ClientboundUpdateTagsPacket ;
1516import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundClientInformationPacket ;
17+ import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundCustomClickActionPacket ;
1618import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundCustomPayloadPacket ;
1719import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundKeepAlivePacket ;
1820import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundPongPacket ;
2123import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundRegistryDataPacket ;
2224import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundResetChatPacket ;
2325import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundSelectKnownPacks ;
26+ import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundShowDialogConfigurationPacket ;
2427import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundUpdateEnabledFeaturesPacket ;
2528import org .geysermc .mcprotocollib .protocol .packet .configuration .serverbound .ServerboundFinishConfigurationPacket ;
2629import org .geysermc .mcprotocollib .protocol .packet .configuration .serverbound .ServerboundSelectKnownPacks ;
4952import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundSelectAdvancementsTabPacket ;
5053import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundServerDataPacket ;
5154import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundSetCameraPacket ;
55+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundShowDialogGamePacket ;
5256import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundSoundEntityPacket ;
5357import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundStartConfigurationPacket ;
5458import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundStopSoundPacket ;
5963import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundTickingStepPacket ;
6064import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundUpdateAdvancementsPacket ;
6165import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundUpdateRecipesPacket ;
66+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundAddEntityPacket ;
6267import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundAnimatePacket ;
6368import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundDamageEventPacket ;
6469import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundEntityEventPacket ;
9398import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .player .ClientboundSetExperiencePacket ;
9499import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .player .ClientboundSetHealthPacket ;
95100import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .player .ClientboundSetHeldSlotPacket ;
96- import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundAddEntityPacket ;
97101import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .inventory .ClientboundContainerClosePacket ;
98102import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .inventory .ClientboundContainerSetContentPacket ;
99103import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .inventory .ClientboundContainerSetDataPacket ;
129133import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .level .ClientboundSetTimePacket ;
130134import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .level .ClientboundSoundPacket ;
131135import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .level .ClientboundTagQueryPacket ;
136+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .level .ClientboundTrackedWaypointPacket ;
132137import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .level .border .ClientboundInitializeBorderPacket ;
133138import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .level .border .ClientboundSetBorderCenterPacket ;
134139import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .level .border .ClientboundSetBorderLerpSizePacket ;
190195import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .level .ServerboundSignUpdatePacket ;
191196import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .level .ServerboundTeleportToEntityPacket ;
192197import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .level .ServerboundTestInstanceBlockActionPacket ;
198+ import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .player .ServerboundChangeGameModePacket ;
193199import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .player .ServerboundInteractPacket ;
194200import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .player .ServerboundMovePlayerPosPacket ;
195201import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .player .ServerboundMovePlayerPosRotPacket ;
218224
219225public class MinecraftCodec {
220226 public static final PacketCodec CODEC = PacketCodec .builder ()
221- .protocolVersion (770 )
222- .minecraftVersion ("1.21.5 " )
227+ .protocolVersion (771 )
228+ .minecraftVersion ("1.21.6 " )
223229 .state (ProtocolState .HANDSHAKE , MinecraftPacketRegistry .builder ()
224230 .registerServerboundPacket (ClientIntentionPacket .class , ClientIntentionPacket ::new )
225231 )
@@ -258,6 +264,8 @@ public class MinecraftCodec {
258264 .registerClientboundPacket (ClientboundSelectKnownPacks .class , ClientboundSelectKnownPacks ::new )
259265 .registerClientboundPacket (ClientboundCustomReportDetailsPacket .class , ClientboundCustomReportDetailsPacket ::new )
260266 .registerClientboundPacket (ClientboundServerLinksPacket .class , ClientboundServerLinksPacket ::new )
267+ .registerClientboundPacket (ClientboundClearDialogPacket .class , ClientboundClearDialogPacket ::new )
268+ .registerClientboundPacket (ClientboundShowDialogConfigurationPacket .class , ClientboundShowDialogConfigurationPacket ::new )
261269 .registerServerboundPacket (ServerboundClientInformationPacket .class , ServerboundClientInformationPacket ::new )
262270 .registerServerboundPacket (ServerboundCookieResponsePacket .class , ServerboundCookieResponsePacket ::new )
263271 .registerServerboundPacket (ServerboundCustomPayloadPacket .class , ServerboundCustomPayloadPacket ::new )
@@ -266,6 +274,7 @@ public class MinecraftCodec {
266274 .registerServerboundPacket (ServerboundPongPacket .class , ServerboundPongPacket ::new )
267275 .registerServerboundPacket (ServerboundResourcePackPacket .class , ServerboundResourcePackPacket ::new )
268276 .registerServerboundPacket (ServerboundSelectKnownPacks .class , ServerboundSelectKnownPacks ::new )
277+ .registerServerboundPacket (ServerboundCustomClickActionPacket .class , ServerboundCustomClickActionPacket ::new )
269278 ).state (ProtocolState .GAME , MinecraftPacketRegistry .builder ()
270279 .registerClientboundPacket (ClientboundDelimiterPacket .class , ClientboundDelimiterPacket ::new )
271280 .registerClientboundPacket (ClientboundAddEntityPacket .class , ClientboundAddEntityPacket ::new )
@@ -398,10 +407,14 @@ public class MinecraftCodec {
398407 .registerClientboundPacket (ClientboundProjectilePowerPacket .class , ClientboundProjectilePowerPacket ::new )
399408 .registerClientboundPacket (ClientboundCustomReportDetailsPacket .class , ClientboundCustomReportDetailsPacket ::new )
400409 .registerClientboundPacket (ClientboundServerLinksPacket .class , ClientboundServerLinksPacket ::new )
410+ .registerClientboundPacket (ClientboundTrackedWaypointPacket .class , ClientboundTrackedWaypointPacket ::new )
411+ .registerClientboundPacket (ClientboundClearDialogPacket .class , ClientboundClearDialogPacket ::new )
412+ .registerClientboundPacket (ClientboundShowDialogGamePacket .class , ClientboundShowDialogGamePacket ::new )
401413 .registerServerboundPacket (ServerboundAcceptTeleportationPacket .class , ServerboundAcceptTeleportationPacket ::new )
402414 .registerServerboundPacket (ServerboundBlockEntityTagQueryPacket .class , ServerboundBlockEntityTagQueryPacket ::new )
403415 .registerServerboundPacket (ServerboundSelectBundleItemPacket .class , ServerboundSelectBundleItemPacket ::new )
404416 .registerServerboundPacket (ServerboundChangeDifficultyPacket .class , ServerboundChangeDifficultyPacket ::new )
417+ .registerServerboundPacket (ServerboundChangeGameModePacket .class , ServerboundChangeGameModePacket ::new )
405418 .registerServerboundPacket (ServerboundChatAckPacket .class , ServerboundChatAckPacket ::new )
406419 .registerServerboundPacket (ServerboundChatCommandPacket .class , ServerboundChatCommandPacket ::new )
407420 .registerServerboundPacket (ServerboundChatCommandSignedPacket .class , ServerboundChatCommandSignedPacket ::new )
@@ -462,6 +475,7 @@ public class MinecraftCodec {
462475 .registerServerboundPacket (ServerboundTestInstanceBlockActionPacket .class , ServerboundTestInstanceBlockActionPacket ::new )
463476 .registerServerboundPacket (ServerboundUseItemOnPacket .class , ServerboundUseItemOnPacket ::new )
464477 .registerServerboundPacket (ServerboundUseItemPacket .class , ServerboundUseItemPacket ::new )
478+ .registerServerboundPacket (ServerboundCustomClickActionPacket .class , ServerboundCustomClickActionPacket ::new )
465479 )
466480 .build ();
467481}
0 commit comments