Add slf4j to mixins and expose logger in Hooks for them
This commit is contained in:
@@ -35,7 +35,6 @@ import com.google.inject.Injector;
|
|||||||
import java.awt.Graphics;
|
import java.awt.Graphics;
|
||||||
import java.awt.Graphics2D;
|
import java.awt.Graphics2D;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import net.runelite.api.ChatMessageType;
|
import net.runelite.api.ChatMessageType;
|
||||||
import net.runelite.api.Client;
|
import net.runelite.api.Client;
|
||||||
import net.runelite.api.MainBufferProvider;
|
import net.runelite.api.MainBufferProvider;
|
||||||
@@ -52,10 +51,14 @@ import net.runelite.client.task.Scheduler;
|
|||||||
import net.runelite.client.ui.overlay.OverlayLayer;
|
import net.runelite.client.ui.overlay.OverlayLayer;
|
||||||
import net.runelite.client.ui.overlay.OverlayRenderer;
|
import net.runelite.client.ui.overlay.OverlayRenderer;
|
||||||
import net.runelite.client.ui.overlay.infobox.InfoBoxManager;
|
import net.runelite.client.ui.overlay.infobox.InfoBoxManager;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@Slf4j
|
|
||||||
public class Hooks
|
public class Hooks
|
||||||
{
|
{
|
||||||
|
// must be public as the mixins use it
|
||||||
|
public static final Logger log = LoggerFactory.getLogger(Hooks.class);
|
||||||
|
|
||||||
private static final long CHECK = 600; // ms - how often to run checks
|
private static final long CHECK = 600; // ms - how often to run checks
|
||||||
|
|
||||||
private static final Injector injector = RuneLite.getInjector();
|
private static final Injector injector = RuneLite.getInjector();
|
||||||
|
|||||||
@@ -37,6 +37,12 @@
|
|||||||
<name>RuneLite Mixins</name>
|
<name>RuneLite Mixins</name>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
<version>1.7.21</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.runelite.rs</groupId>
|
<groupId>net.runelite.rs</groupId>
|
||||||
<artifactId>api</artifactId>
|
<artifactId>api</artifactId>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
package net.runelite.client.callback;
|
package net.runelite.client.callback;
|
||||||
|
|
||||||
import com.google.common.eventbus.EventBus;
|
import com.google.common.eventbus.EventBus;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dummy class to make the mixins to compile.
|
* Dummy class to make the mixins to compile.
|
||||||
@@ -33,5 +34,7 @@ import com.google.common.eventbus.EventBus;
|
|||||||
*/
|
*/
|
||||||
public class Hooks
|
public class Hooks
|
||||||
{
|
{
|
||||||
|
public static Logger log;
|
||||||
|
|
||||||
public static EventBus eventBus;
|
public static EventBus eventBus;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user