tutorial:mixin_registration
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:mixin_registration [2020/06/08 21:39] – lvanderzande | tutorial:mixin_registration [2025/09/23 15:35] (current) – Rephrased naming convention section for mixin interfaces to no longer imply the I prefix for interfaces is standardized. Minor rephrasings. Fix internal link to accessor page containing "&" rather than "&" gauntrecluse | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| </ | </ | ||
| - | Providing a String '' | + | Providing a String '' |
| ==== Register Mixins ==== | ==== Register Mixins ==== | ||
| Line 32: | Line 32: | ||
| We still have to define which mixins to load and where these mixins are located. | We still have to define which mixins to load and where these mixins are located. | ||
| - | Inside your registered | + | A typical |
| <code json> | <code json> | ||
| Line 39: | Line 39: | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| " | " | ||
| " | " | ||
| Line 47: | Line 47: | ||
| " | " | ||
| " | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| } | } | ||
| } | } | ||
| Line 53: | Line 56: | ||
| The **4** main fields you should worry about when getting started with mixins are the '' | The **4** main fields you should worry about when getting started with mixins are the '' | ||
| - | The '' | + | * The '' |
| + | * The '' | ||
| + | * The '' | ||
| + | * The '' | ||
| - | The '' | + | Following that logic: |
| - | The '' | ||
| - | The '' | + | The other fields' |
| - | Following | + | * The '' |
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * The main one to keep in mind is '' | ||
| + | * '' | ||
| + | * The main one to keep in mind is '' | ||
| + | There are other fields that can optionally be added, most of which only serve specific purposes that are outside of the scope of a general explanation. There is, however, one that is relevant for MixinExtras: | ||
| + | * '' | ||
| + | |||
| + | :!: It is fine, especially if you are a beginner, to not necessarily understand the above fields fully. You should ask in the Fabric or SpongePowered Discord about clarifications on any of the concepts or fields you do not understand from this page. It may help improve your overall Mixin comprehension, | ||
| + | |||
| + | ---- | ||
| + | For further reading, check out the [[https:// | ||
tutorial/mixin_registration.1591652369.txt.gz · Last modified: 2020/06/08 21:39 by lvanderzande