mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-04 08:39:23 +00:00
Reflection support for accessors (wrappers)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.rev317.min.api.wrappers;
|
||||
|
||||
import org.parabot.core.reflect.RefClass;
|
||||
import org.rev317.min.accessors.SceneObjectTile;
|
||||
import org.rev317.min.api.interfaces.Locatable;
|
||||
import org.rev317.min.api.methods.Calculations;
|
||||
@@ -93,6 +94,14 @@ public class SceneObject implements Locatable {
|
||||
Menu.interact(this, actionIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the accessor class
|
||||
* @return RefClass of accessor
|
||||
*/
|
||||
public RefClass getRefClass() {
|
||||
return new RefClass(this.accessor);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("[ID: %d, X: %d, Y: %d]", getId(), getLocalRegionX(), getLocalRegionY());
|
||||
|
||||
Reference in New Issue
Block a user