|
1 | 1 | package org.geysermc.mcprotocollib.protocol.codec; |
2 | 2 |
|
3 | 3 | import org.geysermc.mcprotocollib.protocol.data.ProtocolState; |
| 4 | +import org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundClearDialogPacket; |
4 | 5 | import org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket; |
5 | 6 | import org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundCustomReportDetailsPacket; |
6 | 7 | import org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundDisconnectPacket; |
|
21 | 22 | import org.geysermc.mcprotocollib.protocol.packet.configuration.clientbound.ClientboundRegistryDataPacket; |
22 | 23 | import org.geysermc.mcprotocollib.protocol.packet.configuration.clientbound.ClientboundResetChatPacket; |
23 | 24 | import org.geysermc.mcprotocollib.protocol.packet.configuration.clientbound.ClientboundSelectKnownPacks; |
| 25 | +import org.geysermc.mcprotocollib.protocol.packet.configuration.clientbound.ClientboundShowDialogConfigurationPacket; |
24 | 26 | import org.geysermc.mcprotocollib.protocol.packet.configuration.clientbound.ClientboundUpdateEnabledFeaturesPacket; |
25 | 27 | import org.geysermc.mcprotocollib.protocol.packet.configuration.serverbound.ServerboundFinishConfigurationPacket; |
26 | 28 | import org.geysermc.mcprotocollib.protocol.packet.configuration.serverbound.ServerboundSelectKnownPacks; |
|
49 | 51 | import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundSelectAdvancementsTabPacket; |
50 | 52 | import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundServerDataPacket; |
51 | 53 | import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundSetCameraPacket; |
| 54 | +import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundShowDialogGamePacket; |
52 | 55 | import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundSoundEntityPacket; |
53 | 56 | import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundStartConfigurationPacket; |
54 | 57 | import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundStopSoundPacket; |
|
156 | 159 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundClientTickEndPacket; |
157 | 160 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundCommandSuggestionPacket; |
158 | 161 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundConfigurationAcknowledgedPacket; |
| 162 | +import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundCustomClickActionPacket; |
159 | 163 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundDebugSampleSubscriptionPacket; |
160 | 164 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundLockDifficultyPacket; |
161 | 165 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundPlayerLoadedPacket; |
|
191 | 195 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.level.ServerboundSignUpdatePacket; |
192 | 196 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.level.ServerboundTeleportToEntityPacket; |
193 | 197 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.level.ServerboundTestInstanceBlockActionPacket; |
| 198 | +import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundChangeGameModePacket; |
194 | 199 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundInteractPacket; |
195 | 200 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundMovePlayerPosPacket; |
196 | 201 | import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundMovePlayerPosRotPacket; |
|
219 | 224 |
|
220 | 225 | public class MinecraftCodec { |
221 | 226 | public static final PacketCodec CODEC = PacketCodec.builder() |
222 | | - .protocolVersion((1 << 30) | 249) |
223 | | - .minecraftVersion("25w19a") |
| 227 | + .protocolVersion((1 << 30) | 250) |
| 228 | + .minecraftVersion("25w20a") |
224 | 229 | .state(ProtocolState.HANDSHAKE, MinecraftPacketRegistry.builder() |
225 | 230 | .registerServerboundPacket(ClientIntentionPacket.class, ClientIntentionPacket::new) |
226 | 231 | ) |
@@ -259,6 +264,8 @@ public class MinecraftCodec { |
259 | 264 | .registerClientboundPacket(ClientboundSelectKnownPacks.class, ClientboundSelectKnownPacks::new) |
260 | 265 | .registerClientboundPacket(ClientboundCustomReportDetailsPacket.class, ClientboundCustomReportDetailsPacket::new) |
261 | 266 | .registerClientboundPacket(ClientboundServerLinksPacket.class, ClientboundServerLinksPacket::new) |
| 267 | + .registerClientboundPacket(ClientboundClearDialogPacket.class, ClientboundClearDialogPacket::new) |
| 268 | + .registerClientboundPacket(ClientboundShowDialogConfigurationPacket.class, ClientboundShowDialogConfigurationPacket::new) |
262 | 269 | .registerServerboundPacket(ServerboundClientInformationPacket.class, ServerboundClientInformationPacket::new) |
263 | 270 | .registerServerboundPacket(ServerboundCookieResponsePacket.class, ServerboundCookieResponsePacket::new) |
264 | 271 | .registerServerboundPacket(ServerboundCustomPayloadPacket.class, ServerboundCustomPayloadPacket::new) |
@@ -400,10 +407,13 @@ public class MinecraftCodec { |
400 | 407 | .registerClientboundPacket(ClientboundCustomReportDetailsPacket.class, ClientboundCustomReportDetailsPacket::new) |
401 | 408 | .registerClientboundPacket(ClientboundServerLinksPacket.class, ClientboundServerLinksPacket::new) |
402 | 409 | .registerClientboundPacket(ClientboundTrackedWaypointPacket.class, ClientboundTrackedWaypointPacket::new) |
| 410 | + .registerClientboundPacket(ClientboundClearDialogPacket.class, ClientboundClearDialogPacket::new) |
| 411 | + .registerClientboundPacket(ClientboundShowDialogGamePacket.class, ClientboundShowDialogGamePacket::new) |
403 | 412 | .registerServerboundPacket(ServerboundAcceptTeleportationPacket.class, ServerboundAcceptTeleportationPacket::new) |
404 | 413 | .registerServerboundPacket(ServerboundBlockEntityTagQueryPacket.class, ServerboundBlockEntityTagQueryPacket::new) |
405 | 414 | .registerServerboundPacket(ServerboundSelectBundleItemPacket.class, ServerboundSelectBundleItemPacket::new) |
406 | 415 | .registerServerboundPacket(ServerboundChangeDifficultyPacket.class, ServerboundChangeDifficultyPacket::new) |
| 416 | + .registerServerboundPacket(ServerboundChangeGameModePacket.class, ServerboundChangeGameModePacket::new) |
407 | 417 | .registerServerboundPacket(ServerboundChatAckPacket.class, ServerboundChatAckPacket::new) |
408 | 418 | .registerServerboundPacket(ServerboundChatCommandPacket.class, ServerboundChatCommandPacket::new) |
409 | 419 | .registerServerboundPacket(ServerboundChatCommandSignedPacket.class, ServerboundChatCommandSignedPacket::new) |
@@ -464,6 +474,7 @@ public class MinecraftCodec { |
464 | 474 | .registerServerboundPacket(ServerboundTestInstanceBlockActionPacket.class, ServerboundTestInstanceBlockActionPacket::new) |
465 | 475 | .registerServerboundPacket(ServerboundUseItemOnPacket.class, ServerboundUseItemOnPacket::new) |
466 | 476 | .registerServerboundPacket(ServerboundUseItemPacket.class, ServerboundUseItemPacket::new) |
| 477 | + .registerServerboundPacket(ServerboundCustomClickActionPacket.class, ServerboundCustomClickActionPacket::new) |
467 | 478 | ) |
468 | 479 | .build(); |
469 | 480 | } |
0 commit comments