Class House

java.lang.Object
net.storm.sdk.game.House

public class House extends Object
Provides static utility methods for player-owned house (POH) operations. This class allows checking house location, whether the player is inside their house, and provides methods for entering the house.

All methods in this class are static and delegate to the underlying IHouse implementation.

Example usage:


 // Check if player is inside their house
 if (House.isInside()) {
     System.out.println("Currently inside POH");
 }

 // Get the house location
 HouseLocation location = House.getLocation();
 System.out.println("House is in: " + location);

 // Get the outside world point of the house portal
 WorldPoint portalLocation = House.getOutsideLocation();

 // Enter the house if possible
 if (House.canEnter()) {
     House.enter();
 }
 
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Checks whether the player can currently enter their house.
    static void
    Enters the player's house.
    Gets the location where the player's house is built.
    static net.runelite.api.coords.WorldPoint
    Gets the world point just outside the player's house portal.
    static boolean
    Checks whether the player is currently inside their player-owned house.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • House

      public House()
  • Method Details

    • getLocation

      public static HouseLocation getLocation()
      Gets the location where the player's house is built. House locations include places like Rimmington, Taverly, Pollnivneach, etc.
      Returns:
      the HouseLocation of the player's house
    • getOutsideLocation

      public static net.runelite.api.coords.WorldPoint getOutsideLocation()
      Gets the world point just outside the player's house portal. This is the location where the player appears when leaving their house.
      Returns:
      the WorldPoint outside the house
    • isInside

      public static boolean isInside()
      Checks whether the player is currently inside their player-owned house.
      Returns:
      true if inside the POH, false otherwise
    • canEnter

      public static boolean canEnter()
      Checks whether the player can currently enter their house. This typically requires being near a house portal.
      Returns:
      true if the player can enter their house, false otherwise
    • enter

      public static void enter()
      Enters the player's house. This will interact with a nearby house portal to enter the POH.