crwdns150737:0crwdne150737:0
crwdns150739:0crwdne150739:0
See also
- crwdns150741:0crwdne150741:0
crwdns150743:0crwdne150743:0
- crwdns150745:0crwdne150745:0
crwdns150747:0crwdne150747:0
crwdns150749:0crwdne150749:0
crwdns150751:0crwdne150751:0
dependencies { compile 'org.spongepowered:mixin:0.6.6-SNAPSHOT' }
crwdns150753:0crwdne150753:0
{ "package": "com.example.myplugin.mixin", "refmap": "mixins.myplugin.refmap.json", "target": "@env(DEFAULT)", "compatibilityLevel": "JAVA_8", "mixins": [ "MixinMinecraftServer" ] }
crwdns150755:0crwdne150755:0
package com.example.myplugin.mixin; import net.minecraft.server.MinecraftServer; import org.spongepowered.asm.mixin.Mixin; @Mixin(MinecraftServer.class) public abstract class MixinMinecraftServer { }
crwdns150757:0crwdne150757:0
crwdns150759:0crwdne150759:0
crwdns150761:0crwdne150761:0
--mixin mixins.myplugin.json
crwdns150763:0crwdne150763:0
crwdns150765:0crwdne150765:0
crwdns150767:0crwdne150767: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'
crwdns150769:0crwdne150769:0
sourceSets { main { refMap = "mixins.myplugin.refmap.json" } }
crwdns150771:0crwdne150771:0
jar { manifest.attributes( 'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker', 'MixinConfigs': 'mixins.myplugin.json', 'FMLCorePluginContainsFMLMod': 'true', ) }
crwdns150773:0crwdne150773:0
gradle clean build