mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Update server-side packet id mappings
This commit is contained in:
parent
488bc9fd4e
commit
dcd1736a5c
1 changed files with 111 additions and 96 deletions
|
@ -489,40 +489,49 @@ public class MinecraftProtocol extends PacketProtocol {
|
|||
}
|
||||
|
||||
private void initServerGame(Session session) {
|
||||
// FIXME: Update by copying from above when that is done
|
||||
this.registerIncoming(0x00, ClientTeleportConfirmPacket.class);
|
||||
this.registerIncoming(0x01, ClientTabCompletePacket.class);
|
||||
this.registerIncoming(0x01, ClientBlockNBTRequestPacket.class);
|
||||
this.registerIncoming(0x02, ClientChatPacket.class);
|
||||
this.registerIncoming(0x03, ClientRequestPacket.class);
|
||||
this.registerIncoming(0x04, ClientSettingsPacket.class);
|
||||
this.registerIncoming(0x05, ClientConfirmTransactionPacket.class);
|
||||
this.registerIncoming(0x06, ClientEnchantItemPacket.class);
|
||||
this.registerIncoming(0x07, ClientWindowActionPacket.class);
|
||||
this.registerIncoming(0x08, ClientCloseWindowPacket.class);
|
||||
this.registerIncoming(0x09, ClientPluginMessagePacket.class);
|
||||
this.registerIncoming(0x0A, ClientPlayerInteractEntityPacket.class);
|
||||
this.registerIncoming(0x0B, ClientKeepAlivePacket.class);
|
||||
this.registerIncoming(0x0C, ClientPlayerMovementPacket.class);
|
||||
this.registerIncoming(0x0D, ClientPlayerPositionPacket.class);
|
||||
this.registerIncoming(0x0E, ClientPlayerPositionRotationPacket.class);
|
||||
this.registerIncoming(0x0F, ClientPlayerRotationPacket.class);
|
||||
this.registerIncoming(0x10, ClientVehicleMovePacket.class);
|
||||
this.registerIncoming(0x11, ClientSteerBoatPacket.class);
|
||||
this.registerIncoming(0x12, ClientPrepareCraftingGridPacket.class);
|
||||
this.registerIncoming(0x13, ClientPlayerAbilitiesPacket.class);
|
||||
this.registerIncoming(0x14, ClientPlayerActionPacket.class);
|
||||
this.registerIncoming(0x15, ClientPlayerStatePacket.class);
|
||||
this.registerIncoming(0x16, ClientSteerVehiclePacket.class);
|
||||
this.registerIncoming(0x17, ClientCraftingBookDataPacket.class);
|
||||
this.registerIncoming(0x18, ClientResourcePackStatusPacket.class);
|
||||
this.registerIncoming(0x19, ClientAdvancementTabPacket.class);
|
||||
this.registerIncoming(0x1A, ClientPlayerChangeHeldItemPacket.class);
|
||||
this.registerIncoming(0x1B, ClientCreativeInventoryActionPacket.class);
|
||||
this.registerIncoming(0x1C, ClientUpdateSignPacket.class);
|
||||
this.registerIncoming(0x1D, ClientPlayerSwingArmPacket.class);
|
||||
this.registerIncoming(0x1E, ClientSpectatePacket.class);
|
||||
this.registerIncoming(0x1F, ClientPlayerPlaceBlockPacket.class);
|
||||
this.registerIncoming(0x20, ClientPlayerUseItemPacket.class);
|
||||
this.registerIncoming(0x05, ClientTabCompletePacket.class);
|
||||
this.registerIncoming(0x06, ClientConfirmTransactionPacket.class);
|
||||
this.registerIncoming(0x07, ClientEnchantItemPacket.class);
|
||||
this.registerIncoming(0x08, ClientWindowActionPacket.class);
|
||||
this.registerIncoming(0x09, ClientCloseWindowPacket.class);
|
||||
this.registerIncoming(0x0A, ClientPluginMessagePacket.class);
|
||||
this.registerIncoming(0x0B, ClientEditBookPacket.class);
|
||||
this.registerIncoming(0x0C, ClientEntityNBTRequestPacket.class);
|
||||
this.registerIncoming(0x0D, ClientPlayerInteractEntityPacket.class);
|
||||
this.registerIncoming(0x0E, ClientKeepAlivePacket.class);
|
||||
this.registerIncoming(0x0F, ClientPlayerMovementPacket.class);
|
||||
this.registerIncoming(0x10, ClientPlayerPositionPacket.class);
|
||||
this.registerIncoming(0x11, ClientPlayerPositionRotationPacket.class);
|
||||
this.registerIncoming(0x12, ClientPlayerRotationPacket.class);
|
||||
this.registerIncoming(0x13, ClientVehicleMovePacket.class);
|
||||
this.registerIncoming(0x14, ClientSteerBoatPacket.class);
|
||||
this.registerIncoming(0x15, ClientMoveItemToHotbarPacket.class);
|
||||
this.registerIncoming(0x16, ClientPrepareCraftingGridPacket.class);
|
||||
this.registerIncoming(0x17, ClientPlayerAbilitiesPacket.class);
|
||||
this.registerIncoming(0x18, ClientPlayerActionPacket.class);
|
||||
this.registerIncoming(0x19, ClientPlayerStatePacket.class);
|
||||
this.registerIncoming(0x1A, ClientSteerVehiclePacket.class);
|
||||
this.registerIncoming(0x1B, ClientCraftingBookDataPacket.class);
|
||||
this.registerIncoming(0x1C, ClientRenameItemPacket.class);
|
||||
this.registerIncoming(0x1D, ClientResourcePackStatusPacket.class);
|
||||
this.registerIncoming(0x1E, ClientAdvancementTabPacket.class);
|
||||
this.registerIncoming(0x1F, ClientSelectTradePacket.class);
|
||||
this.registerIncoming(0x20, ClientSetBeaconEffectPacket.class);
|
||||
this.registerIncoming(0x21, ClientPlayerChangeHeldItemPacket.class);
|
||||
this.registerIncoming(0x22, ClientUpdateCommandBlockPacket.class);
|
||||
this.registerIncoming(0x23, ClientUpdateCommandBlockMinecartPacket.class);
|
||||
this.registerIncoming(0x24, ClientCreativeInventoryActionPacket.class);
|
||||
this.registerIncoming(0x25, ClientUpdateStructureBlockPacket.class);
|
||||
this.registerIncoming(0x26, ClientUpdateSignPacket.class);
|
||||
this.registerIncoming(0x27, ClientPlayerSwingArmPacket.class);
|
||||
this.registerIncoming(0x28, ClientSpectatePacket.class);
|
||||
this.registerIncoming(0x29, ClientPlayerPlaceBlockPacket.class);
|
||||
this.registerIncoming(0x2A, ClientPlayerUseItemPacket.class);
|
||||
|
||||
this.registerOutgoing(0x00, ServerSpawnObjectPacket.class);
|
||||
this.registerOutgoing(0x01, ServerSpawnExpOrbPacket.class);
|
||||
|
@ -538,72 +547,78 @@ public class MinecraftProtocol extends PacketProtocol {
|
|||
this.registerOutgoing(0x0B, ServerBlockChangePacket.class);
|
||||
this.registerOutgoing(0x0C, ServerBossBarPacket.class);
|
||||
this.registerOutgoing(0x0D, ServerDifficultyPacket.class);
|
||||
this.registerOutgoing(0x0E, ServerTabCompletePacket.class);
|
||||
this.registerOutgoing(0x0F, ServerChatPacket.class);
|
||||
this.registerOutgoing(0x10, ServerMultiBlockChangePacket.class);
|
||||
this.registerOutgoing(0x11, ServerConfirmTransactionPacket.class);
|
||||
this.registerOutgoing(0x12, ServerCloseWindowPacket.class);
|
||||
this.registerOutgoing(0x13, ServerOpenWindowPacket.class);
|
||||
this.registerOutgoing(0x14, ServerWindowItemsPacket.class);
|
||||
this.registerOutgoing(0x15, ServerWindowPropertyPacket.class);
|
||||
this.registerOutgoing(0x16, ServerSetSlotPacket.class);
|
||||
this.registerOutgoing(0x17, ServerSetCooldownPacket.class);
|
||||
this.registerOutgoing(0x18, ServerPluginMessagePacket.class);
|
||||
this.registerOutgoing(0x19, ServerPlaySoundPacket.class);
|
||||
this.registerOutgoing(0x1A, ServerDisconnectPacket.class);
|
||||
this.registerOutgoing(0x1B, ServerEntityStatusPacket.class);
|
||||
this.registerOutgoing(0x1C, ServerExplosionPacket.class);
|
||||
this.registerOutgoing(0x1D, ServerUnloadChunkPacket.class);
|
||||
this.registerOutgoing(0x1E, ServerNotifyClientPacket.class);
|
||||
this.registerOutgoing(0x1F, ServerKeepAlivePacket.class);
|
||||
this.registerOutgoing(0x20, ServerChunkDataPacket.class);
|
||||
this.registerOutgoing(0x21, ServerPlayEffectPacket.class);
|
||||
this.registerOutgoing(0x22, ServerSpawnParticlePacket.class);
|
||||
this.registerOutgoing(0x23, ServerJoinGamePacket.class);
|
||||
this.registerOutgoing(0x24, ServerMapDataPacket.class);
|
||||
this.registerOutgoing(0x25, ServerEntityMovementPacket.class);
|
||||
this.registerOutgoing(0x26, ServerEntityPositionPacket.class);
|
||||
this.registerOutgoing(0x27, ServerEntityPositionRotationPacket.class);
|
||||
this.registerOutgoing(0x28, ServerEntityRotationPacket.class);
|
||||
this.registerOutgoing(0x29, ServerVehicleMovePacket.class);
|
||||
this.registerOutgoing(0x2A, ServerOpenTileEntityEditorPacket.class);
|
||||
this.registerOutgoing(0x2B, ServerPreparedCraftingGridPacket.class);
|
||||
this.registerOutgoing(0x2C, ServerPlayerAbilitiesPacket.class);
|
||||
this.registerOutgoing(0x2D, ServerCombatPacket.class);
|
||||
this.registerOutgoing(0x2E, ServerPlayerListEntryPacket.class);
|
||||
this.registerOutgoing(0x2F, ServerPlayerPositionRotationPacket.class);
|
||||
this.registerOutgoing(0x30, ServerPlayerUseBedPacket.class);
|
||||
this.registerOutgoing(0x31, ServerUnlockRecipesPacket.class);
|
||||
this.registerOutgoing(0x32, ServerEntityDestroyPacket.class);
|
||||
this.registerOutgoing(0x33, ServerEntityRemoveEffectPacket.class);
|
||||
this.registerOutgoing(0x34, ServerResourcePackSendPacket.class);
|
||||
this.registerOutgoing(0x35, ServerRespawnPacket.class);
|
||||
this.registerOutgoing(0x36, ServerEntityHeadLookPacket.class);
|
||||
this.registerOutgoing(0x37, ServerAdvancementTabPacket.class);
|
||||
this.registerOutgoing(0x38, ServerWorldBorderPacket.class);
|
||||
this.registerOutgoing(0x39, ServerSwitchCameraPacket.class);
|
||||
this.registerOutgoing(0x3A, ServerPlayerChangeHeldItemPacket.class);
|
||||
this.registerOutgoing(0x3B, ServerDisplayScoreboardPacket.class);
|
||||
this.registerOutgoing(0x3C, ServerEntityMetadataPacket.class);
|
||||
this.registerOutgoing(0x3D, ServerEntityAttachPacket.class);
|
||||
this.registerOutgoing(0x3E, ServerEntityVelocityPacket.class);
|
||||
this.registerOutgoing(0x3F, ServerEntityEquipmentPacket.class);
|
||||
this.registerOutgoing(0x40, ServerPlayerSetExperiencePacket.class);
|
||||
this.registerOutgoing(0x41, ServerPlayerHealthPacket.class);
|
||||
this.registerOutgoing(0x42, ServerScoreboardObjectivePacket.class);
|
||||
this.registerOutgoing(0x43, ServerEntitySetPassengersPacket.class);
|
||||
this.registerOutgoing(0x44, ServerTeamPacket.class);
|
||||
this.registerOutgoing(0x45, ServerUpdateScorePacket.class);
|
||||
this.registerOutgoing(0x46, ServerSpawnPositionPacket.class);
|
||||
this.registerOutgoing(0x47, ServerUpdateTimePacket.class);
|
||||
this.registerOutgoing(0x48, ServerTitlePacket.class);
|
||||
this.registerOutgoing(0x49, ServerPlayBuiltinSoundPacket.class);
|
||||
this.registerOutgoing(0x4A, ServerPlayerListDataPacket.class);
|
||||
this.registerOutgoing(0x4B, ServerEntityCollectItemPacket.class);
|
||||
this.registerOutgoing(0x4C, ServerEntityTeleportPacket.class);
|
||||
this.registerOutgoing(0x4D, ServerAdvancementsPacket.class);
|
||||
this.registerOutgoing(0x4E, ServerEntityPropertiesPacket.class);
|
||||
this.registerOutgoing(0x4F, ServerEntityEffectPacket.class);
|
||||
this.registerOutgoing(0x0E, ServerChatPacket.class);
|
||||
this.registerOutgoing(0x0F, ServerMultiBlockChangePacket.class);
|
||||
this.registerOutgoing(0x10, ServerTabCompletePacket.class);
|
||||
this.registerOutgoing(0x11, ServerDeclareCommandsPacket.class);
|
||||
this.registerOutgoing(0x12, ServerConfirmTransactionPacket.class);
|
||||
this.registerOutgoing(0x13, ServerCloseWindowPacket.class);
|
||||
this.registerOutgoing(0x14, ServerOpenWindowPacket.class);
|
||||
this.registerOutgoing(0x15, ServerWindowItemsPacket.class);
|
||||
this.registerOutgoing(0x16, ServerWindowPropertyPacket.class);
|
||||
this.registerOutgoing(0x17, ServerSetSlotPacket.class);
|
||||
this.registerOutgoing(0x18, ServerSetCooldownPacket.class);
|
||||
this.registerOutgoing(0x19, ServerPluginMessagePacket.class);
|
||||
this.registerOutgoing(0x1A, ServerPlaySoundPacket.class);
|
||||
this.registerOutgoing(0x1B, ServerDisconnectPacket.class);
|
||||
this.registerOutgoing(0x1C, ServerEntityStatusPacket.class);
|
||||
this.registerOutgoing(0x1D, ServerNBTResponsePacket.class);
|
||||
this.registerOutgoing(0x1E, ServerExplosionPacket.class);
|
||||
this.registerOutgoing(0x1F, ServerUnloadChunkPacket.class);
|
||||
this.registerOutgoing(0x20, ServerNotifyClientPacket.class);
|
||||
this.registerOutgoing(0x21, ServerKeepAlivePacket.class);
|
||||
this.registerOutgoing(0x22, ServerChunkDataPacket.class);
|
||||
this.registerOutgoing(0x23, ServerPlayEffectPacket.class);
|
||||
this.registerOutgoing(0x24, ServerSpawnParticlePacket.class);
|
||||
this.registerOutgoing(0x25, ServerJoinGamePacket.class);
|
||||
this.registerOutgoing(0x26, ServerMapDataPacket.class);
|
||||
this.registerOutgoing(0x27, ServerEntityMovementPacket.class);
|
||||
this.registerOutgoing(0x28, ServerEntityPositionPacket.class);
|
||||
this.registerOutgoing(0x29, ServerEntityPositionRotationPacket.class);
|
||||
this.registerOutgoing(0x2A, ServerEntityRotationPacket.class);
|
||||
this.registerOutgoing(0x2B, ServerVehicleMovePacket.class);
|
||||
this.registerOutgoing(0x2C, ServerOpenTileEntityEditorPacket.class);
|
||||
this.registerOutgoing(0x2D, ServerPreparedCraftingGridPacket.class);
|
||||
this.registerOutgoing(0x2E, ServerPlayerAbilitiesPacket.class);
|
||||
this.registerOutgoing(0x2F, ServerCombatPacket.class);
|
||||
this.registerOutgoing(0x30, ServerPlayerListEntryPacket.class);
|
||||
this.registerOutgoing(0x31, ServerPlayerFacingPacket.class);
|
||||
this.registerOutgoing(0x32, ServerPlayerPositionRotationPacket.class);
|
||||
this.registerOutgoing(0x33, ServerPlayerUseBedPacket.class);
|
||||
this.registerOutgoing(0x34, ServerUnlockRecipesPacket.class);
|
||||
this.registerOutgoing(0x35, ServerEntityDestroyPacket.class);
|
||||
this.registerOutgoing(0x36, ServerEntityRemoveEffectPacket.class);
|
||||
this.registerOutgoing(0x37, ServerResourcePackSendPacket.class);
|
||||
this.registerOutgoing(0x38, ServerRespawnPacket.class);
|
||||
this.registerOutgoing(0x39, ServerEntityHeadLookPacket.class);
|
||||
this.registerOutgoing(0x3A, ServerAdvancementTabPacket.class);
|
||||
this.registerOutgoing(0x3B, ServerWorldBorderPacket.class);
|
||||
this.registerOutgoing(0x3C, ServerSwitchCameraPacket.class);
|
||||
this.registerOutgoing(0x3D, ServerPlayerChangeHeldItemPacket.class);
|
||||
this.registerOutgoing(0x3E, ServerDisplayScoreboardPacket.class);
|
||||
this.registerOutgoing(0x3F, ServerEntityMetadataPacket.class);
|
||||
this.registerOutgoing(0x40, ServerEntityAttachPacket.class);
|
||||
this.registerOutgoing(0x41, ServerEntityVelocityPacket.class);
|
||||
this.registerOutgoing(0x42, ServerEntityEquipmentPacket.class);
|
||||
this.registerOutgoing(0x43, ServerPlayerSetExperiencePacket.class);
|
||||
this.registerOutgoing(0x44, ServerPlayerHealthPacket.class);
|
||||
this.registerOutgoing(0x45, ServerScoreboardObjectivePacket.class);
|
||||
this.registerOutgoing(0x46, ServerEntitySetPassengersPacket.class);
|
||||
this.registerOutgoing(0x47, ServerTeamPacket.class);
|
||||
this.registerOutgoing(0x48, ServerUpdateScorePacket.class);
|
||||
this.registerOutgoing(0x49, ServerSpawnPositionPacket.class);
|
||||
this.registerOutgoing(0x4A, ServerUpdateTimePacket.class);
|
||||
this.registerOutgoing(0x4B, ServerTitlePacket.class);
|
||||
this.registerOutgoing(0x4C, ServerStopSoundPacket.class);
|
||||
this.registerOutgoing(0x4D, ServerPlayBuiltinSoundPacket.class);
|
||||
this.registerOutgoing(0x4E, ServerPlayerListDataPacket.class);
|
||||
this.registerOutgoing(0x4F, ServerEntityCollectItemPacket.class);
|
||||
this.registerOutgoing(0x50, ServerEntityTeleportPacket.class);
|
||||
this.registerOutgoing(0x51, ServerAdvancementsPacket.class);
|
||||
this.registerOutgoing(0x52, ServerEntityPropertiesPacket.class);
|
||||
this.registerOutgoing(0x53, ServerEntityEffectPacket.class);
|
||||
this.registerOutgoing(0x54, ServerDeclareRecipesPacket.class);
|
||||
this.registerOutgoing(0x55, ServerDeclareTagsPacket.class);
|
||||
}
|
||||
|
||||
private void initClientStatus(Session session) {
|
||||
|
|
Loading…
Reference in a new issue