mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 00:38:00 +00:00
Added Messages debugging and moved to Maven
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.rev317.min.api.methods.Npcs;
|
||||
import org.rev317.min.api.wrappers.Npc;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public class DNpcs extends AbstractDebugger {
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
for (Npc n : Npcs.getNearest()) {
|
||||
System.out.println("ID: " + n.getDef().getId() + " Distance: " + n.distanceTo() + " Location: " + n.getLocation().toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user