2023-04-10 21:52:30 +01:00
|
|
|
// https://wiki.vg/index.php?title=Protocol&oldid=488
|
|
|
|
export enum Packet {
|
2023-04-08 20:52:47 +01:00
|
|
|
KeepAlive = 0x00,
|
|
|
|
LoginRequest = 0x01,
|
|
|
|
Handshake = 0x02,
|
|
|
|
Chat = 0x03,
|
|
|
|
TimeUpdate = 0x04,
|
|
|
|
EntityEquipment = 0x05,
|
|
|
|
SpawnPosition = 0x06,
|
|
|
|
UseEntity = 0x07,
|
|
|
|
UpdateHealth = 0x08,
|
|
|
|
Respawn = 0x09,
|
|
|
|
Player = 0x0A,
|
|
|
|
PlayerPosition = 0x0B,
|
|
|
|
PlayerLook = 0x0C,
|
|
|
|
PlayerPositionLook = 0x0D,
|
2023-04-10 14:42:14 +01:00
|
|
|
PlayerDigging = 0x0E,
|
|
|
|
PlayerBlockPlacement = 0x0F,
|
|
|
|
HoldingChange = 0x10,
|
|
|
|
UseBed = 0x11,
|
|
|
|
Animation = 0x12,
|
|
|
|
EntityAction = 0x13,
|
|
|
|
NamedEntitySpawn = 0x14,
|
2023-04-10 21:52:30 +01:00
|
|
|
|
2023-11-05 10:55:49 +00:00
|
|
|
EntityVelocity = 0x1C,
|
|
|
|
DestroyEntity = 0x1D,
|
|
|
|
|
2023-08-20 01:17:37 +01:00
|
|
|
EntityStatus = 0x26,
|
2023-04-10 21:52:30 +01:00
|
|
|
EntityMetadata = 0x28,
|
2023-04-08 20:52:47 +01:00
|
|
|
|
|
|
|
PreChunk = 0x32,
|
|
|
|
MapChunk = 0x33,
|
2023-04-10 21:52:30 +01:00
|
|
|
MultiBlockChange = 0x34,
|
|
|
|
BlockChange = 0x035,
|
2023-04-08 20:52:47 +01:00
|
|
|
|
2023-04-10 14:42:14 +01:00
|
|
|
Entity = 0x1E,
|
|
|
|
EntityRelativeMove = 0x1F,
|
|
|
|
EntityLook = 0x20,
|
|
|
|
EntityLookRelativeMove = 0x21,
|
|
|
|
EntityTeleport = 0x22,
|
|
|
|
|
2023-10-29 05:08:26 +00:00
|
|
|
CloseWindow = 0x65,
|
|
|
|
WindowClick = 0x66,
|
|
|
|
SetSlot = 0x67,
|
|
|
|
WindowItems = 0x68,
|
|
|
|
|
2023-04-10 14:42:14 +01:00
|
|
|
DisconnectKick = 0xff
|
2023-04-08 20:52:47 +01:00
|
|
|
}
|