|
集成REST (Integrated REST)Github |相关wiki |源站链接支持: forge将集成动力网络作为REST API公开。
这需要 Core 库和 https://modrinth.com/mod/integrated-dynamics]Integrated Dynamics!
在 https://discord.gg/9yDxubB]Cyclops Discord 服务器的 #integratedmods 频道与我们交流!
这个模组允许你通过REST API从你的https://modrinth.com/mod/integrated-dynamics]Integrated Dynamics网络中读取和写入数据。
这使得通过Web协议读取你的网络和世界的状态成为可能,并通过将值POST到你的世界中的HTTP代理块与它们交互。
一些使用该模组的示例(和一些外部编码):
- 根据你的 Minecraft 世界的白天时间控制家中的灯光。
- 当你收到电子邮件时,在 Minecraft 中播放声音。
- 在你的网站上显示所有在线玩家在主世界的位置。
- 当你获得新的 Twitch 或 Mixer 订阅者时,打开养殖场的门。
*警告:*如果你以前从未听说过 \'API\' 或 \'REST\',那么这可能不适合你。这个模组主要面向想要使用可以通过HTTP通信的外部系统进行非常高级自动化的高级用户。
该模组在可配置的端口上将你的网络公开为JSON。以下是单个网络元素输出的片段:
{
\"@context\": \"https://raw.githubusercontent.com/CyclopsMC/IntegratedREST/master-1.12/src/main/resources/context.jsonld\",
\"@id\": \"http://localhost:3000/\",
\"networkElements\": [
{
\"@id\": \"http://localhost:3000/networkElement/integrateddynamics/part/4\",
\"position\": {
\"world\": 0,
\"x\": -26,
\"y\": 57,
\"z\": -249,
\"side\": \"ir:east\"
},
\"block\": \"http://localhost:3000/registry/block/integrateddynamics/cable\",
\"@type\": [
\"NetworkElement\",
\"http://localhost:3000/registry/part/display_panel\"
],
\"channel\": 0,
\"priority\": 0,
\"updateInterval\": 1,
\"network\": \"http://localhost:3000/network/1619976862\",
\"valueType\": \"http://localhost:3000/registry/value/valuetype/valuetypes/integrateddynamics/string/name\",
\"value\": \"I was updated\\\\nvia HTTP!\",
\"target\": {
\"world\": 0,
\"x\": -25,
\"y\": 57,
\"z\": -249,
\"side\": \"ir:west\"
},
\"loaded\": true
},
...
]
}
实际上,这个JSON是有效的 https://json-ld.org/]JSON-LD(Linked Data JSON),这使得可以在 https://www.w3.org/RDF/]RDF 工具中使用该输出。
除了你的网络和其元素的状态,该模组还公开了大多数Forge注册表的状态。
所有可用信息(通过API索引页面访问):
- 网络
- 网络元素
- 部件类型
- 方面类型
- 值类型
- 物品
- 方块
- 流体
- 模组
这个模组向游戏中添加了一个可制作的单一方块,HTTP代理。
https://media.forgecdn.net/attachments/223/138/2018-01-20_17.png]
像所有的网络元素一样,这个块可以通过HTTP访问。例如,ID为7的HTTP代理将通过 链接 可以访问。
这个块有一个内部值状态,可以通过 https://github.com/CyclopsMC/IntegratedREST/wiki/HTTP-POST-requests]HTTP POST 请求 更新(更多信息请参阅 wiki)。
*注意:*如果你在服务器上使用这个模组,你可能想要通过禁用玩家的配置文件中的配置来禁用客户端的HTTP服务器启动。
这个模组收集 https://github.com/CyclopsMC/CyclopsCore/blob/master-1.9/src/main/java/org/cyclops/cyclopscore/tracking/Analytics.java]匿名化的启动数据,可以在配置文件中禁用,符合 Minecraft 的窥探设置。
https://www.patreon.com/kroeser] 如果你喜欢这个模组,请考虑在 https://www.patreon.com/kroeser]Patreon 上支持我!
来自Modrinth所有游戏版本1.21.81.21.11.21.41.211.20.41.19.21.20.11.19.41.18.21.19.31.19所有类型neoforgeforge1.1.12-162 for NeoForge 1.21.8integratedrest-1.21.8-neoforge-1.1.12-162.jar下载1.21.8-1.1.12-162#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.8-1.1.12...9c2b846acecb286bab91aa2aac3cedb66e0ade89展开版本: 1.21.8-1.1.12-162支持游戏: 1.21.8类型:NeoForgeBeta下载次数: 51.1.15-161 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.15-161.jar下载1.21.1-1.1.15-161#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.15...47d98eb678f391f43bbc906e80524302fe9c78b2展开版本: 1.21.1-1.1.15-161支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 421.1.15-160 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.15-160.jar下载1.21.1-1.1.15-160#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.15...fecc9cfd31ac905710e72e715fadc0d78c56e37e展开版本: 1.21.1-1.1.15-160支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 761.1.15-158 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.15-158.jar下载1.21.1-1.1.15-158#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.15...7a5289b929b1112c22e4fd7065d13b43296b1355展开版本: 1.21.1-1.1.15-158支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 141.1.12-156 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-156.jar下载1.21.4-1.1.12-156#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...bbb55dc30c1c3b006b63413e2d4f216afaa81139展开版本: 1.21.4-1.1.12-156支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 111.1.12-155 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-155.jar下载1.21.4-1.1.12-155#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...bbb55dc30c1c3b006b63413e2d4f216afaa81139展开版本: 1.21.4-1.1.12-155支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 91.1.15 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.15.jar下载1.21.1-1.1.15#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.25.1 or higher.Fixes:* Fix SMP crash when showing aspect info展开版本: 1.21.1-1.1.15支持游戏: 1.21.1类型:NeoForgeRelease下载次数: 421.1.12-150 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-150.jar下载1.21.4-1.1.12-150#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...8544104a790f274eff3feb74cec761cde831f903展开版本: 1.21.4-1.1.12-150支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 201.1.12-149 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-149.jar下载1.21.4-1.1.12-149#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...157243eaa6c5db6125c84e6015558ddb3b5c3bb1展开版本: 1.21.4-1.1.12-149支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 141.1.14-148 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.14-148.jar下载1.21.1-1.1.14-148#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.14...4d6397a7cf6256b317de6ad168f092647e9503a5展开版本: 1.21.1-1.1.14-148支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 1201.1.12-145 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-145.jar下载1.21.4-1.1.12-145#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...c3dab646f7baddbde7b83cd4188bf9b156a53d39展开版本: 1.21.4-1.1.12-145支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 621.1.14 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.14.jar下载1.21.1-1.1.14#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.25.1 or higher.Additions:* Add translations through Crowdin (#37)Fixes:* Fix POSTing blocks crashing, Closes #38展开版本: 1.21.1-1.1.14支持游戏: 1.21.1类型:NeoForgeRelease下载次数: 1871.1.12-142 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-142.jar下载1.21.4-1.1.12-142#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...127d2e4e4f193809efba85d621694e4eb8cc95b0展开版本: 1.21.4-1.1.12-142支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 231.1.12-141 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-141.jar下载1.21.4-1.1.12-141#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...252b419335ffc774cbb0aa510cd7aa463d2556ba展开版本: 1.21.4-1.1.12-141支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 271.1.12-140 for NeoForge 1.21.4integratedrest-1.21.4-neoforge-1.1.12-140.jar下载1.21.4-1.1.12-140#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.4-1.1.12...868f64fdfaf0f154d7b73ede73c92868daa67fbc展开版本: 1.21.4-1.1.12-140支持游戏: 1.21.4类型:NeoForgeBeta下载次数: 331.1.13-138 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.13-138.jar下载1.21.1-1.1.13-138#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.13...ab1cbf6e1257f59aec0684fd2687a9808ec91bcb展开版本: 1.21.1-1.1.13-138支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 1221.1.13-136 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.13-136.jar下载1.21.1-1.1.13-136#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.13...53e1d902adae6e0b091cd796f788f9eb5eff66f5展开版本: 1.21.1-1.1.13-136支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 251.1.13-134 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.13-134.jar下载1.21.1-1.1.13-134#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.13...94249820d776a9c71f7f0366e2cebc249175b6ea展开版本: 1.21.1-1.1.13-134支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 581.1.13-132 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.13-132.jar下载1.21.1-1.1.13-132#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.13...380749e1fc1bb0611bbd650435e2a2ae1e74b896展开版本: 1.21.1-1.1.13-132支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 531.1.13 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.13.jar下载1.21.1-1.1.13#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.25.1 or higher.Fixes:* Fix HTTP requests to network elements failing, Closes #35展开版本: 1.21.1-1.1.13支持游戏: 1.21.1类型:NeoForgeRelease下载次数: 291.1.12-130 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.12-130.jar下载1.21.1-1.1.12-130#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.12...5fa08cc530f4fac76c504c3bc306753c44c5edcd展开版本: 1.21.1-1.1.12-130支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 391.1.12-129 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.12-129.jar下载1.21.1-1.1.12-129#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.12...d3f289a8760726a9ae94bc1b94934463a9262b43展开版本: 1.21.1-1.1.12-129支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 601.1.12-128 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.12-128.jar下载1.21.1-1.1.12-128#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.12...08e838212ee27af431fd963eef1f5afb4cf15c66展开版本: 1.21.1-1.1.12-128支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 321.1.12-125 for NeoForge 1.21.1integratedrest-1.21.1-neoforge-1.1.12-125.jar下载1.21.1-1.1.12-125#BetaChanges since last release: https://github.com/CyclopsMC/IntegratedREST/compare/1.21.1-1.1.12...88faab9dd17754c6aef389c866e79458f0193d2a展开版本: 1.21.1-1.1.12-125支持游戏: 1.21.1类型:NeoForgeBeta下载次数: 621.21-1.1.12IntegratedREST-1.21-neoforge-1.1.12.jar下载1.21-1.1.12#Release展开版本: 1.21-1.1.12支持游戏: 1.21, 1.21.1类型:NeoForgeRelease下载次数: 3411.20.4-1.1.12IntegratedREST-1.20.4-neoforge-1.1.12.jar下载1.20.4-1.1.12#Release展开版本: 1.20.4-1.1.12支持游戏: 1.20.4类型:NeoForgeRelease下载次数: 761.20.4-1.1.11IntegratedREST-1.20.4-neoforge-1.1.11.jar下载1.20.4-1.1.11#Release展开版本: 1.20.4-1.1.11支持游戏: 1.20.4类型:NeoForgeRelease下载次数: 411.20.4-1.1.10IntegratedREST-1.20.4-neoforge-1.1.10.jar下载1.20.4-1.1.10#Release展开版本: 1.20.4-1.1.10支持游戏: 1.20.4类型:NeoForgeRelease下载次数: 451.19.2-1.1.10IntegratedREST-1.19.2-1.1.10.jar下载1.19.2-1.1.10#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.17.0 or higher.Fixes:* Use content type application/ld+json instead of text/plain, Closes #28展开版本: 1.19.2-1.1.10支持游戏: 1.19.2类型:ForgeRelease下载次数: 1681.20.1-1.1.11IntegratedREST-1.20.1-1.1.11.jar下载1.20.1-1.1.11#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.18.4 or higher.Fixes:* Use content type application/ld+json instead of text/plain, Closes #28展开版本: 1.20.1-1.1.11支持游戏: 1.20.1类型:ForgeRelease下载次数: 1,5461.20.1-1.1.10IntegratedREST-1.20.1-1.1.10.jar下载1.20.1-1.1.10#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.18.4 or higher.Initial 1.20.1 release展开版本: 1.20.1-1.1.10支持游戏: 1.20.1类型:ForgeRelease下载次数: 1,0571.19.4-1.1.10IntegratedREST-1.19.4-1.1.10.jar下载1.19.4-1.1.10#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.18.2 or higher.Fixes:* Use IntegratedDynamicsSetupEvent to fix load order issues展开版本: 1.19.4-1.1.10支持游戏: 1.19.4类型:ForgeRelease下载次数: 941.19.4-1.1.9IntegratedREST-1.19.4-1.1.9.jar下载1.19.4-1.1.9#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.18.2 or higher.Fixes:* Fix crash when binding HTTP variable, Closes #25展开版本: 1.19.4-1.1.9支持游戏: 1.19.4类型:ForgeRelease下载次数: 851.19.4-1.1.8IntegratedREST-1.19.4-1.1.8.jar下载1.19.4-1.1.8#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.18.2 or higher.Initial 1.19.4 release展开版本: 1.19.4-1.1.8支持游戏: 1.19.4类型:ForgeRelease下载次数: 711.18.2-1.1.6IntegratedREST-1.18.2-1.1.6.jar下载1.18.2-1.1.6#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.13.4 or higher.Fixes:* Enable CORS requests, Closes #19展开版本: 1.18.2-1.1.6支持游戏: 1.18.2类型:ForgeRelease下载次数: 2371.19.2-1.1.9IntegratedREST-1.19.2-1.1.9.jar下载1.19.2-1.1.9#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.17.0 or higher.Fixes:* Enable CORS requests, Closes #19展开版本: 1.19.2-1.1.9支持游戏: 1.19.2类型:ForgeRelease下载次数: 1911.19.3-1.1.8IntegratedREST-1.19.3-1.1.8.jar下载1.19.3-1.1.8#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.17.3 or higher.Initial 1.19.3 release展开版本: 1.19.3-1.1.8支持游戏: 1.19.3类型:ForgeRelease下载次数: 1061.19.2-1.1.8IntegratedREST-1.19.2-1.1.8.jar下载1.19.2-1.1.8#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.17.0 or higher.Fixes:* Fix Netty not being shadowed fully展开版本: 1.19.2-1.1.8支持游戏: 1.19.2类型:ForgeRelease下载次数: 1151.19.2-1.1.7IntegratedREST-1.19.2-1.1.7.jar下载1.19.2-1.1.7#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.17.0 or higher.Fixes:* Fix Netty classes being shadowed incorrectly, Closes #23This could cause strange issues related to module resolution.展开版本: 1.19.2-1.1.7支持游戏: 1.19.2类型:ForgeRelease下载次数: 941.19.2-1.1.6IntegratedREST-1.19.2-1.1.6.jar下载1.19.2-1.1.6#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.16.1 or higher.Update to MC 1.19.2展开版本: 1.19.2-1.1.6支持游戏: 1.19.2类型:ForgeRelease下载次数: 911.19-1.1.6IntegratedREST-1.19-1.1.6.jar下载1.19-1.1.6#ReleaseAs always, don\'t forget to backup your world before updating!Requires CyclopsCore version 1.16.1 or higher.Changes:* Update to Forge 41.0.99展开版本: 1.19-1.1.6支持游戏: 1.19类型:ForgeRelease下载次数: 1091.19-1.1.5IntegratedREST-1.19-1.1.5.jar下载1.19-1.1.5#ReleaseAs always, don\'t forget to backup your world before updating!Initial 1.19 release.展开版本: 1.19-1.1.5支持游戏: 1.19类型:ForgeRelease下载次数: 93IntegratedREST-1.18.2-1.1.5.jarIntegratedREST-1.18.2-1.1.5.jar下载1.1.5#ReleaseAs always, don\'t forget to backup your world before updating!Initial 1.18.2 release.展开版本: 1.1.5支持游戏: 1.18.2类型:ForgeRelease下载次数: 139全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
集成REST |
楼主
2025-8-10 18:05:21
回复(0)
收起回复
|