An application for loading bytebuddy advice interceptors.
You will need to have the jdk installed and java in your path or replace "java" with the file location.
java -jar mixy.jar -jar jartorun.jar
On first run mixy will create a mixins folder if it does not already exist.
To write a mixin you will need to annotate a class you want to mixin to another with the Mixin annotation. Example code below. Take a look at the advice javadocs for more advanced usage.
package com.clubobsidian.mixintest;
import java.util.logging.Level;
import org.bukkit.Bukkit;
import com.clubobsidian.mixy.annotation.Mixin;
import net.bytebuddy.asm.Advice;
@Mixin("org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer")
public class CraftPlayerMessageMixin {
@Advice.OnMethodEnter
public static void sendMessage()
{
Bukkit.getServer().getLogger().log(Level.INFO, "MIXIN");
}
}