tutorial:introduction
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:introduction [2019/11/03 14:53] – [Adding Interfaces] layl | tutorial:introduction [2019/11/03 23:11] – [Native Minecraft APIs] layl | ||
---|---|---|---|
Line 25: | Line 25: | ||
A good example of this is the " | A good example of this is the " | ||
- | Minecraft | + | Minecraft also uses JSON data files for various data-driven features. |
- | These JSON files are injected by the Fabric API (not the loader!). | + | You can add JSON files to your mod, which are then injected by the Fabric API. |
- | They' | + | |
For example, block models and loot tables are implemented through JSON files. | For example, block models and loot tables are implemented through JSON files. | ||
Line 47: | Line 46: | ||
Because the Fabric API is intentionally kept small and focused, third party APIs exist to fill in the gaps. | Because the Fabric API is intentionally kept small and focused, third party APIs exist to fill in the gaps. | ||
- | Mixins allow any third party library to affect Minecraft' | + | Mixins allow any third party library to affect Minecraft' |
You should use these instead of writing your own mixins where possible to minimize the possibility for conflicts. | You should use these instead of writing your own mixins where possible to minimize the possibility for conflicts. | ||
- | A good example | + | You can find an incomplete lists of [[documentation:libraries|third party libraries]] on this wiki. |
- | + | ||
===== Mixins ===== | ===== Mixins ===== | ||
Line 66: | Line 63: | ||
* Overwrites, you should never use these | * Overwrites, you should never use these | ||
+ | This is not a complete list, but rather a quick overview. | ||
+ | Some mixin types are omitted here. | ||
==== Adding Interfaces ==== | ==== Adding Interfaces ==== | ||
Line 92: | Line 90: | ||
==== Overwrite ==== | ==== Overwrite ==== | ||
- | Never use overwrites. | + | Avoid overwrites |
- | Overwrites | + | 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, please use something else. |
tutorial/introduction.txt · Last modified: 2023/09/13 21:20 by 2001:8a0:f4d2:c700:98c:bb27:6ad8:1dab