What'S Different In 1.10.2 And 1.9.4
Well for you, nothing :D
But you can see the changes in the code here.
The only difference is on the registration system, as RegistryEvent doesn't exist yet, you must register models and animations in the preInit() of the game.
There are two important things to remember:
- You must register models before animations or the game will crash.
- You must put
dependencies = "required-after:craftstudioapi"in your @Mod annotation of your main class or the game may crash.
Here is an example ;).
If you can see the changes in the code here.
Et bien, rien du tout coté utilisateur :D
Vous pouvez voir les changement dans le code ici.
La seule différence est au niveau de l'enregistrement des modèles et animations, comme les RegistryEvent n'éxistent pas encore, il les enregistrer dans le preInit() du jeu.
Il y a deux points auquels il faut faire attention:
- Vous devez enregistrer les modèles avant les animations ou le jeu crashera.
- Vous devez mettre
dependencies = "required-after:craftstudioapi"dans l'annotations @Mod de votre classe principale ou le jeu pourrait crasher.
Voila un petit exemple.
Vous pouvez voir les changement dans le code ici.