If this is any group other than 'net.minecraft', it is assumed // that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied. Specify the version of Minecraft to use. Add the Mixin AP dependency to the dependencies block: The AP configuration for main is called annotationProcessor. It should currently contain the minecraft dependency and a bunch of comments, as well as any other dependencies you've added manually. For the purposes of this guide we will assume that the version is 0.8.5 (the current release version at the time of writing). This is not the dependencies block in the buildscript block at the top of your gradle file, but the larger dependencies block further down the file. To add the Mixin AP dependency to your project locate the dependencies block for the project. The AP dependency should be the same version or newer as the version used in your project (if you're not sure what version of Mixin you're using, see the section at the end of this guide). MixinGradle's job is to configure the Mixin Annotation Processor (AP), however the AP is not applied automatically, we need to add it as a dependency. } Step 2 - Adding the Mixin Annotation Processor We will add the MixinGradle plugin by adding the following line to end of the plugins block, before the closing curly brace: ![]() The plugins block already contains the necessary plugins for the Forge MDK. Open your adle and locate the plugins block at the top of the file. Configure options for MixinGradle via the mixin closure.įor the purposes of this guide, I will assume that your mixin config is named and the refmap is named and that you are using only the main SourceSet. ![]() Add the Mixin Annotation Processor dependency.We will make the following changes to the adle in order to configure the project to be run in development, and to manage obfuscation ![]() This guide asssumes that you have already created a package to contain your mixins and a mixin config to declare the mixins and options. This guide explains how to have your mixins function in the forge UserDev environment, and also how to configure your build so that obfuscation information is properly generated for your mixins. In fact doing so will likely cause issues.Īs explained in the Obfuscation and Mixins chapter, certain mixin features require special handling in order to cross the obfuscation boundary when you build your mod for production. Mixin now ships as a library with Minecraft Forge which means it is no longer necessary, as it was in legacy versions, to shade Mixin into your mod jar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |