RuneMate Documentation
  • 👋Welcome to RuneMate
  • 🌟Getting Started
    • Project Setup
    • Gradle Plugin
      • Configuration
      • Manifests
      • Publishing
      • Advanced Builds
  • 🖥️API
    • Querying
    • Delays
    • Game World
      • Instances
      • Navigation
      • Global Pathfinding
    • Default User Interface
      • Settings
    • Varps, Varbits and Varcs
    • Events
  • ❔Support
    • Frequently Asked Questions
      • Billing FAQ
      • Client FAQ
    • Using RuneLite
      • Linux
    • Using OSRS
Powered by GitBook
On this page
  1. API
  2. Game World

Instances

Working with in-game instances.

PreviousGame WorldNextNavigation

Last updated 10 months ago

Let's look at how to convert between a Coordinate in the "real" world to it's mapped position within the current instance, using and .

//South-west portal in pest control in the "real" world
Coordinate portal = new Coordinate(2645, 2572, 0);

//This gives us the position of the portal coordinate in our current instance
Coordinate instancedPortal = Coordinate.instance(portal);

//This converts that position back to the "real world"
Coordinate uninstancedPortal = Coordinate.uninstance(instancedPortal);

assert uninstancedPortal.equals(portal);
🖥️
Coordinate.instance()
Coordinate.uninstance()