tutorial:mixin_your_first_mixin
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:mixin_your_first_mixin [2025/10/16 17:42] – Fix remaining GauntTutorialMod mentions, misc. fixes based on bawnorton's feedback gauntrecluse | tutorial:mixin_your_first_mixin [2025/11/16 13:35] (current) – Minor fixes to try and simplify wordings and fix typos gauntrecluse | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | :!: //This page is currently a draft! It is not intended to be read by users of the wiki yet. Feedback will be appreciated but trust this page's information at your own risk!//\\ | + | ====== Tutorial: Making your first Mixin ====== |
| - | //Contact GauntRecluse (paleintrovert) on Discord to give feedback and suggestions on this draft// | + | |
| - | + | ||
| - | ====== Tutorial: Making your first Mixin (DRAFT) | + | |
| ===== Preamble ===== | ===== Preamble ===== | ||
| - | This is meant to be complementary to the [[tutorial: | + | This is meant to be complementary to the [[tutorial: |
| See [[tutorial: | See [[tutorial: | ||
| Line 29: | Line 26: | ||
| </ | </ | ||
| - | It is conventional practice to name your Mixin classes the target class with '' | + | It is conventional practice to name your Mixin classes the target class with '' |
| - | You'll notice we made the Mixin class '' | + | You'll notice we made the Mixin class '' |
| Accordingly, | Accordingly, | ||
| Line 91: | Line 88: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| //Sidenote: one does not need to put '' | //Sidenote: one does not need to put '' | ||
| Line 130: | Line 127: | ||
| </ | </ | ||
| - | The constructor | + | The constructor |
| ==== Debugging Mixins ==== | ==== Debugging Mixins ==== | ||
| Line 146: | Line 143: | ||
| @Inject(method = " | @Inject(method = " | ||
| private void logOnWorldLoad(CallbackInfo ci) { | private void logOnWorldLoad(CallbackInfo ci) { | ||
| - | | + | |
| } | } | ||
| } | } | ||
tutorial/mixin_your_first_mixin.1760636527.txt.gz · Last modified: 2025/10/16 17:42 by gauntrecluse