User Tools

Site Tools


tutorial:introduction

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:introduction [2019/11/03 14:49] – [Mixins] layltutorial:introduction [2019/11/03 14:56] – [Overwrite] layl
Line 66: Line 66:
   * 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 ====
  
-Probably the safest way to use mixins, new interface implementations can be added to any Minecraft class.+This is probably the safest way to use mixins
 +New interface implementations can be added to any Minecraft class.
 You can then access the interface by casting the class to it. You can then access the interface by casting the class to it.
 This doesn't change anything about the class, it only adds new things, and is therefore very unlikely to conflict. This doesn't change anything about the class, it only adds new things, and is therefore very unlikely to conflict.
Line 91: Line 93:
 ==== Overwrite ==== ==== Overwrite ====
  
-Never use overwrites. +Avoid overwrites completely
-Overwrites replace a method entirely.+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