Architectury API MODについて
Discordで私たちと話しましょう!
マルチプラットフォームModの開発を容易にすることを目的とした仲介APIです。
Architectury APIとは
Architectury APIは、Fabric APIとForge APIへの呼び出しを抽象化するAPIです。両ローダーは同じと見なせるものでも異なる実装を持っているためです。
Architectury APIは定期的に更新され、新しいフックや機能が追加されます。現在、90以上のイベントフック、ネットワーキングの抽象化、ローダー呼び出しの抽象化、ゲームレジストリの抽象化、そして使いやすい@ExpectPlatformアノテーション(静的メソッドでのみ動作)を含んでいます。
このAPIは本当に必要ですか?
Architectury APIはArchitecturyエコシステムの一部にすぎません。Architectury Pluginは、これらすべてのマルチプラットフォーム操作を可能にするGradleプラグインです。
Architectury APIはArchitectury上に構築されたプロジェクトでは任意です。Architectury PluginだけでArchitecturyプロジェクトを作成できます。
Architecturyの利点
- オープンソース
- マルチプラットフォームModの定型コードを削減
マルチプラットフォームModの作成を始める
Architectury Loom: https://github.com/architectury/architectury-loom (マルチプラットフォーム開発機能を追加したFabric Loomのフォーク)
Gradle Plugin: https://github.com/architectury/architectury-plugin (@ExpectPlatformアノテーション用のArchitectury Injectablesを含む)
Example Mod: https://github.com/architectury/architectury-example-mod (Architecturyを使用した廃止されたサンプルMod。可能であればテンプレートを使用してください)
Mod Templates: https://github.com/architectury/architectury-templates (Architecturyツールチェーンを使い始めるためのテンプレート集)
例: @ExpectPlatformの使用法
クレジット
一部の古いバージョンでは、このライブラリはtypetoolsをバンドルしていました。そのライセンスはここで確認できます
Architectury APIのインストール方法
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.16–26.3 on Fabric, Forge or NeoForge automatically, together with its dependencies: Fabric API.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file architectury-fabric-22.0.5.jar (608 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it. Required dependencies go there too: Fabric API.
Launch the loader profile
Open “Mods” in the main menu: Architectury API should be in the list.
On a server
A server on Fabric, Forge or NeoForge
The mod only works on a server with the same loader and game version, for example 26.3.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
バージョン
依存関係あり
| Minecraft | ローダー | ファイル | 日付 | 操作 |
|---|---|---|---|---|
| 26.3 | Fabric | 26.3608 KB 161 | ||
| 26.3 | NeoForge | 26.3608 KB 14 | ||
| 26.2 | Fabric | 26.2610 KB 65 | ||
| 26.2 | NeoForge | 26.2607 KB 1 | ||
| 26.1.2 | NeoForge | 26.1.2604 KB | ||
| 26.1.2 | Fabric | 26.1.2608 KB 22 | ||
| 26.3 | NeoForge | 26.3608 KB 1 | ||
| 26.3 | Fabric | 26.3608 KB 20 |
動作に必要なもの
レビュー
Architectury APIの最初の評価を書きませんか


