crwdns120923:0crwdne120923:0

crwdns120925:0crwdne120925:0

See also

crwdns120927:0crwdne120927:0

crwdns120929:0crwdne120929:0

crwdns120931:0crwdne120931:0

crwdns120933:0crwdne120933:0

crwdns120935:0crwdne120935:0

  1. crwdns120937:0crwdne120937:0

    dependencies {
        compile 'org.spongepowered:mixin:0.7.11-SNAPSHOT'
    }
    
  2. crwdns120939:0crwdne120939:0

    {
        "required": true,
        "minVersion": "0.7.10",
        "package": "com.example.myplugin.mixin",
        "refmap": "mixins.myplugin.refmap.json",
        "target": "@env(DEFAULT)",
        "compatibilityLevel": "JAVA_8",
        "mixins": [
            "MixinMinecraftServer"
        ]
    }
    
  3. crwdns120941:0crwdne120941:0

    package com.example.myplugin.mixin;
    
    import net.minecraft.server.MinecraftServer;
    import org.spongepowered.asm.mixin.Mixin;
    
    @Mixin(MinecraftServer.class)
    public abstract class MixinMinecraftServer {
    
    }
    

crwdns120943:0crwdne120943:0

crwdns120945:0crwdne120945:0

  1. crwdns120947:0crwdne120947:0

    --mixin mixins.myplugin.json
    

crwdns120949:0crwdne120949:0

crwdns120951:0crwdne120951:0

  1. crwdns120953:0crwdne120953:0

    buildscript {
        repositories {
            maven {
                name = 'sponge'
                url = 'https://repo.spongepowered.org/maven'
            }
        }
        dependencies {
            classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
        }
    }
    
    apply plugin: 'org.spongepowered.mixin'
    
  2. crwdns120955:0crwdne120955:0

    sourceSets {
        main {
            ext.refMap = "mixins.myplugin.refmap.json"
        }
    }
    
  3. crwdns120957:0crwdne120957:0

    jar {
        manifest.attributes(
            'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
            'MixinConfigs': 'mixins.myplugin.json',
            'FMLCorePluginContainsFMLMod': 'true',
        )
    }
    
  4. crwdns120959:0crwdne120959:0

    gradle clean build