2020-06-27 17:54:26 -04:00
|
|
|
protocol_packet_ids!(
|
|
|
|
handshake Handshaking {
|
|
|
|
serverbound Serverbound {
|
|
|
|
0x00 => Handshake
|
|
|
|
}
|
|
|
|
clientbound Clientbound {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
play Play {
|
|
|
|
serverbound Serverbound {
|
|
|
|
0x00 => TeleportConfirm
|
|
|
|
0x01 => QueryBlockNBT
|
|
|
|
0x02 => SetDifficulty
|
|
|
|
0x03 => ChatMessage
|
|
|
|
0x04 => ClientStatus
|
|
|
|
0x05 => ClientSettings
|
|
|
|
0x06 => TabComplete
|
|
|
|
0x07 => ConfirmTransactionServerbound
|
|
|
|
0x08 => ClickWindowButton
|
|
|
|
0x09 => ClickWindow
|
|
|
|
0x0a => CloseWindow
|
|
|
|
0x0b => PluginMessageServerbound
|
|
|
|
0x0c => EditBook
|
|
|
|
0x0d => QueryEntityNBT
|
2020-06-27 20:42:20 -04:00
|
|
|
0x0e => UseEntity_Sneakflag
|
2020-06-27 20:44:52 -04:00
|
|
|
0x0f => GenerateStructure
|
2020-06-27 19:27:11 -04:00
|
|
|
0x10 => KeepAliveServerbound_i64
|
|
|
|
0x11 => LockDifficulty
|
|
|
|
0x12 => PlayerPosition
|
|
|
|
0x13 => PlayerPositionLook
|
|
|
|
0x14 => PlayerLook
|
|
|
|
0x15 => Player
|
|
|
|
0x16 => VehicleMove
|
|
|
|
0x17 => SteerBoat
|
|
|
|
0x18 => PickItem
|
|
|
|
0x19 => CraftRecipeRequest
|
2020-06-27 19:38:08 -04:00
|
|
|
0x1a => ClientAbilities_u8
|
2020-06-27 19:27:11 -04:00
|
|
|
0x1b => PlayerDigging
|
|
|
|
0x1c => PlayerAction
|
|
|
|
0x1d => SteerVehicle
|
|
|
|
0x1e => CraftingBookData
|
|
|
|
0x1f => NameItem
|
|
|
|
0x20 => ResourcePackStatus
|
|
|
|
0x21 => AdvancementTab
|
|
|
|
0x22 => SelectTrade
|
|
|
|
0x23 => SetBeaconEffect
|
|
|
|
0x24 => HeldItemChange
|
|
|
|
0x25 => UpdateCommandBlock
|
|
|
|
0x26 => UpdateCommandBlockMinecart
|
|
|
|
0x27 => CreativeInventoryAction
|
2020-06-27 19:38:08 -04:00
|
|
|
0x28 => UpdateJigsawBlock // TODO
|
2020-06-27 19:27:11 -04:00
|
|
|
0x29 => UpdateStructureBlock
|
|
|
|
0x2a => SetSign
|
|
|
|
0x2b => ArmSwing
|
|
|
|
0x2c => SpectateTeleport
|
|
|
|
0x2d => PlayerBlockPlacement_insideblock
|
|
|
|
0x2e => UseItem
|
2020-06-27 17:54:26 -04:00
|
|
|
}
|
|
|
|
clientbound Clientbound {
|
|
|
|
0x00 => SpawnObject_VarInt
|
|
|
|
0x01 => SpawnExperienceOrb
|
2020-06-27 19:27:11 -04:00
|
|
|
0x02 => SpawnMob_NoMeta
|
|
|
|
0x03 => SpawnPainting_VarInt
|
|
|
|
0x04 => SpawnPlayer_f64_NoMeta
|
|
|
|
0x05 => Animation
|
|
|
|
0x06 => Statistics
|
|
|
|
0x07 => AcknowledgePlayerDigging
|
|
|
|
0x08 => BlockBreakAnimation
|
|
|
|
0x09 => UpdateBlockEntity
|
|
|
|
0x0a => BlockAction
|
|
|
|
0x0b => BlockChange_VarInt
|
|
|
|
0x0c => BossBar
|
|
|
|
0x0d => ServerDifficulty_Locked
|
2020-06-27 19:43:43 -04:00
|
|
|
0x0e => ServerMessage_Sender
|
2020-06-27 19:27:11 -04:00
|
|
|
0x0f => MultiBlockChange_VarInt
|
|
|
|
0x10 => TabCompleteReply
|
|
|
|
0x11 => DeclareCommands
|
|
|
|
0x12 => ConfirmTransaction
|
|
|
|
0x13 => WindowClose
|
|
|
|
0x14 => WindowItems
|
|
|
|
0x15 => WindowProperty
|
|
|
|
0x16 => WindowSetSlot
|
|
|
|
0x17 => SetCooldown
|
|
|
|
0x18 => PluginMessageClientbound
|
|
|
|
0x19 => NamedSoundEffect
|
|
|
|
0x1a => Disconnect
|
|
|
|
0x1b => EntityAction
|
|
|
|
0x1c => Explosion
|
|
|
|
0x1d => ChunkUnload
|
|
|
|
0x1e => ChangeGameState
|
|
|
|
0x1f => WindowOpenHorse
|
|
|
|
0x20 => KeepAliveClientbound_i64
|
2020-06-27 20:24:35 -04:00
|
|
|
0x21 => ChunkData_Biomes3D_bool
|
2020-06-27 19:27:11 -04:00
|
|
|
0x22 => Effect
|
|
|
|
0x23 => Particle_f64
|
2020-06-27 19:38:08 -04:00
|
|
|
0x24 => UpdateLight // TODO
|
2020-06-27 20:11:32 -04:00
|
|
|
0x25 => JoinGame_WorldNames
|
2020-06-27 19:27:11 -04:00
|
|
|
0x26 => Maps
|
|
|
|
0x27 => TradeList_WithRestock
|
|
|
|
0x28 => EntityMove_i16
|
|
|
|
0x29 => EntityLookAndMove_i16
|
|
|
|
0x2a => EntityLook_VarInt
|
|
|
|
0x2b => Entity
|
|
|
|
0x2c => VehicleTeleport
|
|
|
|
0x2d => OpenBook
|
|
|
|
0x2e => WindowOpen_VarInt
|
|
|
|
0x2f => SignEditorOpen
|
|
|
|
0x30 => CraftRecipeResponse
|
|
|
|
0x31 => PlayerAbilities
|
|
|
|
0x32 => CombatEvent
|
|
|
|
0x33 => PlayerInfo
|
|
|
|
0x34 => FacePlayer
|
|
|
|
0x35 => TeleportPlayer_WithConfirm
|
|
|
|
0x36 => UnlockRecipes_WithSmelting
|
|
|
|
0x37 => EntityDestroy
|
|
|
|
0x38 => EntityRemoveEffect
|
|
|
|
0x39 => ResourcePackSend
|
2020-06-27 19:38:08 -04:00
|
|
|
0x3a => Respawn_WorldName
|
2020-06-27 19:27:11 -04:00
|
|
|
0x3b => EntityHeadLook
|
|
|
|
0x3c => SelectAdvancementTab
|
|
|
|
0x3d => WorldBorder
|
|
|
|
0x3e => Camera
|
|
|
|
0x3f => SetCurrentHotbarSlot
|
|
|
|
0x40 => UpdateViewPosition
|
|
|
|
0x41 => UpdateViewDistance
|
|
|
|
0x42 => SpawnPosition
|
2020-06-27 17:54:26 -04:00
|
|
|
0x43 => ScoreboardDisplay
|
|
|
|
0x44 => EntityMetadata
|
|
|
|
0x45 => EntityAttach
|
|
|
|
0x46 => EntityVelocity
|
2020-06-27 19:38:08 -04:00
|
|
|
0x47 => EntityEquipment // TODO
|
2020-06-27 17:54:26 -04:00
|
|
|
0x48 => SetExperience
|
|
|
|
0x49 => UpdateHealth
|
|
|
|
0x4a => ScoreboardObjective
|
|
|
|
0x4b => SetPassengers
|
|
|
|
0x4c => Teams_VarInt
|
|
|
|
0x4d => UpdateScore
|
2020-06-27 19:27:11 -04:00
|
|
|
0x4e => TimeUpdate
|
|
|
|
0x4f => Title
|
|
|
|
0x50 => EntitySoundEffect
|
|
|
|
0x51 => SoundEffect
|
|
|
|
0x52 => StopSound
|
|
|
|
0x53 => PlayerListHeaderFooter
|
|
|
|
0x54 => NBTQueryResponse
|
|
|
|
0x55 => CollectItem
|
|
|
|
0x56 => EntityTeleport_f64
|
|
|
|
0x57 => Advancements
|
2020-06-27 19:38:08 -04:00
|
|
|
0x58 => EntityProperties // TODO
|
2020-06-27 19:27:11 -04:00
|
|
|
0x59 => EntityEffect
|
2020-06-27 19:38:08 -04:00
|
|
|
0x5a => DeclareRecipes // TODO
|
2020-06-27 19:27:11 -04:00
|
|
|
0x5b => TagsWithEntities
|
2020-06-27 17:54:26 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
login Login {
|
|
|
|
serverbound Serverbound {
|
|
|
|
0x00 => LoginStart
|
|
|
|
0x01 => EncryptionResponse
|
|
|
|
0x02 => LoginPluginResponse
|
|
|
|
}
|
|
|
|
clientbound Clientbound {
|
|
|
|
0x00 => LoginDisconnect
|
|
|
|
0x01 => EncryptionRequest
|
2020-06-27 19:38:08 -04:00
|
|
|
0x02 => LoginSuccess_UUID
|
2020-06-27 17:54:26 -04:00
|
|
|
0x03 => SetInitialCompression
|
|
|
|
0x04 => LoginPluginRequest
|
|
|
|
}
|
|
|
|
}
|
|
|
|
status Status {
|
|
|
|
serverbound Serverbound {
|
|
|
|
0x00 => StatusRequest
|
|
|
|
0x01 => StatusPing
|
|
|
|
}
|
|
|
|
clientbound Clientbound {
|
|
|
|
0x00 => StatusResponse
|
|
|
|
0x01 => StatusPong
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|