User Tools

Site Tools


tutorial:mixin_introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorial:mixin_introduction [2020/02/07 02:00] – created draylartutorial:mixin_introduction [2023/12/18 01:41] (current) solidblock
Line 1: Line 1:
 ====== Introduction to Mixins ====== ====== Introduction to Mixins ======
-Mixins are a powerful and important tool used in the Fabric ecosystem. Their primary use case is modifying existing code in the base game, whether it be through injecting custom logic, removing mechanics, or modifying values.+Mixins are a powerful and important tool used in the Fabric ecosystem. Their primary use case is modifying existing code in the base game,  
 +whether it be through injecting custom logic, removing mechanics, or modifying values. Note that **mixins must be written in Java**, even if you use Kotlin or another language. 
 + 
 +Since Fabric Loader 0.15, MixinExtras has become bundled in Fabric Loader, then you can directly use MixinExtras to better manupulate the mixins. 
 + 
 +//For a more accurate complete walkthrough on Mixin functionality, usage, and mechanics, view the [[https://github.com/SpongePowered/Mixin/wiki|Mixin Official Wiki]]. Additional documentation can be found in the [[https://jenkins.liteloader.com/view/Other/job/Mixin/javadoc/index.html|Mixin Javadoc]].// 
 + 
 +The Fabric Wiki also offers several articles that provide practical examples and explanations: 
 +  * [[tutorial:mixin_registration|Mixin registration]] 
 +  * [[tutorial:mixin_injects|Injects]] 
 +  * [[tutorial:mixin_accessors|Accessors and Invokers]] 
 +  * [[tutorial:mixin_redirectors|Redirectors]] 
 +    * [[tutorial:mixin_redirectors_methods|Method redirectors]] 
 +  * [[tutorial:mixin_tips|Tips]] 
 +  * [[tutorial:mixin_examples|Examples]] 
 +  * [[tutorial:mixin_hotswaps|Hotswapping Mixins]] 
 +  * [[tutorial:mixin_export|Exporting Mixin Classes]] 
 +  * [[tutorial:accesswideners |Access Wideners]] 
 +  * [[tutorial:reflection|Reflection]] 
 +  * [[tutorial:interface_injection|Interface Injection]]  
  
-For a complete walkthrough on Mixin functionality, usage, and mechanics, view the official wiki [[https://github.com/SpongePowered/Mixin/wiki|here]]. The Fabric Wiki also offers several articles that provide practical examples and explanations: 
-  - [[https://fabricmc.net/wiki/tutorial:mixin_injects|Mixin Injects]] 
-  - [[https://fabricmc.net/wiki/tutorial:mixin_hotswaps|Mixin Hotswapping]] 
tutorial/mixin_introduction.1581040833.txt.gz · Last modified: 2020/02/07 02:00 by draylar