your current location:首页 > news>Mi Xin Extras Minecraft

Mi Xin Extras Minecraft

2024-12-12 09:25:02|Myriagame |source:minecraft skins

Mixinextras

This is a small supporting library of Mixin, which aims to help you write Mixin in a more expressive and compatible way.

More information about each function provided can be found in Wiki.

set up

Mixinextras can be used on Maven Central.

Setting steps vary from the platform:

Fabric or Quilt

From 0.15.0 Fabric Loader, the Qual Loader has contained Mixinextras from 0.23.0.

 Dependencies {Include (Implementation (AnnotationProcessor ("IO.Github.llamalad7: mixinextras-0.2.2")))} /pre>

Using NeoGradle's Neoforge

Neoforge's version 20.2.84-Beta has contained Mixinextras.If you want to maintain the compatibility with the old version, or if you want to use different versions provided, see below:

 jarjar.enable () dependencies {Implementation (jarjar ("IO. Github.llamalad7: mixinextras-neoforge: 0.3.2") ar.ranged (IT, "[0.3.2,) ")}} tasks.named ('Build'). Configure {dependson ('jarjar')} 

Use Forgegradle's forge 1.18.2+

 DependenCies {Implementation (AnnotationProcessor ("IO.Github.llamalad7: Mixinextras-Common: 0.2.0"))))))) Implementation jarjar ("IO.Github.llamalad7: Mixinextras-Forge: 0.2.0 ")) {jarjar.ranged (IT," [0.2.0,) ")}} 

Use Architectury LOOM's forge 1.18.2+

 DependenCies {Implementation (AnnotationProcessor ("IO. Github.llamalad7: mixinextras-common: 0.2.0") (Include ("IO.GITHUB. Llamalad7: Mixinextras-Forge: 0.2.0 "))} 

Other platforms

This is just a rough guide.You need to understand the details of setting shadowjar for your platform.

 plugins {id "com.github.johnrenrengelman.Shadow" version "8.1.0"} configurations {iMplementation.extExTENDSFROM Shadow} PENDENCIES {Shadow (AnnotationProcessor ("IO. Github.llamalad7:mixTras-Common: 0.2.0 "))} Shadowjar {Configurations = [Project.configurations.Shadow] relocate (" com.llamalad7.mixinextras "," youR.Pack Age.goes.here.mixinextras ".Important!} 
, in addition, some MIXIN front modules, such as 1.12.2 MixinBooter, and Unimixins of 1.7.10 have also included Mixinextras.

initialization

If you are using Fabric, Quilt, or FORGE 1.18.2+, you can skip this part.Please follow the steps above.

To initialize mixinextras, just call

 mixinextrasbootstrap.init (); 

Appropriate earlier.In almost all cases, it is recommended to make an IMIXINCONFIGPLUGIN and initialize Mixinextras in its ONLOAD method.