crwdns140487:0crwdne140487:0

Warning

crwdns140489:0crwdne140489:0

crwdns140491:0crwdne140491:0

See also

crwdns140493:0crwdne140493:0

crwdns140495:0crwdne140495:0

crwdns140497:0crwdne140497:0

crwdns140499:0crwdne140499:0

crwdns140501:0crwdne140501:0

  1. crwdns140503:0crwdne140503:0

    dependencies {
        compile 'org.spongepowered:mixin:0.7.11-SNAPSHOT'
    }
    
  2. crwdns140505:0crwdne140505: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. crwdns140507:0crwdne140507:0

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

crwdns140509:0crwdne140509:0

crwdns140511:0crwdne140511:0

  1. crwdns140513:0crwdne140513:0

    --mixin mixins.myplugin.json
    

crwdns140515:0crwdne140515:0

crwdns140517:0crwdne140517:0

  1. crwdns140519:0crwdne140519:0

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

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

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

    gradle clean build