69 lines
No EOL
1.5 KiB
JavaScript
69 lines
No EOL
1.5 KiB
JavaScript
/*
|
|
===========- NamedPackets.js -==========
|
|
Created by Holly (tgpethan) (c) 2021
|
|
Licenced under MIT
|
|
========================================
|
|
*/
|
|
|
|
const namedPackets = {
|
|
"Disconnect": -1,
|
|
"KeepAlive": 0x00,
|
|
"LoginRequest": 0x01,
|
|
"Handshake": 0x02,
|
|
"ChatMessage": 0x03,
|
|
"TimeUpdate": 0x04,
|
|
"EntityEquipment": 0x05,
|
|
"SpawnPosition": 0x06,
|
|
"UseEntity": 0x07,
|
|
"UpdateHealth": 0x08,
|
|
"Respawn": 0x09,
|
|
"Player": 0x0A,
|
|
"PlayerPosition": 0x0B,
|
|
"PlayerLook": 0x0C,
|
|
"PlayerPositionAndLook": 0x0D,
|
|
"PlayerDigging": 0x0E,
|
|
"PlayerBlockPlacement": 0x0F,
|
|
"HoldingChange": 0x10,
|
|
"UseBed": 0x11,
|
|
"Animation": 0x12,
|
|
"EntityAction": 0x13,
|
|
"NamedEntitySpawn": 0x14,
|
|
"PickupSpawn": 0x15,
|
|
"CollectItem": 0x16,
|
|
"AddObjectOrVehicle": 0x17,
|
|
"MobSpawn": 0x18,
|
|
"EntityPainting": 0x19,
|
|
"StanceUpdate": 0x1B,
|
|
"EntityVelocity": 0x1C,
|
|
"DestroyEntity": 0x1D,
|
|
"Entity": 0x1E,
|
|
"EntityRelativeMove": 0x1F,
|
|
"EntityLook": 0x20,
|
|
"EntityLookAndRelativeMove": 0x21,
|
|
"EntityTeleport": 0x22,
|
|
"EntityStatus": 0x26,
|
|
"AttachEntity": 0x27,
|
|
"EntityMetadata": 0x28,
|
|
"PreChunk": 0x32,
|
|
"MapChunk": 0x33,
|
|
"MultiBlockChange": 0x34,
|
|
"BlockChange": 0x35,
|
|
"BlockAction": 0x36,
|
|
"Explosion": 0x3C,
|
|
"SoundEffect": 0x3D,
|
|
"NewOrInvalidState": 0x46,
|
|
"Thunderbolt": 0x47,
|
|
"OpenWindow": 0x64,
|
|
"CloseWindow": 0x65,
|
|
"WindowClick": 0x66,
|
|
"SetSlot": 0x67,
|
|
"WindowItems": 0x68,
|
|
"UpdateProgressBar": 0x69,
|
|
"Transaction": 0x6A,
|
|
"UpdateSign": 0x82,
|
|
"ItemData": 0x83,
|
|
"IncrementStatistic": 0xC8,
|
|
"DisconnectOrKick": 0xFF
|
|
};
|
|
|
|
module.exports = namedPackets; |