Reflection support for accessors (wrappers)

This commit is contained in:
Clisprail
2014-08-05 20:31:58 +02:00
parent fd4b0e4121
commit 7216426567
5 changed files with 47 additions and 0 deletions
@@ -1,5 +1,6 @@
package org.rev317.min.api.wrappers;
import org.parabot.core.reflect.RefClass;
import org.rev317.min.api.interfaces.Locatable;
import org.rev317.min.api.methods.Calculations;
import org.rev317.min.api.methods.Game;
@@ -75,5 +76,13 @@ public class GroundItem implements Locatable {
public int getId() {
return accessor.getId();
}
/**
* Gets the accessor class
* @return RefClass of accessor
*/
public RefClass getRefClass() {
return new RefClass(this.accessor);
}
}