1919import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundKeepAlivePacket ;
2020import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundPongPacket ;
2121import org .geysermc .mcprotocollib .protocol .packet .common .serverbound .ServerboundResourcePackPacket ;
22+ import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundCodeOfConductPacket ;
2223import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundFinishConfigurationPacket ;
2324import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundRegistryDataPacket ;
2425import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundResetChatPacket ;
2526import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundSelectKnownPacks ;
2627import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundShowDialogConfigurationPacket ;
2728import org .geysermc .mcprotocollib .protocol .packet .configuration .clientbound .ClientboundUpdateEnabledFeaturesPacket ;
29+ import org .geysermc .mcprotocollib .protocol .packet .configuration .serverbound .ServerboundAcceptCodeOfConductPacket ;
2830import org .geysermc .mcprotocollib .protocol .packet .configuration .serverbound .ServerboundFinishConfigurationPacket ;
2931import org .geysermc .mcprotocollib .protocol .packet .configuration .serverbound .ServerboundSelectKnownPacks ;
3032import org .geysermc .mcprotocollib .protocol .packet .cookie .clientbound .ClientboundCookieRequestPacket ;
3739import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundCommandsPacket ;
3840import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundCooldownPacket ;
3941import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundCustomChatCompletionsPacket ;
40- import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundDebugSamplePacket ;
42+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .debug . ClientboundDebugSamplePacket ;
4143import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundDeleteChatPacket ;
4244import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundDelimiterPacket ;
4345import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundDisguisedChatPacket ;
46+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundGameTestHighlightPosPacket ;
4447import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundLoginPacket ;
4548import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundPlayerChatPacket ;
4649import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundPlayerInfoRemovePacket ;
6366import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundTickingStepPacket ;
6467import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundUpdateAdvancementsPacket ;
6568import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .ClientboundUpdateRecipesPacket ;
69+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .debug .ClientboundDebugBlockValuePacket ;
70+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .debug .ClientboundDebugChunkValuePacket ;
71+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .debug .ClientboundDebugEntityValuePacket ;
72+ import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .debug .ClientboundDebugEventPacket ;
6673import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundAddEntityPacket ;
6774import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundAnimatePacket ;
6875import org .geysermc .mcprotocollib .protocol .packet .ingame .clientbound .entity .ClientboundDamageEventPacket ;
160167import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .ServerboundClientTickEndPacket ;
161168import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .ServerboundCommandSuggestionPacket ;
162169import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .ServerboundConfigurationAcknowledgedPacket ;
163- import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .ServerboundDebugSampleSubscriptionPacket ;
170+ import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .ServerboundDebugSubscriptionRequestPacket ;
164171import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .ServerboundLockDifficultyPacket ;
165172import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .ServerboundPlayerLoadedPacket ;
166173import org .geysermc .mcprotocollib .protocol .packet .ingame .serverbound .inventory .ServerboundContainerButtonClickPacket ;
224231
225232public class MinecraftCodec {
226233 public static final PacketCodec CODEC = PacketCodec .builder ()
227- .protocolVersion (772 )
228- .minecraftVersion ("1.21.7 " )
234+ .protocolVersion (773 )
235+ .minecraftVersion ("1.21.9 " )
229236 .state (ProtocolState .HANDSHAKE , MinecraftPacketRegistry .builder ()
230237 .registerServerboundPacket (ClientIntentionPacket .class , ClientIntentionPacket ::new )
231238 )
@@ -266,15 +273,17 @@ public class MinecraftCodec {
266273 .registerClientboundPacket (ClientboundServerLinksPacket .class , ClientboundServerLinksPacket ::new )
267274 .registerClientboundPacket (ClientboundClearDialogPacket .class , ClientboundClearDialogPacket ::new )
268275 .registerClientboundPacket (ClientboundShowDialogConfigurationPacket .class , ClientboundShowDialogConfigurationPacket ::new )
276+ .registerClientboundPacket (ClientboundCodeOfConductPacket .class , ClientboundCodeOfConductPacket ::new )
269277 .registerServerboundPacket (ServerboundClientInformationPacket .class , ServerboundClientInformationPacket ::new )
270278 .registerServerboundPacket (ServerboundCookieResponsePacket .class , ServerboundCookieResponsePacket ::new )
271279 .registerServerboundPacket (ServerboundCustomPayloadPacket .class , ServerboundCustomPayloadPacket ::new )
272- .registerServerboundPacket (ServerboundFinishConfigurationPacket .class , ServerboundFinishConfigurationPacket :: new )
280+ .registerServerboundPacket (ServerboundFinishConfigurationPacket .class , ( buf ) -> ServerboundFinishConfigurationPacket . INSTANCE )
273281 .registerServerboundPacket (ServerboundKeepAlivePacket .class , ServerboundKeepAlivePacket ::new )
274282 .registerServerboundPacket (ServerboundPongPacket .class , ServerboundPongPacket ::new )
275283 .registerServerboundPacket (ServerboundResourcePackPacket .class , ServerboundResourcePackPacket ::new )
276284 .registerServerboundPacket (ServerboundSelectKnownPacks .class , ServerboundSelectKnownPacks ::new )
277285 .registerServerboundPacket (ServerboundCustomClickActionPacket .class , ServerboundCustomClickActionPacket ::new )
286+ .registerServerboundPacket (ServerboundAcceptCodeOfConductPacket .class , (buf ) -> ServerboundAcceptCodeOfConductPacket .INSTANCE )
278287 ).state (ProtocolState .GAME , MinecraftPacketRegistry .builder ()
279288 .registerClientboundPacket (ClientboundDelimiterPacket .class , ClientboundDelimiterPacket ::new )
280289 .registerClientboundPacket (ClientboundAddEntityPacket .class , ClientboundAddEntityPacket ::new )
@@ -302,6 +311,10 @@ public class MinecraftCodec {
302311 .registerClientboundPacket (ClientboundCustomChatCompletionsPacket .class , ClientboundCustomChatCompletionsPacket ::new )
303312 .registerClientboundPacket (ClientboundCustomPayloadPacket .class , ClientboundCustomPayloadPacket ::new )
304313 .registerClientboundPacket (ClientboundDamageEventPacket .class , ClientboundDamageEventPacket ::new )
314+ .registerClientboundPacket (ClientboundDebugBlockValuePacket .class , ClientboundDebugBlockValuePacket ::new )
315+ .registerClientboundPacket (ClientboundDebugChunkValuePacket .class , ClientboundDebugChunkValuePacket ::new )
316+ .registerClientboundPacket (ClientboundDebugEntityValuePacket .class , ClientboundDebugEntityValuePacket ::new )
317+ .registerClientboundPacket (ClientboundDebugEventPacket .class , ClientboundDebugEventPacket ::new )
305318 .registerClientboundPacket (ClientboundDebugSamplePacket .class , ClientboundDebugSamplePacket ::new )
306319 .registerClientboundPacket (ClientboundDeleteChatPacket .class , ClientboundDeleteChatPacket ::new )
307320 .registerClientboundPacket (ClientboundDisconnectPacket .class , ClientboundDisconnectPacket ::new )
@@ -311,6 +324,7 @@ public class MinecraftCodec {
311324 .registerClientboundPacket (ClientboundExplodePacket .class , ClientboundExplodePacket ::new )
312325 .registerClientboundPacket (ClientboundForgetLevelChunkPacket .class , ClientboundForgetLevelChunkPacket ::new )
313326 .registerClientboundPacket (ClientboundGameEventPacket .class , ClientboundGameEventPacket ::new )
327+ .registerClientboundPacket (ClientboundGameTestHighlightPosPacket .class , ClientboundGameTestHighlightPosPacket ::new )
314328 .registerClientboundPacket (ClientboundHorseScreenOpenPacket .class , ClientboundHorseScreenOpenPacket ::new )
315329 .registerClientboundPacket (ClientboundHurtAnimationPacket .class , ClientboundHurtAnimationPacket ::new )
316330 .registerClientboundPacket (ClientboundInitializeBorderPacket .class , ClientboundInitializeBorderPacket ::new )
@@ -432,7 +446,7 @@ public class MinecraftCodec {
432446 .registerServerboundPacket (ServerboundContainerSlotStateChangedPacket .class , ServerboundContainerSlotStateChangedPacket ::new )
433447 .registerServerboundPacket (ServerboundCookieResponsePacket .class , ServerboundCookieResponsePacket ::new )
434448 .registerServerboundPacket (ServerboundCustomPayloadPacket .class , ServerboundCustomPayloadPacket ::new )
435- .registerServerboundPacket (ServerboundDebugSampleSubscriptionPacket .class , ServerboundDebugSampleSubscriptionPacket ::new )
449+ .registerServerboundPacket (ServerboundDebugSubscriptionRequestPacket .class , ServerboundDebugSubscriptionRequestPacket ::new )
436450 .registerServerboundPacket (ServerboundEditBookPacket .class , ServerboundEditBookPacket ::new )
437451 .registerServerboundPacket (ServerboundEntityTagQuery .class , ServerboundEntityTagQuery ::new )
438452 .registerServerboundPacket (ServerboundInteractPacket .class , ServerboundInteractPacket ::new )
0 commit comments