use of org.powerbot.bot.rt6.client.MapOffset in project powerbot by powerbot.
the class Game method mapOffset.
/**
* Determines the base of the loaded region.
*
* @return the {@link Tile} of the base
*/
public Tile mapOffset() {
final Client client = ctx.client();
if (client == null) {
return Tile.NIL;
}
final MapOffset b = client.getWorld().getMapOffset();
if (b.isNull()) {
return Tile.NIL;
}
return new Tile(b.getX(), b.getY(), client.getFloor());
}