Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.wildermods.wilderforge.mixins;
- import org.spongepowered.asm.mixin.Mixin;
- import org.spongepowered.asm.mixin.injection.At;
- import org.spongepowered.asm.mixin.injection.Inject;
- import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
- import com.worldwalkergames.logging.ALogger.TraceConsumer;
- @Mixin(value = TraceConsumer.class, remap = false)
- public class TraceConsumerMixin {
- @Inject(at = @At(value = "INVOKE", target = "Ljava/lang/System;out{1}:Ljava/io/PrintStream;"), method = "take([Ljava/lang/String;IJLjava/lang/String;[Ljava/lang/Object;)V", cancellable = true)
- public void take(final String[] tags, final int level, final long time, final String message, final Object[] parameters, CallbackInfo info) {
- System.out.println("test");
- info.cancel();
- }
- }
Add Comment
Please, Sign In to add comment