/** * 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; }
/** * Gets the ID of this object. * * @return The ID. */ public int getID() { return obj.getID(); }
/** * 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); }
@Override public int hashCode() { return obj.hashCode(); }