{"id":35066,"date":"2025-05-02T08:05:57","date_gmt":"2025-05-02T00:05:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/35066.html"},"modified":"2025-05-02T08:05:57","modified_gmt":"2025-05-02T00:05:57","slug":"%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%ef%bc%9a%e7%94%a8java%e6%89%93%e9%80%a0%e4%bd%a0%e7%9a%84%e4%b8%93%e5%b1%9emcp%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%b9%b6%e9%83%a8%e7%bd%b2%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/35066.html","title":{"rendered":"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c"},"content":{"rendered":"<h2>\u4ece\u96f6\u5f00\u59cb&#xff1a;\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c<\/h2>\n<h3>\u524d\u8a00&#xff1a;\u4e3a\u4ec0\u4e48\u4f60\u8981\u81ea\u5df1\u642d\u5efaMCP\u670d\u52a1\u5668&#xff1f;<\/h3>\n<p>Minecraft&#xff08;\u6211\u7684\u4e16\u754c&#xff09;\u4f5c\u4e3a\u5168\u7403\u6700\u53d7\u6b22\u8fce\u7684\u6c99\u76d2\u6e38\u620f\u4e4b\u4e00&#xff0c;\u5176\u9b45\u529b\u4e0d\u4ec5\u5728\u4e8e\u6e38\u620f\u672c\u8eab&#xff0c;\u66f4\u5728\u4e8e\u5f3a\u5927\u7684\u81ea\u5b9a\u4e49\u80fd\u529b\u3002\u800cMCP&#xff08;Minecraft Coder Pack&#xff09;\u4f5c\u4e3a\u5b98\u65b9\u63d0\u4f9b\u7684\u53cd\u7f16\u8bd1\u5de5\u5177\u5305&#xff0c;\u53ef\u4ee5\u8ba9\u6211\u4eec\u6df1\u5165\u6e38\u620f\u5185\u90e8&#xff0c;\u5b9e\u73b0\u5404\u79cd\u9177\u70ab\u7684\u81ea\u5b9a\u4e49\u529f\u80fd&#xff01;<\/p>\n<p>\u60f3\u8c61\u4e00\u4e0b&#xff1a;\u4f60\u53ef\u4ee5\u4fee\u6539\u6e38\u620f\u673a\u5236\u3001\u6dfb\u52a0\u5168\u65b0\u7269\u54c1\u3001\u521b\u9020\u72ec\u7279\u751f\u7269&#xff0c;\u751a\u81f3\u5f00\u53d1\u81ea\u5df1\u7684\u6e38\u620f\u6a21\u5f0f&#xff01;\u8fd9\u4e00\u5207\u90fd\u59cb\u4e8e\u642d\u5efa\u81ea\u5df1\u7684MCP\u670d\u52a1\u5668\u3002\u672c\u6587\u5c06\u624b\u628a\u624b\u6559\u4f60\u5982\u4f55\u7528Java\u5f00\u53d1\u5e76\u90e8\u7f72\u5c5e\u4e8e\u4f60\u7684MCP\u670d\u52a1\u5668\u3002<\/p>\n<h3>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c&#xff1a;\u642d\u5efa\u5f00\u53d1\u73af\u5883<\/h3>\n<h4>1.1 \u5b89\u88c5\u5fc5\u8981\u5de5\u5177<\/h4>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u6211\u4eec\u9700\u8981\u51c6\u5907\u4ee5\u4e0b\u5de5\u5177&#xff1a;<\/p>\n<li>\n<p>Java\u5f00\u53d1\u5de5\u5177\u5305&#xff08;JDK&#xff09;&#xff1a;\u63a8\u8350JDK 8\u621611&#xff08;Minecraft\u4e3b\u8981\u57fa\u4e8e\u8fd9\u4e9b\u7248\u672c&#xff09;<\/p>\n<p> <span class=\"token comment\"># \u68c0\u67e5Java\u7248\u672c<\/span><br \/>\njava -version\n <\/li>\n<li>\n<p>\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff08;IDE&#xff09;&#xff1a;IntelliJ IDEA&#xff08;\u9996\u9009&#xff09;\u6216Eclipse<\/p>\n<\/li>\n<li>\n<p>Git&#xff1a;\u7528\u4e8e\u7248\u672c\u63a7\u5236\u548c\u83b7\u53d6MCP\u6e90\u7801<\/p>\n<p> <span class=\"token function\">git<\/span> &#8211;version\n <\/li>\n<li>\n<p>\u6784\u5efa\u5de5\u5177&#xff1a;Gradle\u6216Maven&#xff08;\u672c\u6587\u4ee5Gradle\u4e3a\u4f8b&#xff09;<\/p>\n<\/li>\n<h4>1.2 \u83b7\u53d6MCP\u6e90\u7801<\/h4>\n<p>MCP\u7684\u5b98\u65b9\u4ed3\u5e93\u5df2\u7ecf\u4e0d\u518d\u7ef4\u62a4&#xff0c;\u4f46\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u793e\u533a\u7ef4\u62a4\u7684\u7248\u672c&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/MinecraftForge\/MCP.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> MCP<\/p>\n<h3>\u4e8c\u3001\u914d\u7f6eMCP\u5de5\u4f5c\u73af\u5883<\/h3>\n<h4>2.1 \u8bbe\u7f6eMCP\u914d\u7f6e<\/h4>\n<p>\u8fdb\u5165MCP\u76ee\u5f55\u540e&#xff0c;\u4f60\u4f1a\u770b\u5230\u4e00\u7cfb\u5217\u914d\u7f6e\u6587\u4ef6\u3002\u6700\u91cd\u8981\u7684\u4e24\u4e2a\u662f&#xff1a;<\/p>\n<li>conf\/mcp.cfg&#xff1a;\u4e3b\u914d\u7f6e\u6587\u4ef6<\/li>\n<li>conf\/version.cfg&#xff1a;\u7248\u672c\u914d\u7f6e\u6587\u4ef6<\/li>\n<p>\u6839\u636e\u4f60\u60f3\u5f00\u53d1\u7684Minecraft\u7248\u672c\u4fee\u6539\u8fd9\u4e9b\u6587\u4ef6\u3002\u4f8b\u5982&#xff0c;\u8981\u5f00\u53d11.12.2\u7248\u672c&#xff1a;<\/p>\n<p># conf\/version.cfg<br \/>\nVersion &#061; 1.12.2<\/p>\n<h4>2.2 \u53cd\u7f16\u8bd1Minecraft<\/h4>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5f00\u59cb\u53cd\u7f16\u8bd1\u8fc7\u7a0b&#xff1a;<\/p>\n<p><span class=\"token comment\"># Windows<\/span><br \/>\n.\/decompile.bat<\/p>\n<p><span class=\"token comment\"># Linux\/Mac<\/span><br \/>\n.\/decompile.sh<\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u5230\u51e0\u5341\u5206\u949f&#xff0c;\u53d6\u51b3\u4e8e\u4f60\u7684\u7f51\u7edc\u901f\u5ea6\u548c\u7535\u8111\u6027\u80fd\u3002<\/p>\n<h3>\u4e09\u3001\u5f00\u53d1\u4f60\u7684MCP\u670d\u52a1\u5668<\/h3>\n<h4>3.1 \u521b\u5efa\u81ea\u5b9a\u4e49Mod\u9879\u76ee<\/h4>\n<p>\u5728MCP\u76ee\u5f55\u4e0b&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5f00\u59cb\u521b\u5efa\u81ea\u5df1\u7684Mod&#xff1a;<\/p>\n<p>.\/gradlew setupDecompWorkspace<br \/>\n.\/gradlew eclipse  <span class=\"token comment\"># \u5982\u679c\u4f60\u4f7f\u7528Eclipse<\/span><br \/>\n.\/gradlew idea     <span class=\"token comment\"># \u5982\u679c\u4f60\u4f7f\u7528IntelliJ IDEA<\/span><\/p>\n<h4>3.2 \u7f16\u5199\u7b2c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u529f\u80fd<\/h4>\n<p>\u8ba9\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Mod&#xff0c;\u6dfb\u52a0\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7269\u54c1&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ src\/main\/java\/com\/yourname\/yourmod\/YourMod.java<\/span><br \/>\n<span class=\"token keyword\">package<\/span> <span class=\"token namespace\">com<span class=\"token punctuation\">.<\/span>yourname<span class=\"token punctuation\">.<\/span>yourmod<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token namespace\">net<span class=\"token punctuation\">.<\/span>minecraft<span class=\"token punctuation\">.<\/span>init<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">Items<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token namespace\">net<span class=\"token punctuation\">.<\/span>minecraft<span class=\"token punctuation\">.<\/span>item<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">Item<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token namespace\">net<span class=\"token punctuation\">.<\/span>minecraftforge<span class=\"token punctuation\">.<\/span>fml<span class=\"token punctuation\">.<\/span>common<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">Mod<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token namespace\">net<span class=\"token punctuation\">.<\/span>minecraftforge<span class=\"token punctuation\">.<\/span>fml<span class=\"token punctuation\">.<\/span>common<span class=\"token punctuation\">.<\/span>event<span class=\"token punctuation\">.<\/span><\/span><span class=\"token class-name\">FMLInitializationEvent<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token annotation punctuation\">&#064;Mod<\/span><span class=\"token punctuation\">(<\/span>modid <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;yourmod&#034;<\/span><span class=\"token punctuation\">,<\/span> version <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;1.0&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">YourMod<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token class-name\">Item<\/span> customItem<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token annotation punctuation\">&#064;Mod.EventHandler<\/span><br \/>\n    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">init<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">FMLInitializationEvent<\/span> event<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        customItem <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">Item<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token punctuation\">.<\/span><span class=\"token function\">setUnlocalizedName<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;custom_item&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token punctuation\">.<\/span><span class=\"token function\">setRegistryName<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;custom_item&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u6ce8\u518c\u7269\u54c1<\/span><br \/>\n        <span class=\"token class-name\">Items<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">registerItem<\/span><span class=\"token punctuation\">(<\/span>customItem<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>3.3 \u6784\u5efa\u4f60\u7684Mod<\/h4>\n<p>\u5b8c\u6210\u7f16\u7801\u540e&#xff0c;\u4f7f\u7528Gradle\u6784\u5efaMod&#xff1a;<\/p>\n<p>.\/gradlew build<\/p>\n<p>\u6784\u5efa\u5b8c\u6210\u540e&#xff0c;\u4f60\u4f1a\u5728build\/libs\u76ee\u5f55\u4e0b\u627e\u5230\u751f\u6210\u7684.jar\u6587\u4ef6\u3002<\/p>\n<h3>\u56db\u3001\u90e8\u7f72MCP\u670d\u52a1\u5668<\/h3>\n<h4>4.1 \u4e0b\u8f7d\u5b98\u65b9\u670d\u52a1\u5668\u6587\u4ef6<\/h4>\n<p>\u4eceMinecraft\u5b98\u7f51\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684\u670d\u52a1\u5668\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">wget<\/span> https:\/\/launcher.mojang.com\/v1\/objects\/886945bfb2b978778c3a0288fd7fab09d315b25f\/server.jar<\/p>\n<h4>4.2 \u9996\u6b21\u8fd0\u884c\u670d\u52a1\u5668<\/h4>\n<p>java -jar server.jar<\/p>\n<p>\u9996\u6b21\u8fd0\u884c\u4f1a\u751f\u6210\u4e00\u4e9b\u914d\u7f6e\u6587\u4ef6\u548c\u76ee\u5f55&#xff0c;\u7136\u540e\u670d\u52a1\u5668\u4f1a\u81ea\u52a8\u5173\u95ed\u3002<\/p>\n<h4>4.3 \u5b89\u88c5Forge\u670d\u52a1\u5668<\/h4>\n<li>\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684Forge\u5b89\u88c5\u5668<\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u5668&#xff1a;java -jar forge-1.12.2-14.23.5.2855-installer.jar &#8211;installServer\n <\/li>\n<h4>4.4 \u6dfb\u52a0\u4f60\u7684Mod<\/h4>\n<p>\u5c06\u4f60\u6784\u5efa\u7684Mod\u6587\u4ef6&#xff08;.jar&#xff09;\u590d\u5236\u5230\u670d\u52a1\u5668\u7684mods\u76ee\u5f55\u4e2d\u3002<\/p>\n<h4>4.5 \u542f\u52a8\u670d\u52a1\u5668<\/h4>\n<p>java -jar forge-1.12.2-14.23.5.2855.jar nogui<\/p>\n<h3>\u4e94\u3001\u9ad8\u7ea7\u6280\u5de7\u4e0e\u4f18\u5316<\/h3>\n<h4>5.1 \u8c03\u8bd5\u6280\u5de7<\/h4>\n<p>\u5728gradle.properties\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\u53ef\u4ee5\u542f\u7528\u70ed\u90e8\u7f72&#xff1a;<\/p>\n<p># \u542f\u7528\u5f00\u53d1\u65f6\u70ed\u66ff\u6362<br \/>\norg.gradle.jvmargs&#061;-Xdebug -Xrunjdwp:transport&#061;dt_socket,server&#061;y,suspend&#061;n,address&#061;5005<\/p>\n<h4>5.2 \u670d\u52a1\u5668\u4f18\u5316<\/h4>\n<p>\u5728\u542f\u52a8\u811a\u672c\u4e2d\u6dfb\u52a0JVM\u53c2\u6570\u63d0\u9ad8\u6027\u80fd&#xff1a;<\/p>\n<p>java -Xms4G -Xmx4G -XX:&#043;UseG1GC -jar forge-1.12.2-14.12.5.2855.jar nogui<\/p>\n<h4>5.3 \u7f51\u7edc\u914d\u7f6e<\/h4>\n<p>\u5982\u679c\u4f60\u60f3\u8ba9\u670b\u53cb\u4e5f\u80fd\u8fde\u63a5\u4f60\u7684\u670d\u52a1\u5668&#xff0c;\u9700\u8981&#xff1a;<\/p>\n<li>\u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1&#xff08;\u901a\u5e38\u4e3a25565&#xff09;<\/li>\n<li>\u5728server.properties\u4e2d\u8bbe\u7f6e&#xff1a;online-mode&#061;false  # \u5982\u679c\u4f60\u662f\u79bb\u7ebf\u5f00\u53d1<br \/>\nmax-players&#061;20\n <\/li>\n<h3>\u516d\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/h3>\n<h4>6.1 \u6784\u5efa\u5931\u8d25<\/h4>\n<ul>\n<li>\u95ee\u9898&#xff1a;Gradle\u6784\u5efa\u65f6\u51fa\u73b0\u4f9d\u8d56\u9519\u8bef<\/li>\n<li>\u89e3\u51b3&#xff1a;\u5220\u9664.gradle\u76ee\u5f55\u5e76\u91cd\u65b0\u8fd0\u884c.\/gradlew setupDecompWorkspace<\/li>\n<\/ul>\n<h4>6.2 \u670d\u52a1\u5668\u542f\u52a8\u5d29\u6e83<\/h4>\n<ul>\n<li>\u95ee\u9898&#xff1a;\u670d\u52a1\u5668\u542f\u52a8\u65f6\u5d29\u6e83&#xff0c;\u63d0\u793aMod\u51b2\u7a81<\/li>\n<li>\u89e3\u51b3&#xff1a;\u68c0\u67e5Mod\u7684\u7248\u672c\u517c\u5bb9\u6027&#xff0c;\u786e\u4fdd\u6240\u6709Mod\u90fd\u9002\u7528\u4e8e\u670d\u52a1\u5668\u7248\u672c<\/li>\n<\/ul>\n<h4>6.3 \u5ba2\u6237\u7aef\u65e0\u6cd5\u8fde\u63a5<\/h4>\n<ul>\n<li>\u95ee\u9898&#xff1a;\u5ba2\u6237\u7aef\u8fde\u63a5\u65f6\u8d85\u65f6<\/li>\n<li>\u89e3\u51b3&#xff1a;\u68c0\u67e5\u9632\u706b\u5899\u8bbe\u7f6e&#xff0c;\u786e\u4fdd\u670d\u52a1\u5668\u7aef\u53e3\u5df2\u5f00\u653e<\/li>\n<\/ul>\n<h3>\u4e03\u3001\u4e0b\u4e00\u6b65&#xff1a;\u8ba9\u4f60\u7684\u670d\u52a1\u5668\u66f4\u5f3a\u5927<\/h3>\n<p>\u73b0\u5728\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86MCP\u670d\u52a1\u5668\u7684\u57fa\u672c\u5f00\u53d1\u6d41\u7a0b&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u8fdb\u9636\u529f\u80fd&#xff1a;<\/p>\n<li>\u81ea\u5b9a\u4e49\u65b9\u5757&#xff1a;\u521b\u5efa\u5177\u6709\u7279\u6b8a\u529f\u80fd\u7684\u65b9\u5757<\/li>\n<li>\u751f\u7269AI\u4fee\u6539&#xff1a;\u4e3a\u751f\u7269\u6dfb\u52a0\u65b0\u7684\u884c\u4e3a\u6a21\u5f0f<\/li>\n<li>\u6e38\u620f\u673a\u5236\u4fee\u6539&#xff1a;\u6539\u53d8\u6218\u6597\u7cfb\u7edf\u3001\u7ecf\u9a8c\u7cfb\u7edf\u7b49\u6838\u5fc3\u673a\u5236<\/li>\n<li>\u7f51\u7edc\u901a\u4fe1&#xff1a;\u5f00\u53d1\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u81ea\u5b9a\u4e49\u901a\u4fe1\u534f\u8bae<\/li>\n<h3>\u7ed3\u8bed&#xff1a;\u5f00\u542f\u4f60\u7684Minecraft\u5f00\u53d1\u4e4b\u65c5<\/h3>\n<p>\u901a\u8fc7\u672c\u6587&#xff0c;\u4f60\u5df2\u7ecf\u5b66\u4f1a\u4e86\u5982\u4f55\u4ece\u96f6\u5f00\u59cb\u642d\u5efa\u548c\u5f00\u53d1\u81ea\u5df1\u7684MCP\u670d\u52a1\u5668\u3002\u8fd9\u53ea\u662f\u4e00\u4e2a\u8d77\u70b9&#xff0c;Minecraft Mod\u5f00\u53d1\u7684\u4e16\u754c\u65e0\u6bd4\u5e7f\u9614&#xff0c;\u5145\u6ee1\u4e86\u65e0\u9650\u53ef\u80fd&#xff01;<\/p>\n<p>\u884c\u52a8\u8d77\u6765\u5427&#xff01; \u521b\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2aMod&#xff0c;\u5206\u4eab\u7ed9\u4f60\u7684\u670b\u53cb&#xff0c;\u751a\u81f3\u53d1\u5e03\u5230Mod\u793e\u533a\u3002\u671f\u5f85\u5728\u8bc4\u8bba\u533a\u770b\u5230\u4f60\u7684\u521b\u610f\u548c\u95ee\u9898&#xff01;<\/p>\n<hr \/>\n<p>\u559c\u6b22\u8fd9\u7bc7\u6559\u7a0b\u5417&#xff1f;\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u5173\u6ce8\u4e09\u8fde\u8d70\u8d77&#xff01; \u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u66f4\u591aMinecraft\u5f00\u53d1\u76f8\u5173\u5185\u5bb9&#xff0c;\u5305\u62ec\u9ad8\u7ea7Mod\u5f00\u53d1\u6280\u5de7\u3001\u6027\u80fd\u4f18\u5316\u6307\u5357\u7b49\u3002\u4f60\u7684\u652f\u6301\u662f\u6211\u521b\u4f5c\u7684\u6700\u5927\u52a8\u529b&#xff01;<\/p>\n<p>\u4e0b\u671f\u9884\u544a&#xff1a;\u300aMinecraft Mod\u5f00\u53d1\u8fdb\u9636&#xff1a;\u5982\u4f55\u6253\u9020\u4e00\u4e2a\u5b8c\u6574\u7684RPG\u7cfb\u7edf\u300b<\/p>\n<hr \/>\n<p>\u672c\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7&#xff1a;AI\u5b66\u4e60\u65b0\u89c6\u754c&#xff0c;\u5927\u5bb6\u4e00\u8d77\u5171\u540c\u5b66\u4e60&#xff0c;\u63a2\u8ba8AI\u9886\u57df\u7684\u6700\u65b0\u53d1\u5c55\u548cAI\u5de5\u5177\u4ea7\u54c1\u7b49\u4f7f\u7528\u5fc3\u5f97\u4f53\u4f1a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb994\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\/gradlew eclipse # \u5982\u679c\u4f60\u4f7f\u7528Eclipse .\/gradlew idea # \u5982\u679c\u4f60\u4f7f\u7528IntelliJ IDEA\/\/ \u6ce8\u518c\u7269\u54c1\u901a\u8fc7\u672c\u6587\uff0c\u4f60\u5df2\u7ecf\u5b66\u4f1a\u4e86\u5982\u4f55\u4ece\u96f6\u5f00\u59cb\u642d\u5efa\u548c\u5f00\u53d1\u81ea\u5df1\u7684MCP\u670d\u52a1\u5668\u3002\u8fd9\u53ea\u662f\u4e00\u4e2a\u8d77\u70b9\uff0cMinecraft Mod\u5f00\u53d1\u7684\u4e16\u754c\u65e0\u6bd4\u5e7f\u9614\uff0c\u5145\u6ee1\u4e86\u65e0\u9650\u53ef\u80fd\uff01\u884c\u52a8\u8d77\u6765\u5427\uff01\u521b\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2aMod\uff0c\u5206\u4eab\u7ed9\u4f60\u7684\u670b\u53cb\uff0c\u751a\u81f3\u53d1\u5e03\u5230Mod\u793e\u533a\u3002\u671f\u5f85\u5728\u8bc4\u8bba\u533a\u770b\u5230\u4f60\u7684\u521b\u610f\u548c\u95ee\u9898\uff01\u559c\u6b22\u8fd9\u7bc7\u6559\u7a0b\u5417\uff1f<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,50,190,2983,43],"topic":[],"class_list":["post-35066","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-50","tag-190","tag-2983","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/35066.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb994\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\/gradlew eclipse # \u5982\u679c\u4f60\u4f7f\u7528Eclipse .\/gradlew idea # \u5982\u679c\u4f60\u4f7f\u7528IntelliJ IDEA\/\/ \u6ce8\u518c\u7269\u54c1\u901a\u8fc7\u672c\u6587\uff0c\u4f60\u5df2\u7ecf\u5b66\u4f1a\u4e86\u5982\u4f55\u4ece\u96f6\u5f00\u59cb\u642d\u5efa\u548c\u5f00\u53d1\u81ea\u5df1\u7684MCP\u670d\u52a1\u5668\u3002\u8fd9\u53ea\u662f\u4e00\u4e2a\u8d77\u70b9\uff0cMinecraft Mod\u5f00\u53d1\u7684\u4e16\u754c\u65e0\u6bd4\u5e7f\u9614\uff0c\u5145\u6ee1\u4e86\u65e0\u9650\u53ef\u80fd\uff01\u884c\u52a8\u8d77\u6765\u5427\uff01\u521b\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2aMod\uff0c\u5206\u4eab\u7ed9\u4f60\u7684\u670b\u53cb\uff0c\u751a\u81f3\u53d1\u5e03\u5230Mod\u793e\u533a\u3002\u671f\u5f85\u5728\u8bc4\u8bba\u533a\u770b\u5230\u4f60\u7684\u521b\u610f\u548c\u95ee\u9898\uff01\u559c\u6b22\u8fd9\u7bc7\u6559\u7a0b\u5417\uff1f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/35066.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-02T00:05:57+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35066.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/35066.html\",\"name\":\"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-02T00:05:57+00:00\",\"dateModified\":\"2025-05-02T00:05:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/35066.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/35066.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35066.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/35066.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb994\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf14\u6b21\u3002\/gradlew eclipse # \u5982\u679c\u4f60\u4f7f\u7528Eclipse .\/gradlew idea # \u5982\u679c\u4f60\u4f7f\u7528IntelliJ IDEA\/\/ \u6ce8\u518c\u7269\u54c1\u901a\u8fc7\u672c\u6587\uff0c\u4f60\u5df2\u7ecf\u5b66\u4f1a\u4e86\u5982\u4f55\u4ece\u96f6\u5f00\u59cb\u642d\u5efa\u548c\u5f00\u53d1\u81ea\u5df1\u7684MCP\u670d\u52a1\u5668\u3002\u8fd9\u53ea\u662f\u4e00\u4e2a\u8d77\u70b9\uff0cMinecraft Mod\u5f00\u53d1\u7684\u4e16\u754c\u65e0\u6bd4\u5e7f\u9614\uff0c\u5145\u6ee1\u4e86\u65e0\u9650\u53ef\u80fd\uff01\u884c\u52a8\u8d77\u6765\u5427\uff01\u521b\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2aMod\uff0c\u5206\u4eab\u7ed9\u4f60\u7684\u670b\u53cb\uff0c\u751a\u81f3\u53d1\u5e03\u5230Mod\u793e\u533a\u3002\u671f\u5f85\u5728\u8bc4\u8bba\u533a\u770b\u5230\u4f60\u7684\u521b\u610f\u548c\u95ee\u9898\uff01\u559c\u6b22\u8fd9\u7bc7\u6559\u7a0b\u5417\uff1f","og_url":"https:\/\/www.wsisp.com\/helps\/35066.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-02T00:05:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/35066.html","url":"https:\/\/www.wsisp.com\/helps\/35066.html","name":"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-02T00:05:57+00:00","dateModified":"2025-05-02T00:05:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/35066.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/35066.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/35066.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ece\u96f6\u5f00\u59cb\uff1a\u7528Java\u6253\u9020\u4f60\u7684\u4e13\u5c5eMCP\u670d\u52a1\u5668\u5e76\u90e8\u7f72\u8fd0\u884c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=35066"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35066\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=35066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=35066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=35066"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=35066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}