mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 00:38:00 +00:00
99cfb31b7c
Reverses the output. So it become easier to read. And I added nullchecks just incase.
36 lines
802 B
Java
36 lines
802 B
Java
package org.rev317.min.debug;
|
|
|
|
import java.awt.Graphics;
|
|
|
|
import org.parabot.core.paint.AbstractDebugger;
|
|
import org.rev317.min.api.methods.SceneObjects;
|
|
import org.rev317.min.api.wrappers.SceneObject;
|
|
|
|
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());
|
|
}
|
|
}
|
|
|
|
}
|