mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 08:39:09 +00:00
31 lines
665 B
Java
31 lines
665 B
Java
package org.rev317.min.debug;
|
|
|
|
import org.parabot.core.Context;
|
|
import org.parabot.core.paint.AbstractDebugger;
|
|
import org.rev317.min.api.methods.Players;
|
|
|
|
import java.awt.*;
|
|
|
|
public class DAnimation extends AbstractDebugger {
|
|
private boolean enabled;
|
|
|
|
@Override
|
|
public void paint(Graphics g) {
|
|
Context.getInstance().getPaintDebugger().addLine("Animation: " + Players.getMyPlayer().getAnimation());
|
|
}
|
|
|
|
@Override
|
|
public boolean isEnabled() {
|
|
return enabled;
|
|
}
|
|
|
|
@Override
|
|
public void toggle() {
|
|
enabled = !enabled;
|
|
|
|
if (enabled) {
|
|
Players.getMyPlayer().getAnimation();
|
|
}
|
|
}
|
|
}
|