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