Architectury API Mod cho Minecraft 1.20.1, 1.21.1
Một api trung gian nhằm giúp phát triển các mod đa nền tảng dễ dàng hơn.
Giới thiệu mod Architectury API
Trò chuyện với chúng tôi trên Discord!
Một api trung gian nhằm giúp việc phát triển các mod đa nền tảng trở nên dễ dàng hơn.
Architectury API là gì
Architectury API là một api giúp trừu tượng hóa các lệnh gọi tới fabric api và forge api vì cả hai loader đều có cách triển khai khác nhau cho những thứ có thể được coi là giống nhau.
Architectury API được cập nhật thường xuyên, với các hook và tính năng mới. Hiện tại chứa hơn 90 event hook, trừu tượng hóa mạng, trừu tượng hóa lệnh gọi loader, trừu tượng hóa đăng ký game và annotation @ExpectPlatform dễ sử dụng (Chỉ hoạt động trên các phương thức static).
Tôi có thực sự cần API này không?
Architectury API chỉ là một phần của hệ sinh thái architectury, Architectury Plugin là gradle plugin cho phép tất cả các hành động đa nền tảng này.
Architectury API là tùy chọn cho các dự án được xây dựng trên architectury, bạn có thể tạo dự án architectury của mình chỉ với Architectury Plugin.
Ưu điểm của Architectury
- Mã nguồn mở
- Ít mã mẫu dư thừa hơn cho mod đa nền tảng của bạn
Bắt đầu tạo mod đa nền tảng
Architectury Loom: https://github.com/architectury/architectury-loom (một bản fork của Fabric Loom bổ sung khả năng phát triển đa nền tảng)
Gradle Plugin: https://github.com/architectury/architectury-plugin (bao gồm Architectury Injectables, dành cho annotation @ExpectPlatform)
Mod mẫu: https://github.com/architectury/architectury-example-mod (một mod mẫu đã ngừng phát triển sử dụng Architectury, nếu có thể, hãy dùng các template thay thế)
Mod Template: https://github.com/architectury/architectury-templates (một bộ template để bắt đầu sử dụng bộ công cụ Architectury)
Ví dụ: Cách sử dụng @ExpectPlatform
Ghi công
Trong một số phiên bản cũ hơn, thư viện này từng đi kèm typetools; bạn có thể tìm giấy phép của nó tại đây
Cách cài đặt 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.
Phiên bản
Kèm phụ thuộc
| Minecraft | Loader | Tệp | Ngày | Hành động |
|---|---|---|---|---|
| 26.3 | Fabric | 26.3608 KB 161 | ||
| 26.3 | NeoForge | 26.3608 KB 15 | ||
| 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 |
Yêu cầu để chạy
- Fabric APIbắt buộc
Đánh giá
Hãy là người đầu tiên đánh giá Architectury API


