Package net.storm.sdk.game
Class House
java.lang.Object
net.storm.sdk.game.House
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanEnter()Checks whether the player can currently enter their house.static voidenter()Enters the player's house.static HouseLocationGets the location where the player's house is built.static net.runelite.api.coords.WorldPointGets the world point just outside the player's house portal.static booleanisInside()Checks whether the player is currently inside their player-owned house.
-
Constructor Details
-
House
public House()
-
-
Method Details
-
getLocation
Gets the location where the player's house is built. House locations include places like Rimmington, Taverly, Pollnivneach, etc.- Returns:
- the
HouseLocationof 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
WorldPointoutside the house
-
isInside
public static boolean isInside()Checks whether the player is currently inside their player-owned house.- Returns:
trueif inside the POH,falseotherwise
-
canEnter
public static boolean canEnter()Checks whether the player can currently enter their house. This typically requires being near a house portal.- Returns:
trueif the player can enter their house,falseotherwise
-
enter
public static void enter()Enters the player's house. This will interact with a nearby house portal to enter the POH.
-