tutorial:modding_tips
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tutorial:modding_tips [2025/09/22 16:23] – [Mixins] Readjust some phrasing gauntrecluse | tutorial:modding_tips [2026/01/24 13:36] (current) – Fix misc. Mixin issues, mark Mixin segment as likely being removed in the future; gauntrecluse | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ===== Mixins ===== | ===== Mixins ===== | ||
| + | :!: //This segment will likely be removed from this page once it is ensured the information contained within it is detailed upon on more specialized pages.// | ||
| It should be kept in mind whenever learning about Mixin in **any** capacity that any example is limited to its own situation. No example should be directly copied, and you should prioritize using examples as ways to better understand syntax and general principles, rather than a tutorial to achieve your specific goal. //Every// Mixin you make should be tailored to its isolated use-case.\\ | It should be kept in mind whenever learning about Mixin in **any** capacity that any example is limited to its own situation. No example should be directly copied, and you should prioritize using examples as ways to better understand syntax and general principles, rather than a tutorial to achieve your specific goal. //Every// Mixin you make should be tailored to its isolated use-case.\\ | ||
| Refer to relevant wikis and Discord help channels mentioned further in this section when you are in doubt or encounter an issue, getting direct help and asking questions is a natural and expected part of learning Mixins and should be prioritized when there is no obvious Wiki answer. This being kept in mind, the following are loose, general advice for using Mixin in your project. | Refer to relevant wikis and Discord help channels mentioned further in this section when you are in doubt or encounter an issue, getting direct help and asking questions is a natural and expected part of learning Mixins and should be prioritized when there is no obvious Wiki answer. This being kept in mind, the following are loose, general advice for using Mixin in your project. | ||
| - | * To cast a class to an interface | + | * When needing |
| - | * @Redirect and @ModifyConstant mixins cannot | + | * '' |
| - | * MixinExtras, | + | * MixinExtras, |
| + | |||
| + | * If you're adding custom fields or methods | ||
| + | |||
| + | To learn more on Mixins and how to use them, refer to [[tutorial: | ||
| - | * If you're adding non-private custom fields or methods to a target class, prefix them with " | ||
| - | * To learn more on Mixins and how to use them, refer to [[tutorial: | ||
| ===== Networking ===== | ===== Networking ===== | ||
tutorial/modding_tips.txt · Last modified: 2026/01/24 13:36 by gauntrecluse