Added Messages debugging and moved to Maven

This commit is contained in:
JKetelaar
2015-09-13 22:55:23 +02:00
parent 0d97513e8d
commit 2da56102c9
64 changed files with 3738 additions and 3680 deletions
@@ -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());
}
}
}