User Tools

Site Tools


tutorial:mixin_registration

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
tutorial:mixin_registration [2020/06/08 21:39] lvanderzandetutorial:mixin_registration [2024/06/13 11:24] (current) – change: accentuate that "client" and "server" fields in mixins.json refer to the physical side l1ttle
Line 24: Line 24:
 </code> </code>
  
-Providing a String ''%%"<modid>.mixins.json"%%'' inside the mixins array tells Fabric to load the mixins defined inside the file ''<modid>.mixins.json'' on **both client and server**.+Providing a String ''%%"<modid>.mixins.json"%%'' inside the mixins array tells Fabric to load the mixins defined inside the file ''<modid>.mixins.json''.
  
 ==== Register Mixins ==== ==== Register Mixins ====
Line 39: Line 39:
   "minVersion": "0.8",   "minVersion": "0.8",
   "package": "net.fabricmc.example.mixin",   "package": "net.fabricmc.example.mixin",
-  "compatibilityLevel": "JAVA_8",+  "compatibilityLevel": "JAVA_17",
   "mixins": [],   "mixins": [],
   "client": [   "client": [
Line 55: Line 55:
 The ''package'' field defines which folder (package) to find the Mixins in. The ''package'' field defines which folder (package) to find the Mixins in.
  
-The ''mixins'' array defines which classes should be loaded on both the client and server.+The ''mixins'' array defines which classes should be loaded on both the **physical** client and **physical** server.
  
-The ''client'' array defines which classes should be loaded on the client.+The ''client'' array defines which classes should be loaded only on the **physical** client.
  
-The ''server'' array defines which classes should be loaded on the server.+The ''server'' array defines which classes should be loaded only on the **physical** server.
  
-Following that logic: ''net.fabricmc.example.mixin.TitleScreenMixin'' is the mixin.+Following that logic: ''net.fabricmc.example.mixin.TitleScreenMixin'' is the mixin class that will be loaded on the client.
  
  
tutorial/mixin_registration.txt · Last modified: 2024/06/13 11:24 by l1ttle