mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Sort packet type
This commit is contained in:
parent
7b68c0c45a
commit
5d05fc1d53
2 changed files with 180 additions and 188 deletions
|
|
@ -10,133 +10,129 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
/// </summary>
|
||||
public enum PacketTypesIn
|
||||
{
|
||||
SpawnEntity,
|
||||
SpawnExperienceOrb,
|
||||
SpawnWeatherEntity,
|
||||
SpawnLivingEntity,
|
||||
SpawnPainting,
|
||||
SpawnPlayer,
|
||||
EntityAnimation,
|
||||
Statistics,
|
||||
AcknowledgePlayerDigging,
|
||||
BlockBreakAnimation,
|
||||
BlockEntityData,
|
||||
BlockAction,
|
||||
BlockChange,
|
||||
BossBar,
|
||||
ServerDifficulty,
|
||||
ChatMessage,
|
||||
MultiBlockChange,
|
||||
TabComplete,
|
||||
DeclareCommands,
|
||||
WindowConfirmation,
|
||||
CloseWindow,
|
||||
WindowItems,
|
||||
WindowProperty,
|
||||
SetSlot,
|
||||
SetCooldown,
|
||||
PluginMessage,
|
||||
NamedSoundEffect,
|
||||
Disconnect,
|
||||
EntityStatus,
|
||||
Explosion,
|
||||
UnloadChunk,
|
||||
ChangeGameState,
|
||||
OpenHorseWindow,
|
||||
KeepAlive,
|
||||
ChunkData,
|
||||
Effect,
|
||||
Particle,
|
||||
UpdateLight,
|
||||
JoinGame,
|
||||
MapData,
|
||||
TradeList,
|
||||
EntityPosition,
|
||||
EntityPositionAndRotation,
|
||||
EntityRotation,
|
||||
EntityMovement,
|
||||
VehicleMove,
|
||||
OpenBook,
|
||||
OpenWindow,
|
||||
OpenSignEditor,
|
||||
CraftRecipeResponse,
|
||||
PlayerAbilities,
|
||||
CombatEvent,
|
||||
PlayerInfo,
|
||||
FacePlayer,
|
||||
PlayerPositionAndLook,
|
||||
UnlockRecipes,
|
||||
DestroyEntities,
|
||||
RemoveEntityEffect,
|
||||
ResourcePackSend,
|
||||
Respawn,
|
||||
EntityHeadLook,
|
||||
SelectAdvancementTab,
|
||||
WorldBorder,
|
||||
Camera,
|
||||
HeldItemChange,
|
||||
UpdateViewPosition,
|
||||
UpdateViewDistance,
|
||||
DisplayScoreboard,
|
||||
EntityMetadata,
|
||||
AttachEntity,
|
||||
EntityVelocity,
|
||||
EntityEquipment,
|
||||
SetExperience,
|
||||
UpdateHealth,
|
||||
ScoreboardObjective,
|
||||
SetPassengers,
|
||||
Teams,
|
||||
UpdateScore,
|
||||
SpawnPosition,
|
||||
TimeUpdate,
|
||||
Title,
|
||||
EntitySoundEffect,
|
||||
SoundEffect,
|
||||
StopSound,
|
||||
PlayerListHeaderAndFooter,
|
||||
NBTQueryResponse,
|
||||
CollectItem,
|
||||
EntityTeleport,
|
||||
Advancements,
|
||||
EntityProperties,
|
||||
EntityEffect,
|
||||
DeclareRecipes,
|
||||
SetTitleTime,
|
||||
SetTitleText,
|
||||
SetTitleSubTitle,
|
||||
WorldBorderWarningReach,
|
||||
WorldBorderWarningDelay,
|
||||
WorldBorderSize,
|
||||
WorldBorderLerpSize,
|
||||
WorldBorderCenter,
|
||||
ActionBar,
|
||||
Tags,
|
||||
DeathCombatEvent,
|
||||
EnterCombatEvent,
|
||||
EndCombatEvent,
|
||||
Ping,
|
||||
InitializeWorldBorder,
|
||||
SkulkVibrationSignal,
|
||||
ClearTiles,
|
||||
UseBed, // For 1.13.2 or below
|
||||
AcknowledgePlayerDigging, //
|
||||
ActionBar, //
|
||||
Advancements, //
|
||||
AttachEntity, //
|
||||
BlockAction, //
|
||||
BlockBreakAnimation, //
|
||||
BlockChange, //
|
||||
BlockChangedAck, // Added in 1.19
|
||||
BlockEntityData, //
|
||||
BossBar, //
|
||||
Camera, //
|
||||
ChangeGameState, //
|
||||
ChatMessage, //
|
||||
ChatPreview, // Added in 1.19
|
||||
ChatSuggestions, // Added in 1.19.1 (1.19.2)
|
||||
ChunkData, //
|
||||
ClearTiles, //
|
||||
CloseWindow, //
|
||||
CollectItem, //
|
||||
CombatEvent, //
|
||||
CraftRecipeResponse, //
|
||||
DeathCombatEvent, //
|
||||
DeclareCommands, //
|
||||
DeclareRecipes, //
|
||||
DestroyEntities, //
|
||||
Disconnect, //
|
||||
DisplayScoreboard, //
|
||||
Effect, //
|
||||
EndCombatEvent, //
|
||||
EnterCombatEvent, //
|
||||
EntityAnimation, //
|
||||
EntityEffect, //
|
||||
EntityEquipment, //
|
||||
EntityHeadLook, //
|
||||
EntityMetadata, //
|
||||
EntityMovement, //
|
||||
EntityPosition, //
|
||||
EntityPositionAndRotation, //
|
||||
EntityProperties, //
|
||||
EntityRotation, //
|
||||
EntitySoundEffect, //
|
||||
EntityStatus, //
|
||||
EntityTeleport, //
|
||||
EntityVelocity, //
|
||||
Explosion, //
|
||||
FacePlayer, //
|
||||
HeldItemChange, //
|
||||
HideMessage, // Added in 1.19.1 (1.19.2)
|
||||
InitializeWorldBorder, //
|
||||
JoinGame, //
|
||||
KeepAlive, //
|
||||
MapChunkBulk, // For 1.8 or below
|
||||
MapData, //
|
||||
MessageHeader, // Added in 1.19.1 (1.19.2)
|
||||
MultiBlockChange, //
|
||||
NamedSoundEffect, //
|
||||
NBTQueryResponse, //
|
||||
OpenBook, //
|
||||
OpenHorseWindow, //
|
||||
OpenSignEditor, //
|
||||
OpenWindow, //
|
||||
Particle, //
|
||||
Ping, //
|
||||
PlayerAbilities, //
|
||||
PlayerInfo, //
|
||||
PlayerListHeaderAndFooter, //
|
||||
PlayerPositionAndLook, //
|
||||
PluginMessage, //
|
||||
RemoveEntityEffect, //
|
||||
ResourcePackSend, //
|
||||
Respawn, //
|
||||
ScoreboardObjective, //
|
||||
SelectAdvancementTab, //
|
||||
ServerData, // Added in 1.19
|
||||
ServerDifficulty, //
|
||||
SetCompression, // For 1.8 or below
|
||||
UpdateSign, // For 1.8 or below
|
||||
UpdateEntityNBT, // For 1.8 or below
|
||||
SetCooldown, //
|
||||
SetDisplayChatPreview, // Added in 1.19
|
||||
SetExperience, //
|
||||
SetPassengers, //
|
||||
SetSlot, //
|
||||
SetTitleSubTitle, //
|
||||
SetTitleText, //
|
||||
SetTitleTime, //
|
||||
SkulkVibrationSignal, //
|
||||
SoundEffect, //
|
||||
SpawnEntity, //
|
||||
SpawnExperienceOrb, //
|
||||
SpawnLivingEntity, //
|
||||
SpawnPainting, //
|
||||
SpawnPlayer, //
|
||||
SpawnPosition, //
|
||||
SpawnWeatherEntity, //
|
||||
Statistics, //
|
||||
StopSound, //
|
||||
SystemChat, // Added in 1.19
|
||||
TabComplete, //
|
||||
Tags, //
|
||||
Teams, //
|
||||
TimeUpdate, //
|
||||
Title, //
|
||||
TradeList, //
|
||||
Unknown, // For old version packet that have been removed and not used by mcc
|
||||
UpdateSimulationDistance,
|
||||
|
||||
// 1.19 Additions
|
||||
BlockChangedAck,
|
||||
ChatPreview,
|
||||
ServerData,
|
||||
SetDisplayChatPreview,
|
||||
SystemChat,
|
||||
|
||||
// Added in 1.19.1 (1.19.2)
|
||||
ChatSuggestions,
|
||||
HideMessage,
|
||||
MessageHeader
|
||||
UnloadChunk, //
|
||||
UnlockRecipes, //
|
||||
UpdateEntityNBT, // For 1.8 or below
|
||||
UpdateHealth, //
|
||||
UpdateLight, //
|
||||
UpdateScore, //
|
||||
UpdateSign, // For 1.8 or below
|
||||
UpdateSimulationDistance, //
|
||||
UpdateViewDistance, //
|
||||
UpdateViewPosition, //
|
||||
UseBed, // For 1.13.2 or below
|
||||
VehicleMove, //
|
||||
WindowConfirmation, //
|
||||
WindowItems, //
|
||||
WindowProperty, //
|
||||
WorldBorder, //
|
||||
WorldBorderCenter, //
|
||||
WorldBorderLerpSize, //
|
||||
WorldBorderSize, //
|
||||
WorldBorderWarningDelay, //
|
||||
WorldBorderWarningReach, //
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,65 +10,61 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
/// </summary>
|
||||
public enum PacketTypesOut
|
||||
{
|
||||
TeleportConfirm,
|
||||
QueryBlockNBT,
|
||||
SetDifficulty,
|
||||
ChatMessage,
|
||||
ClientStatus,
|
||||
ClientSettings,
|
||||
TabComplete,
|
||||
WindowConfirmation,
|
||||
ClickWindowButton,
|
||||
ClickWindow,
|
||||
CloseWindow,
|
||||
PluginMessage,
|
||||
EditBook,
|
||||
EntityNBTRequest,
|
||||
InteractEntity,
|
||||
KeepAlive,
|
||||
LockDifficulty,
|
||||
PlayerPosition,
|
||||
PlayerPositionAndRotation,
|
||||
PlayerRotation,
|
||||
PlayerMovement,
|
||||
VehicleMove,
|
||||
SteerBoat,
|
||||
PickItem,
|
||||
CraftRecipeRequest,
|
||||
PlayerAbilities,
|
||||
PlayerDigging,
|
||||
EntityAction,
|
||||
SteerVehicle,
|
||||
RecipeBookData,
|
||||
NameItem,
|
||||
ResourcePackStatus,
|
||||
AdvancementTab,
|
||||
SelectTrade,
|
||||
SetBeaconEffect,
|
||||
HeldItemChange,
|
||||
UpdateCommandBlock,
|
||||
UpdateCommandBlockMinecart,
|
||||
CreativeInventoryAction,
|
||||
UpdateJigsawBlock,
|
||||
UpdateStructureBlock,
|
||||
UpdateSign,
|
||||
Animation,
|
||||
Spectate,
|
||||
PlayerBlockPlacement,
|
||||
UseItem,
|
||||
Pong,
|
||||
PrepareCraftingGrid, // For 1.12 - 1.12.1 only
|
||||
AdvancementTab, //
|
||||
Animation, //
|
||||
ChatCommand, // Added in 1.19
|
||||
ChatMessage, //
|
||||
ChatPreview, // Added in 1.19
|
||||
ClickWindow, //
|
||||
ClickWindowButton, //
|
||||
ClientSettings, //
|
||||
ClientStatus, //
|
||||
CloseWindow, //
|
||||
CraftRecipeRequest, //
|
||||
CreativeInventoryAction, //
|
||||
EditBook, //
|
||||
EnchantItem, // For 1.13.2 or below
|
||||
EntityAction, //
|
||||
EntityNBTRequest, //
|
||||
GenerateStructure, // Added in 1.16
|
||||
HeldItemChange, //
|
||||
InteractEntity, //
|
||||
KeepAlive, //
|
||||
LockDifficulty, //
|
||||
MessageAcknowledgment, // Added in 1.19.1 (1.19.2)
|
||||
NameItem, //
|
||||
PickItem, //
|
||||
PlayerAbilities, //
|
||||
PlayerBlockPlacement, //
|
||||
PlayerDigging, //
|
||||
PlayerMovement, //
|
||||
PlayerPosition, //
|
||||
PlayerPositionAndRotation, //
|
||||
PlayerRotation, //
|
||||
PluginMessage, //
|
||||
Pong, //
|
||||
PrepareCraftingGrid, // For 1.12 - 1.12.1 only
|
||||
QueryBlockNBT, //
|
||||
RecipeBookData, //
|
||||
ResourcePackStatus, //
|
||||
SelectTrade, //
|
||||
SetBeaconEffect, //
|
||||
SetDifficulty, //
|
||||
SetDisplayedRecipe, // Added in 1.16.2
|
||||
SetRecipeBookState, // Added in 1.16.2
|
||||
Spectate, //
|
||||
SteerBoat, //
|
||||
SteerVehicle, //
|
||||
TabComplete, //
|
||||
TeleportConfirm, //
|
||||
Unknown, // For old version packet that have been removed and not used by mcc
|
||||
|
||||
// Added in 1.19
|
||||
ChatCommand,
|
||||
ChatPreview,
|
||||
|
||||
// Added in 1.19.1 (1.19.2)
|
||||
MessageAcknowledgment
|
||||
UpdateCommandBlock, //
|
||||
UpdateCommandBlockMinecart, //
|
||||
UpdateJigsawBlock, //
|
||||
UpdateSign, //
|
||||
UpdateStructureBlock, //
|
||||
UseItem, //
|
||||
VehicleMove, //
|
||||
WindowConfirmation, //
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue