crwdns131471:0crwdne131471:0
crwdns131473:0crwdne131473:0
See also
- crwdns131475:0crwdne131475:0
crwdns131477:0crwdne131477:0
- crwdns131479:0crwdne131479:0
crwdns131481:0crwdne131481:0
crwdns131483:0crwdne131483:0
crwdns131485:0crwdne131485:0
dependencies { compile 'org.spongepowered:mixin:0.6.6-SNAPSHOT' }
crwdns131487:0crwdne131487:0
{ "package": "com.example.myplugin.mixin", "refmap": "mixins.myplugin.refmap.json", "target": "@env(DEFAULT)", "compatibilityLevel": "JAVA_8", "mixins": [ "MixinMinecraftServer" ] }
crwdns131489:0crwdne131489:0
package com.example.myplugin.mixin; import net.minecraft.server.MinecraftServer; import org.spongepowered.asm.mixin.Mixin; @Mixin(MinecraftServer.class) public abstract class MixinMinecraftServer { }
crwdns131491:0crwdne131491:0
crwdns131493:0crwdne131493:0
crwdns131495:0crwdne131495:0
--mixin mixins.myplugin.json
crwdns131497:0crwdne131497:0
crwdns131499:0crwdne131499:0
crwdns131501:0crwdne131501:0
buildscript { repositories { maven { name = 'sponge' url = 'https://repo.spongepowered.org/maven' } } dependencies { classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT' } } apply plugin: 'org.spongepowered.mixin'
crwdns131503:0crwdne131503:0
sourceSets { main { refMap = "mixins.myplugin.refmap.json" } }
crwdns131505:0crwdne131505:0
jar { manifest.attributes( 'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker', 'MixinConfigs': 'mixins.myplugin.json', 'FMLCorePluginContainsFMLMod': 'true', ) }
crwdns131507:0crwdne131507:0
gradle clean build