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,35 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.rev317.min.api.methods.SceneObjects;
|
||||
import org.rev317.min.api.wrappers.SceneObject;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public class DSceneObjects extends AbstractDebugger {
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
SceneObject[] objects = SceneObjects.getNearest();
|
||||
if (objects == null || objects.length == 0)
|
||||
return;
|
||||
|
||||
for (int i = objects.length - 1; i >= 0; i--) {
|
||||
System.out.println(
|
||||
" ID: " + objects[i].getId() +
|
||||
" UID: " + objects[i].getHash() +
|
||||
" Location: " + objects[i].getLocation() +
|
||||
" Distance: " + objects[i].distanceTo());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user