Architectury API Mod pour Minecraft 1.20.1, 1.21.1
Une API intermédiaire visant à faciliter le développement de mods multiplateformes.
À propos du mod Architectury API
Parlez-nous sur Discord !
Une API intermédiaire visant à faciliter le développement de mods multiplateformes.
Qu'est-ce que l'Architectury API
Architectury API est une API permettant d'abstraire les appels à l'API Fabric et à l'API Forge, car les deux loaders ont des implémentations différentes de ce qui peut être perçu comme la même chose.
Architectury API est mise à jour régulièrement, avec de nouveaux hooks et fonctionnalités. Elle contient actuellement plus de 90 hooks d'événements, une abstraction du networking, une abstraction des appels au loader, une abstraction du registre de jeu et une annotation @ExpectPlatform facile à utiliser (fonctionne uniquement sur les méthodes statiques).
Ai-je vraiment besoin de cette API ?
Architectury API n'est qu'une partie de l'écosystème architectury, Architectury Plugin est le plugin gradle qui permet toutes ces actions multiplateformes.
Architectury API est facultative pour les projets construits sur architectury, vous pouvez créer votre projet architectury avec seulement Architectury Plugin.
Avantages d'Architectury
- Open source
- Moins de code répétitif pour votre mod multiplateforme
Débuter avec la création de mods multiplateformes
Architectury Loom : https://github.com/architectury/architectury-loom (un fork de Fabric Loom ajoutant des capacités de développement multiplateforme)
Plugin Gradle : https://github.com/architectury/architectury-plugin (inclut Architectury Injectables, pour l'annotation @ExpectPlatform)
Mod d'exemple : https://github.com/architectury/architectury-example-mod (un mod d'exemple abandonné utilisant Architectury, si possible, utilisez plutôt les templates)
Templates de mods : https://github.com/architectury/architectury-templates (un ensemble de templates pour débuter avec la chaîne d'outils Architectury)
Exemple : Utilisation de @ExpectPlatform
Crédits
Dans certaines versions plus anciennes, cette bibliothèque incluait typetools ; vous pouvez trouver sa licence ici
Comment installer 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.
Versions
Avec dépendances
| Minecraft | Loader | Fichier | Date | Actions |
|---|---|---|---|---|
| 26.3 | Fabric | 26.3608 Ko 163 | ||
| 26.3 | NeoForge | 26.3608 Ko 15 | ||
| 26.2 | Fabric | 26.2610 Ko 65 | ||
| 26.2 | NeoForge | 26.2607 Ko 1 | ||
| 26.1.2 | NeoForge | 26.1.2604 Ko | ||
| 26.1.2 | Fabric | 26.1.2608 Ko 22 | ||
| 26.3 | NeoForge | 26.3608 Ko 1 | ||
| 26.3 | Fabric | 26.3608 Ko 20 |
Ce qu'il faut pour l'exécuter
- Fabric APIobligatoire
Avis
Soyez le premier à noter Architectury API


