1"use strict";(globalThis.webpackChunknk_mot=globalThis.webpackChunknk_mot||[]).push([[1219],{2602(e,n,t){t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>l,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"developer-guide/guides/event","title":"Event \u4e8b\u4ef6\u6307\u5357","description":"\u4e8b\u4ef6\u7684\u6982\u5ff5 \\\\","source":"@site/i18n/zh/docusaurus-plugin-content-docs/current/developer-guide/guides/event.mdx","sourceDirName":"developer-guide/guides","slug":"/developer-guide/guides/event","permalink":"/zh/docs/developer-guide/guides/event","draft":false,"unlisted":false,"editUrl":"https://github.com/MemoriesOfTime/Nukkit-MOT-Wiki/tree/master/i18n/zh/docusaurus-plugin-content-docs/current/developer-guide/guides/event.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"\u6307\u5357","permalink":"/zh/docs/category/guides"},"next":{"title":"Command \u547d\u4ee4\u7cfb\u7edf\u6307\u5357","permalink":"/zh/docs/developer-guide/guides/command"}}');var r=t(4848),s=t(8453);const l={sidebar_position:1},o="Event \u4e8b\u4ef6\u6307\u5357",d={},c=[{value:"\u4e8b\u4ef6\u7684\u6982\u5ff5",id:"event-concept",level:2},{value:"\u6d41\u7a0b\u56fe",id:"flowchart",level:3},{value:"\u4e8b\u4ef6\u76d1\u542c\u5668",id:"event-listeners",level:2},{value:"\u5b9e\u73b0\u76d1\u542c\u5668",id:"implementing-listener",level:3},{value:"\u4f18\u5148\u7ea7",id:"priority",level:3},{value:"\u6ce8\u518c\u76d1\u542c\u5668",id:"registering-listeners",level:3},{value:"\u7ed3\u8bed",id:"conclusion",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",mermaid:"mermaid",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"event-\u4e8b\u4ef6\u6307\u5357",children:"Event \u4e8b\u4ef6\u6307\u5357"})}),"\n",(0,r.jsx)(n.h2,{id:"event-concept",children:"\u4e8b\u4ef6\u7684\u6982\u5ff5"}),"\n",(0,r.jsx)(n.p,{children:"\u6bcf\u5f53\u670d\u52a1\u5668\u4e2d\u53d1\u751f\u4e86\u7279\u5b9a\u7684\u884c\u4e3a\uff0c\u4e00\u4e2a\u4e8b\u4ef6\u5bf9\u8c61\u5c31\u4f1a\u4ea7\u751f\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u4e8b\u4ef6\u662f\u5bf9\u67d0\u79cd\u884c\u4e3a\u6216\u52a8\u4f5c\u7684\u63cf\u8ff0\uff0c\u6bd4\u5982\u73a9\u5bb6\u767b\u5f55\u3001 \u73a9\u5bb6\u79bb\u5f00\u3001\u73a9\u5bb6\u53d1\u9001\u6d88\u606f\u7b49\u7b49\u3002"}),"\n",(0,r.jsxs)(n.p,{children:["\u79cd\u79cd\u7684\u884c\u4e3a\u6216\u52a8\u4f5c\u90fd\u5bf9\u5e94\u4e00\u4e2a\u4e8b\u4ef6\u5bf9\u8c61\u4f5c\u4e3a\u5b83\u4eec\u7684\u62bd\u8c61\uff0c\u4e8b\u4ef6\u5bf9\u8c61\u4e2d\u5e26\u6709\u8fd9\u4e2a\u884c\u4e3a\u6216\u8005\u52a8\u4f5c\u4e2d\u7684\u4e00\u4e9b\u5173\u952e\u4fe1\u606f\uff0c\u6bd4\u5982\u73a9\u5bb6 ",(0,r.jsx)(n.strong,{children:"\u53d1\u9001\u6d88\u606f\u4e8b\u4ef6"})," \u5bf9\u8c61\u4e2d\u5c31\u5e26\u6709\u53d1\u9001\u4e8b\u4ef6\u7684 ",(0,r.jsx)(n.strong,{children:"\u73a9\u5bb6\u5bf9\u8c61\u3001\u53d1\u9001\u7684\u6d88\u606f\u5b57\u7b26\u4e32"})," \u7b49\u7b49\uff0c\u800c\u73a9\u5bb6\u5bf9\u8c61\u53c8\u5305\u542b\u8fd9\u4e2a\u73a9\u5bb6\u7684 ",(0,r.jsx)(n.strong,{children:"\u4f4d\u7f6e\u3001\u751f\u547d\u503c\u3001\u7269\u54c1\u680f"})," \u7b49\u7b49\u6570\u636e\u3002"]}),"\n",(0,r.jsx)(n.p,{children:"\u63d2\u4ef6\u53ef\u4ee5\u5411 Nukkit-MOT \u6ce8\u518c\u76d1\u542c\u5668\u6765\u5728\u4e8b\u4ef6\u53d1\u751f\u7684\u65f6\u5019\u505a\u51fa\u53cd\u5e94\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u6bcf\u4e2a\u4e8b\u4ef6\u5bf9\u8c61\u90fd\u5305\u542b\u4e86\u5bf9\u4e8b\u4ef6\u7684\u63cf\u8ff0\uff0c\u901a\u5e38\u4e8b\u4ef6\u76d1\u542c\u5668\u4f1a\u5728\u4e8b\u4ef6\u53d1\u751f\u4e4b\u524d\u88ab\u8c03\u7528\uff0c\u6b64\u65f6\u76d1\u542c\u5668\u53ef\u4ee5\u901a\u8fc7\u53d6\u6d88\u4e8b\u4ef6\u6765\u963b\u6b62\u4e8b\u4ef6\u771f\u7684\u53d1\u751f\uff0c\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u4e8b\u4ef6\u76d1\u542c\u5668\u53d6\u6d88\u4e86\u8fd9\u4e2a\u4e8b\u4ef6\uff0c\u90a3\u4e48\u5b83\u5c31\u4f1a\u771f\u6b63\u5730\u5728\u6e38\u620f\u5185\u53d1\u751f\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u76d1\u542c\u5668\u7684\u6267\u884c\u662f\u5355\u7ebf\u7a0b\u7684\uff0c\u6240\u6709\u76d1\u542c\u5668\u5728\u6ce8\u518c\u7684\u65f6\u5019\u90fd\u8981\u7ed9 Nukkit-MOT \u63d0\u4f9b\u5b83\u7684\u4f18\u5148\u7ea7\uff0cNukkit-MOT \u4f1a\u6309\u7167\u4f18\u5148\u7ea7\u5c06\u76d1\u542c\u5668\u6392\u5e8f\uff0c\u7136\u540e\u4f9d\u6b21\u6267\u884c\u76d1\u542c\u5668\u3002"}),"\n",(0,r.jsx)(n.admonition,{type:"note",children:(0,r.jsx)(n.p,{children:"\u5355\u7ebf\u7a0b\u610f\u5473\u7740\uff0c\u60a8\u4e0d\u80fd\u5728\u4e8b\u4ef6\u4e2d\u6267\u884c\u8017\u65f6\u64cd\u4f5c\uff0c\u5426\u5219\u4f1a\u5f71\u54cd\u670d\u52a1\u5668\u7684\u6b63\u5e38\u8fd0\u884c\u3002"})}),"\n",(0,r.jsxs)(n.p,{children:["\u5f88\u53ef\u80fd\u5728\u60a8\u7684\u63d2\u4ef6\u7684\u76d1\u542c\u5668\u88ab\u6267\u884c\u4e4b\u95f4\u8fd9\u4e2a\u4e8b\u4ef6\u5df2\u7ecf\u88ab\u53d6\u6d88\u4e86\uff0c\u4f46\u901a\u5e38\u8fd9\u4e0d\u4f1a\u5f71\u54cd\u60a8\u7684\u76d1\u542c\u5668\u7684\u6267\u884c\uff0c\u60a8\u7684\u76d1\u542c\u5668\u4ecd\u7136\u4f1a\u88ab\u6267\u884c\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7 ",(0,r.jsx)(n.code,{children:"event.isCancelled()"})," \u6765\u5224\u65ad\u4e8b\u4ef6\u662f\u5426\u88ab\u53d6\u6d88\u4e86\u3002"]}),"\n",(0,r.jsx)(n.admonition,{type:"warning",children:(0,r.jsx)(n.p,{children:"\u7279\u522b\u6ce8\u610f\u7684\u662f\uff0c\u4f18\u5148\u7ea7\u8d8a\u9ad8\uff0c\u6267\u884c\u987a\u5e8f\u8d8a\u5f80\u540e\u6392\u3002\n\u4e5f\u5c31\u662f\u8bf4\uff0c\u4f18\u5148\u7ea7\u8d8a\u4f4e\uff0c\u8d8a\u4f18\u5148\u6267\u884c\uff01"})}),"\n",(0,r.jsx)(n.h3,{id:"flowchart",children:"\u6d41\u7a0b\u56fe"}),"\n",(0,r.jsx)("div",{style:{textAlign:"center"},children:(0,r.jsx)(n.mermaid,{value:"graph TD;
1\n A([\u7279\u5b9a\u884c\u4e3a\u6216\u52a8\u4f5c\u89e6\u53d1]) --\x3e|\u521b\u5efa\u4e8b\u4ef6| B[\u521b\u5efa\u4e8b\u4ef6\u5bf9\u8c61\uff0c\u5305\u542b\u6240\u6709\u76f8\u5173\u6570\u636e]\n B --\x3e D[\u6309\u6ce8\u518c\u987a\u5e8f\u6392\u5e8f\u76d1\u542c\u5668]\n D --\x3e C[/\u6309\u987a\u5e8f\u6267\u884c\u6bcf\u4e2a\u76d1\u542c\u5668/]\n C --\x3e|\u4e8b\u4ef6\u88ab\u53d6\u6d88| F[\u68c0\u67e5\u662f\u5426\u8fd8\u9700\u91cd\u65b0\u6392\u5e8f\u76d1\u542c\u5668]\n F --\x3e|\u662f| D\n F --\x3e|\u5426| Z([\u5904\u7406\u7ed3\u675f])\n C --\x3e|\u4e8b\u4ef6\u672a\u88ab\u53d6\u6d88| E[Nukkit\u6267\u884c\u4e8b\u4ef6\u76f8\u5173\u7684\u52a8\u4f5c]\n E --\x3e Z\n style A fill:#f9f,stroke:#333,stroke-width:2px,color:black\n style C fill:#cfc,stroke:#333,stroke-width:2px,color:black\n style Z fill:#ccf,stroke:#333,stroke-width:2px,color:black"})}),"\n",(0,r.jsx)(n.h2,{id:"event-listeners",children:"\u4e8b\u4ef6\u76d1\u542c\u5668"}),"\n",(0,r.jsx)(n.p,{children:"\u4e8b\u4ef6\u76d1\u542c\u5668\u5728\u6e38\u620f\u670d\u52a1\u5668\u63d2\u4ef6\u5f00\u53d1\u4e2d\u662f\u4e00\u4e2a\u5173\u952e\u7ec4\u4ef6\uff0c\u7528\u4e8e\u5904\u7406\u6e38\u620f\u4e2d\u53d1\u751f\u7684\u5404\u79cd\u4e8b\u4ef6\u3002\u8fd9\u90e8\u5206\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Nukkit\u63d2\u4ef6\u4e2d\u62bd\u8c61\u548c\u5b9e\u73b0\u4e00\u4e2a\u4e8b\u4ef6\u76d1\u542c\u5668\uff0c\u8bbe\u7f6e\u5176\u4f18\u5148\u7ea7\uff0c\u5e76\u8fdb\u884c\u6ce8\u518c\uff0c\u4ee5\u4fbf\u5728\u63d2\u4ef6\u4e2d\u6709\u6548\u54cd\u5e94\u670d\u52a1\u5668\u548c\u73a9\u5bb6\u7684\u6d3b\u52a8\u3002"}),"\n",(0,r.jsx)(n.h3,{id:"implementing-listener",children:"\u5b9e\u73b0\u76d1\u542c\u5668"}),"\n",(0,r.jsxs)(n.p,{children:["\u521b\u5efa\u4e00\u4e2a\u4e8b\u4ef6\u76d1\u542c\u5668\u6d89\u53ca\u5230\u5b9e\u73b0 ",(0,r.jsx)(n.code,{children:"Listener"})," \u63a5\u53e3\uff0c\u5e76\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"@EventHandler"})," \u6ce8\u89e3\u6765\u6807\u8bb0\u90a3\u4e9b\u5e94\u5f53\u5728\u7279\u5b9a\u4e8b\u4ef6\u53d1\u751f\u65f6\u88ab\u8c03\u7528\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u5177\u4f53\u7684\u5b9e\u73b0\u793a\u4f8b\uff0c\u7528\u4e8e\u76d1\u542c\u670d\u52a1\u5668\u547d\u4ee4\u4e8b\u4ef6\uff1a"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:'title="EventListener.java"',children:'package cn.nukkitmot.exampleplugin;\n\nimport cn.nukkit.event.EventHandler;\nimport cn.nukkit.event.EventPriority;\nimport cn.nukkit.event.Listener;
1\nimport cn.nukkit.event.server.ServerCommandEvent;\nimport cn.nukkit.event.player.PlayerChatEvent;\n\npublic class EventListener implements Listener {\n private final ExamplePlugin plugin;\n\n public EventListener(ExamplePlugin plugin) {\n this.plugin = plugin;\n }\n\n @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = false)\n public void onServerCommand(ServerCommandEvent event) {\n if (event.isCancelled()) {\n return;\n }\n // Log the command to server console\n this.plugin.getLogger().info("ServerCommandEvent is called with command: " + event.getCommand());\n\n // Here you can add additional logic to modify the behavior based on the command\n if (event.getCommand().equalsIgnoreCase("stop")) {\n this.plugin.getLogger().info("Server stop command issued!");\n // Perform additional actions before server stops\n }\n }\n\n @EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)\n public void onPlayerChat(PlayerChatEvent event) {\n if (event.getMessage().contains("cnm")) { // \u68c0\u6d4b\u6d88\u606f\u4e2d\u662f\u5426\u6709 cnm\n event.setCancelled(true);\n }\n }\n}\n'})}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u6f14\u793a\u4ee3\u7801\u4e2d\uff0c",(0,r.jsx)(n.code,{children:"onServerCommand"})," \u65b9\u6cd5\u4f1a\u5728\u670d\u52a1\u5668\u547d\u4ee4\u4e8b\u4ef6\u89e6\u53d1\u65f6\u6267\u884c\u3002\u901a\u8fc7\u6b64\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5904\u7406\u4e8b\u4ef6\uff0c\u4f8b\u5982\u68c0\u67e5\u547d\u4ee4\u5185\u5bb9\u5e76\u4f5c\u51fa\u76f8\u5e94\u54cd\u5e94\u3002"]}),"\n",(0,r.jsxs)(n.p,{children:["\u800c ",(0,r.jsx)(n.code,{children:"onPlayerChat"})," \u65b9\u6cd5\u4f1a\u5728\u73a9\u5bb6\u804a\u5929\u4e8b\u4ef6\u89e6\u53d1\u65f6\u6267\u884c\u3002\u901a\u8fc7\u6b64\u65b9\u6cd5\uff0c\u53ef\u4ee5\u62e6\u622a\u73a9\u5bb6\u53d1\u9001\u7684\u6d88\u606f\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002"]}),"\n",(0,r.jsx)(n.h3,{id:"priority",children:"\u4f18\u5148\u7ea7"}),"\n",(0,r.jsx)(n.p,{children:"\u4e8b\u4ef6\u7684\u5904\u7406\u4f18\u5148\u7ea7\u662f\u8c03\u6574\u63d2\u4ef6\u95f4\u4e92\u52a8\u7684\u91cd\u8981\u624b\u6bb5\u3002\u5728 Nukkit \u4e2d\uff0c\u4e8b\u4ef6\u53ef\u4ee5\u6839\u636e\u5176\u91cd\u8981\u6027\u88ab\u5206\u914d\u4e0d\u540c\u7684\u4f18\u5148\u7ea7\uff0c\u5982\u4e0b\u6240\u793a\uff1a"}),"\n",(0,r.jsxs)(n.p,{children:["\u5f15\u7528\u81ea ",(0,r.jsx)(n.a,{href:"https://github.com/CloudburstMC/Nukkit/blob/master/src/main/java/cn/nukkit/event/EventPriority.java",children:"cn.nukkit.event.EventPriority"})]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:'title="event/EventPriority.java"',children:"public enum EventPriority {\n\n /**\n * \u4e8b\u4ef6\u8c03\u7528\u975e\u5e38\u4e0d\u91cd\u8981\u4e14\u5e94\u8be5\u9996\u5148\u6267\u884c\uff0c\u4ee5\u4fbf\u5176\u4ed6\u63d2\u4ef6\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5b9a\u5236\u7ed3\u679c\n */\n LOWEST(0),\n /**\n * \u4e8b\u4ef6\u8c03\u7528\u7684\u91cd\u8981\u6027\u8f83\u4f4e\n */\n LOW(1),\n /**\n * \u4e8b\u4ef6\u8c03\u7528\u91cd\u8981\u6027\u4e00\u822c\uff0c\u8fd9\u4e5f\u662f\u9ed8\u8ba4\u7684\u4f18\u5148\u7ea7\u3002\n */\n NORMAL(2),\n /**\n * \u4e8b\u4ef6\u8c03\u7528\u7684\u91cd\u8981\u6027\u8f83\u9ad8\n */\n HIGH(3),\n /**\n * \u4e8b\u4ef6\u8c03\u7528\u81f3\u5173\u91cd\u8981\uff0c\u5fc5\u987b\u5728\u4e8b\u4ef6\u7ed3\u679c\u4e0a\u6709\u6700\u7ec8\u51b3\u5b9a\u6743\n */\n HIGHEST(4),\n /**\n * \u4e8b\u4ef6\u4ec5\u7528\u4e8e\u76d1\u63a7\u4e8b\u4ef6\u7684\u7ed3\u679c\u3002\n * \n * \u5728\u8fd9\u4e2a\u4f18\u5148\u7ea7\u4e0b\u4e0d\u5e94\u5bf9\u4e8b\u4ef6\u505a\u4efb\u4f55\u4fee\u6539\n * \n * \u4fee\u6539\u6307\u7684\u662f\u901a\u8fc7 `Event#setCanneled()` \u53d6\u6d88\u4e8b\u4ef6\uff0c\u4ee5\u53ca\u4fee\u6539\u4e8b\u4ef6\u643a\u5e26\u7684\u6570\u636e\u3002 \n */\n MONITOR(5);\n\n private final int slot;\n\n EventPriority(int slot) {\n this.slot = slot;\n }\n\n public int getSlot() {\n return slot;\n }\n}\n"})}),"\n",(0,r.jsx)(n.h3,{id:"registering-listeners",children:"\u6ce8\u518c\u76d1\u542c\u5668"}),"\n",(0,r.jsxs)(n.p,{children:["\u4e8b\u4ef6\u76d1\u542c\u5668\u5fc5\u987b\u5728\u63d2\u4ef6\u542f\u52a8\u
165f6\u6ce8\u518c\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u80fd\u591f\u54cd\u5e94\u4e8b\u4ef6\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u63d2\u4ef6\u7684 ",(0,r.jsx)(n.code,{children:"onEnable"})," \u65b9\u6cd5\u5b8c\u6210\uff1a"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-java",metastring:'title="ExamplePlugin.java"',children:"public class ExamplePlugin extends PluginBase {\n @Override\n public void onEnable() {\n // \u6ce8\u518c\u4e8b\u4ef6\u76d1\u542c\u5668\n // highlight-start\n this.getServer().getPluginManager().registerEvents(new EventListener(this), this);\n // highlight-end\n }\n}\n"})}),"\n",(0,r.jsxs)(n.p,{children:["\u6b64\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86 ",(0,r.jsx)(n.code,{children:"EventListener"})," \u7684\u5b9e\u4f8b\uff0c\u5e76\u901a\u8fc7\u63d2\u4ef6\u7ba1\u7406\u5668\u6ce8\u518c\u5b83\u3002\u8fd9\u786e\u4fdd\u4e86\u6bcf\u5f53\u76f8\u5173\u4e8b\u4ef6\u53d1\u751f\u65f6\uff0c\u6211\u4eec\u7684 ",(0,r.jsx)(n.code,{children:"EventListener"})," \u53ef\u4ee5\u63a5\u6536\u5e76\u5904\u7406\u8fd9\u4e9b\u4e8b\u4ef6\u3002"]}),"\n",(0,r.jsx)(n.h2,{id:"conclusion",children:"\u7ed3\u8bed"}),"\n",(0,r.jsxs)(n.p,{children:["\u5f53\u4f60\u4f7f\u7528\u547d\u4ee4 ",(0,r.jsx)(n.code,{children:"/stop"})," \u5c06\u4f1a\u89e6\u53d1\u4e8b\u4ef6 ",(0,r.jsx)(n.code,{children:"ServerCommandEvent"})," \uff0c\u7136\u540e ",(0,r.jsx)(n.code,{children:"onServerCommand"})," \u4f1a\u88ab\u8c03\u7528\uff0c\u4f60\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e9b\u903b\u8f91\u6765\u5904\u7406\u8fd9\u4e2a\u4e8b\u4ef6\u3002"]}),"\n",(0,r.jsxs)(n.p,{children:["\u5f53\u73a9\u5bb6\u53d1\u9001\u6d88\u606f\u65f6\uff0c",(0,r.jsx)(n.code,{children:"onPlayerChat"})," \u4f1a\u88ab\u8c03\u7528\uff0c\u82e5\u6d88\u606f\u4e2d\u5305\u542b ",(0,r.jsx)(n.code,{children:"cnm"})," \u5219\u4e8b\u4ef6\u88ab\u53d6\u6d88\uff0c\u73a9\u5bb6\u7684\u6d88\u606f\u4e5f\u4e0d\u4f1a\u5728\u6e38\u620f\u4e2d\u771f\u7684\u53d1\u9001\u3002"]})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(a,{...e})}):a(e)}},8453(e,n,t){t.d(n,{R:()=>l,x:()=>o});var i=t(6540);const r={},s=i.createContext(r);function l(e){const n=i.useContext(s);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:l(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.