tutorial:introduction
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:introduction [2020/08/26 08:34] – Fix up grammar elisezerotwo | tutorial:introduction [2023/09/13 21:20] (current) – ↷ Links adapted because of a move operation 2001:8a0:f4d2:c700:98c:bb27:6ad8:1dab | ||
---|---|---|---|
Line 23: | Line 23: | ||
If Minecraft already lets you do something, don't re-invent the wheel. | If Minecraft already lets you do something, don't re-invent the wheel. | ||
- | A good example of this is the "Registry" class, which lets you add blocks and items without any modifications to Minecraft' | + | A good example of this is the "<yarn class_2378> |
Minecraft also uses JSON data files for various data-driven features. | Minecraft also uses JSON data files for various data-driven features. | ||
Line 49: | Line 49: | ||
You should use these instead of writing your own mixins where possible to minimize the possibility of conflicts. | You should use these instead of writing your own mixins where possible to minimize the possibility of conflicts. | ||
- | You can find an incomplete list of [[documentation:libraries|third party libraries]] on this wiki. | + | You can find an incomplete list of [[community:library_mods|third party libraries]] on this wiki. |
===== Mixins ===== | ===== Mixins ===== | ||
Line 61: | Line 61: | ||
* Callback Injectors | * Callback Injectors | ||
* Redirect Injectors | * Redirect Injectors | ||
- | * Overwrites, you should never use these | + | * Overwrites |
This is not a complete list, but rather a quick overview. | This is not a complete list, but rather a quick overview. | ||
Line 92: | Line 92: | ||
==== Overwrite ==== | ==== Overwrite ==== | ||
- | Avoid overwrites completely. | + | Be very careful with how you use Overwrites. |
They replace a method entirely, removing all existing code and conflicting with any other types of mixins on the method. | They replace a method entirely, removing all existing code and conflicting with any other types of mixins on the method. | ||
They are extremely likely to conflict not just with other mods, but also with changes to Minecraft itself. | They are extremely likely to conflict not just with other mods, but also with changes to Minecraft itself. | ||
- | You most likely do not need an overwrite to do what you want to do, please use something else. | + | You most likely do not need an overwrite to do what you want to do. |
tutorial/introduction.txt · Last modified: 2023/09/13 21:20 by 2001:8a0:f4d2:c700:98c:bb27:6ad8:1dab