Gamebuster

Untitled

Aug 11th, 2021 (edited)
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. package com.wildermods.wilderforge.mixins;
  2.  
  3. import org.spongepowered.asm.mixin.Mixin;
  4. import org.spongepowered.asm.mixin.injection.At;
  5. import org.spongepowered.asm.mixin.injection.Inject;
  6. import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
  7.  
  8. import com.worldwalkergames.logging.ALogger.TraceConsumer;
  9.  
  10. @Mixin(value = TraceConsumer.class, remap = false)
  11. public class TraceConsumerMixin {
  12.  
  13.     @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)
  14.     public void take(final String[] tags, final int level, final long time, final String message, final Object[] parameters, CallbackInfo info) {
  15.         System.out.println("test");
  16.         info.cancel();
  17.     }
  18.    
  19. }
Add Comment
Please, Sign In to add comment