Beispiel #1
0
 /**
  * Gets the Model of this object.
  *
  * @return The RSModel, or null if unavailable.
  */
 public RSModel getModel() {
   try {
     Model model = obj.getModel();
     if (model != null && model.getXPoints() != null) {
       return new RSObjectModel(methods, model, obj);
     }
   } catch (AbstractMethodError ignored) {
   }
   return null;
 }
Beispiel #2
0
 /**
  * Gets the ID of this object.
  *
  * @return The ID.
  */
 public int getID() {
   return obj.getID();
 }
Beispiel #3
0
 /**
  * Gets the RSTile on which this object is centered. An RSObject may cover multiple tiles, in
  * which case this will return the floored central tile.
  *
  * @return The central RSTile.
  * @see #getArea()
  */
 public RSTile getLocation() {
   return new RSTile(
       methods.client.getBaseX() + obj.getX() / 512,
       methods.client.getBaseY() + obj.getY() / 512,
       plane);
 }
Beispiel #4
0
 @Override
 public int hashCode() {
   return obj.hashCode();
 }